diff options
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/tools/project.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
