Skip to content

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Jan 31, 2026

Summary

  • Move TASK GUIDANCE preamble from user message to system-level mechanism for each executor
  • Claude: Use --append-system-prompt flag to pass guidance as system prompt
  • Gemini: Write .gemini/GEMINI.md file in the worktree (auto-loaded by Gemini CLI)
  • Codex/OpenClaw: Include in prompt (these tools don't have verified system prompt mechanisms)

This keeps the executor's conversation thread cleaner by not showing the large guidance block at the start of every task.

Test plan

  • Build passes
  • All tests pass
  • Manual test with Claude executor to verify system prompt is used
  • Manual test with Gemini executor to verify GEMINI.md is created

🤖 Generated with Claude Code

bborn and others added 3 commits January 31, 2026 09:00
…hread

Move the TASK GUIDANCE preamble from the user message to a system-level
mechanism specific to each executor:

- Claude: Use --append-system-prompt flag
- Gemini: Write .gemini/GEMINI.md file in the worktree
- Codex/OpenClaw: Include in prompt (no system prompt mechanism)

This keeps the executor's conversation thread cleaner by not showing
the large guidance block at the start of every task, while still
providing the same instructions to the AI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codex CLI auto-loads AGENTS.md files for project-specific instructions,
similar to how Gemini uses GEMINI.md. Updated Codex executor to write
task guidance to AGENTS.md in the worktree instead of including it in
the user prompt.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Writing AGENTS.md would overwrite any existing project instructions.
Safer to keep system instructions in the prompt like OpenClaw.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit b4e3d83 into main Jan 31, 2026
3 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.

2 participants