diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-09-17 17:51:07 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-09-17 17:51:07 -0700 |
| commit | 6ade0b6c665c291ea7853dfd9e0dfa6736958ab5 (patch) | |
| tree | 45691bae6a7f7e26d31d774d0be3b408882f79f3 /skills/executing-plans/scripts/task-start | |
| parent | 6504cd6a34f862faf06deb89b50f1fb3943266c3 (diff) | |
| parent | 4bf7efd62d88968c899fe94143932fd0e84f692b (diff) | |
Merge dev and preserve updated guidelines in AGENTS.mdfeat/muse-support
Diffstat (limited to 'skills/executing-plans/scripts/task-start')
| -rwxr-xr-x | skills/executing-plans/scripts/task-start | 28 |
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)" |
