Skip to content

Commit ba1d30b

Browse files
committed
docs: update AGENTS.md with context protection and bug fix rules (#21)
1 parent bb189fd commit ba1d30b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Welcome, Comrade Agent! You are helping build **Rapide**, a lightweight, depende
3636
5. **Conventional Commits**: Use the **Conventional Commits** specification for all commit messages (e.g., `feat:`, `fix:`, `chore:`, `docs:`).
3737
6. **Issue Lifecycle**: When working on tasks, always create or reference a GitHub issue. Close the issue using the GitHub CLI or API once the task is merged and verified.
3838
7. **Roadmap & Milestone Sync**: Always ensure `ROADMAP.md` and GitHub milestones are kept in sync whenever feature plans change or releases are completed.
39+
8. **Bug Fixes**: When a bug is reported, don't start by trying to fix it. Instead, start by writing a test that reproduces the bug. Then, try to fix the bug and prove it with a passing test. Always use the `./dev` wrapper for test isolation. Create or reference a GitHub issue and use the Conventional Commit `fix:` type. Close the issue once verified.
40+
9. **Context Window Protection**: Follow the mandatory routing rules in `GEMINI.md`. Use `ctx_execute`, `ctx_batch_execute`, and `ctx_execute_file` for large outputs to avoid flooding the context window.
3941

4042
---
4143

0 commit comments

Comments
 (0)