Skip to content

Prompts: run multi-step shell from a script file, never inline - #224

Merged
hhff merged 1 commit into
mainfrom
prompt-scripts-in-files
Nov 14, 2026
Merged

hhff merged 1 commit into
mainfrom
prompt-scripts-in-files

Conversation

@hhff

@hhff hhff commented Nov 14, 2026

Copy link
Copy Markdown
Member

What

  • scripts/devteam.mjs (PROMPTS): the worker's and the planner's opening prompts gain one sentence. It says to run any multi-step shell (rm, redirects, quotes inside quotes) as a script file you write and then run, never inline, because an inline one stops on a permission prompt nobody answers. It points to worker.md §3, which already says this.
  • test/fixtures/g1/prompt-worker.txt: the golden is updated to match.

Why

Workers on the cloud box stopped on the agent CLI's "this shell -c script runs rm and could not be checked" prompt four times across three projects between 2026-11-12 and 11-14 (mothership app-41, website repo-04, inference-68 and inference-69). Each stop cost minutes until the prompt auto-denied, or until its supervisor noticed. The rule was in worker.md §3, deep in a long list. The opening prompt is what every agent reads first. The sentence is harness-agnostic: Claude Code, Codex and OpenCode all gate inline shell.

Tested

  • test/components.test.mjs (the g1 goldens, including prompt-worker): 7/7 on Node 24.14.1.
  • test/kit.test.mjs on Node 24: see the PR comment.

🤖 Generated with Claude Code

Workers keep stopping on the agent CLI's permission prompt for an inline
sh -c with rm (four times across three projects on 2026-11-12 to 11-14).
worker.md §3 says it, but deep in a long list; the opening prompt now says it
in one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hhff

hhff commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

kit.test.mjs on Node 24: ℹ pass 82 ℹ fail 0 . CI passes 9 of 9. This is a prompt-text change only, with no authority involved. Merging.

@hhff
hhff merged commit 1be3ef2 into main Nov 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant