From 702117ef9557503fd67ac17db9e1a89a7c67e0a9 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 12:03:26 +0200 Subject: project tool: end the prompt with a period, plan-friendly opencode prompt The model sends the description without a final period, so the prompt read "...tool Fill in". opencode now starts in its plan agent, which cannot edit, so its prompt asks for a proposal instead. Co-Authored-By: Claude Opus 5.5 --- docs/superpowers/plans/2026-10-19-project-tool.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/superpowers/plans/2026-10-19-project-tool.md b/docs/superpowers/plans/2026-10-19-project-tool.md index 9e2b95f..7d10a88 100644 --- a/docs/superpowers/plans/2026-10-19-project-tool.md +++ b/docs/superpowers/plans/2026-10-19-project-tool.md @@ -197,8 +197,11 @@ fi # kitty-{kitty_pid}), else a new window. # ponytail: focuses some kitty window, not necessarily the one with the new # tab when several are open; match by kitty's window id if that bites. -prompt="New project: $desc Fill in AGENTS.md and README.md from this, then wait." -[ "$agent" = claude ] && run=(claude "$prompt") || run=(opencode --prompt "$prompt") +prompt="New project: ${desc%.}. Fill in AGENTS.md and README.md from this, then wait." +# opencode starts in its plan agent (default_agent in its config), which +# cannot edit: it proposes, the user switches to build to write. +[ "$agent" = claude ] && run=(claude "$prompt") || + run=(opencode --prompt "New project: ${desc%.}. Read AGENTS.md and README.md and propose what they should say, then wait.") how=window for s in $(ls -t "${XDG_RUNTIME_DIR:-/tmp}"/kitty-* 2>/dev/null); do if "$kitty" @ --to "unix:$s" launch --type=tab --cwd="$dir" "${run[@]}" >/dev/null 2>&1; then -- cgit v1.2.3