summaryrefslogtreecommitdiff
path: root/skills/executing-plans/scripts/task-start
diff options
context:
space:
mode:
authorJesse Vincent <drew@ritter.dev>2026-09-17 17:15:05 -0700
committerGitHub <noreply@github.com>2026-09-17 17:15:05 -0700
commit5feaa1510a95ad75fc2bf2f5c6d6d6072302db85 (patch)
tree74304a27d3386ba701014b997a2ab9deb8819009 /skills/executing-plans/scripts/task-start
parentb070d8258ddb712c67dbaecef384f9eb7a876f5d (diff)
parent7474980bb9649fe818aace41ea0724b6a6e11def (diff)
Merge pull request #2319 from obra/review-focus
Reviewer judges the spec as a vision document; plans list the five implied cases most likely to bite
Diffstat (limited to 'skills/executing-plans/scripts/task-start')
-rwxr-xr-xskills/executing-plans/scripts/task-start28
1 files changed, 28 insertions, 0 deletions
diff --git a/skills/executing-plans/scripts/task-start b/skills/executing-plans/scripts/task-start
new file mode 100755
index 0000000..fab75b5
--- /dev/null
+++ b/skills/executing-plans/scripts/task-start
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+# Begin one task of an inline plan execution in a single call: extract the
+# task's brief (via subagent-driven-development's task-brief, so both skills
+# share one workspace) and record BASE, the commit the task's review range is
+# cut from. One tool call instead of two, because every call in an inline
+# session is a turn that re-reads the whole context.
+#
+# Usage: task-start PLAN_FILE TASK_NUMBER
+# Prints:
+# brief: <path to the task's brief file>
+# base: <full SHA of HEAD>
+set -euo pipefail
+
+if [ $# -ne 2 ]; then
+ echo "usage: task-start PLAN_FILE TASK_NUMBER" >&2
+ exit 2
+fi
+
+plan=$1
+n=$2
+sdd="$(cd "$(dirname "$0")/../../subagent-driven-development/scripts" && pwd)"
+
+out=$("$sdd/task-brief" "$plan" "$n")
+brief=$(printf '%s\n' "$out" | sed -n 's/^wrote \(.*\): [0-9][0-9]* lines$/\1/p')
+[ -n "$brief" ] || { echo "task-brief did not report a path: $out" >&2; exit 1; }
+
+echo "brief: $brief"
+echo "base: $(git rev-parse HEAD)"