diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-09-18 18:38:59 +0000 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-09-18 18:38:59 +0000 |
| commit | 8412aaf0385cbfd850675093f01b16c88052f268 (patch) | |
| tree | 88ae48d06c4d104d65e35d345e65f7c210189564 /skills/executing-plans/scripts/task-start | |
| parent | b36e0829c6d0140e93cfef2ca599b1b07d4a7797 (diff) | |
Release v6.4.0: diagnosing-superpowers and movie skills, Native execution, OpenCode 2.0, Muse, and Qwen Code supportrelease/v6.4.0
Everything on dev since the v6.3.0 merge-back (777ceb5), as one commit.
Full notes: RELEASE-NOTES.md, v6.4.0 section.
Claude-Session: https://claude.ai/code/session_01PRUnVUm4g4EcP9eNjAiT2B
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)" |
