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 --- examples/tools/project.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/tools/project.sh b/examples/tools/project.sh index d8f7538..25732d5 100755 --- a/examples/tools/project.sh +++ b/examples/tools/project.sh @@ -123,8 +123,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