Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(prompt): single-source shell dialect guidance from platform.shell

2 months ago

2bbcf19
Authored
Max Weinbach7/7/2026, 11:45:47 AM
shell.promptGuidance renders the HOST's dialect only (a macOS session never
carries Windows rules again); the system prompt's Shell Execution Policy
section, the bash tool description, and harness platformCommands all consume
it. shell.pythonInvocation is the one Python answer (managed-runtime absolute
path, else python/python3) — 'py -3' is deleted from prompts/system.md, all
11 model templates, the bash description, and harness commands (it resolves
via the registry and bypassed the runtime PATH prelude: the Windows-only
missing-modules class). codexDeveloperInstructions strips the section
entirely — Codex owns its own shell, ending the contradictory double
instructions. 14 hand-synced prose copies -> 1 function.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parent4c73af1

21 files changed
  • packages/harness/src/platformCommands.ts+9−34
  • prompts/system-models/claude-haiku-4-5.md+0−2
  • prompts/system-models/claude-opus-4-6.md+0−2
  • prompts/system-models/claude-opus-4-7.md+0−2
  • prompts/system-models/claude-opus-4-8.md+0−2
  • prompts/system-models/claude-sonnet-4-6.md+0−2
  • prompts/system-models/gemini-3-flash-preview.md+0−2
prompts/system-models/gemini-3.1-pro-preview.md
+0
−2
  • prompts/system-models/gemini-3.5-flash.md+0−2
  • prompts/system-models/gpt-5.2.md+0−2
  • prompts/system-models/gpt-5.4.md+0−2
  • prompts/system-models/gpt-5.5.md+0−2
  • prompts/system.md+0−2
  • src/platform/shell.ts+90−0
  • src/prompt.ts+6−8
  • src/runtime/codexAppServer/config.ts+15−0
  • src/tools/bash.ts+6−7
  • test/platform/shellPlan.test.ts+102−1
  • test/prompt.test.ts+12−3
  • test/run_raw_agent_loops.test.ts+1−1
  • test/tools/tools.bash.test.ts+22−4