Skip to content

fix(prompts): prevent coder from pushing/monitoring CI by scoping agent responsibilities#42

Merged
HonestMajority merged 1 commit intomainfrom
coder-not-push
Feb 23, 2026
Merged

fix(prompts): prevent coder from pushing/monitoring CI by scoping agent responsibilities#42
HonestMajority merged 1 commit intomainfrom
coder-not-push

Conversation

@HonestMajority
Copy link
Copy Markdown
Owner

Summary

The coder agent sometimes pushes to origin and monitors CI despite its prompt saying not to. This happens when the planner includes push/CI/review steps in TASK.md's ## Remaining — the coder treats those as its next work item, overriding its own "do not push" rule. The checker can't declare TASK_COMPLETE either, since those steps remain uncompleted.

This adds explicit scope boundaries to three agent prompts:

  • Checker: New "Scope of the coder↔checker loop" section instructs it to remove push/PR/CI/review steps from ## Remaining and not let them block TASK_COMPLETE
  • Coder: Strengthened line 6 to explicitly skip push/PR/CI steps if they appear in ## Remaining
  • Planner: Added guidance to exclude post-coding activities from the plan

These post-coding activities (pushing, PR creation, CI monitoring) are already handled by separate agents invoked via stored commands — the coder-checker loop should have no awareness of them.

🤖 Generated with Claude Code

…nt responsibilities

The coder agent would sometimes push to origin and monitor CI when TASK.md's
## Remaining section contained push/CI steps from the planner. This fixes the
issue at three levels:

- Checker prompt: Add "Scope of the coder↔checker loop" section that instructs
  the checker to REMOVE push/PR/CI/review steps from ## Remaining and not let
  them block TASK_COMPLETE
- Coder prompt: Expand instruction #6 to explicitly skip push/PR/CI/review
  steps found in ## Remaining
- Planner prompt: Add note telling planner not to include post-coding steps
  in the plan

Changes applied to both compiled-in defaults (src/config.rs) and runtime
prompt files (~/.agman/prompts/).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HonestMajority HonestMajority merged commit fab3904 into main Feb 23, 2026
1 check 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