Diff
1diff --git a/dot_config/opencode/AGENTS.md b/dot_config/opencode/AGENTS.md
2index 0fe7dd562b5ad0c016cb961eaf7a52e6b54f7b5f..aa29863842d45f6d23a72c6a3a1a335d4f0096c2 100644
3--- a/dot_config/opencode/AGENTS.md
4+++ b/dot_config/opencode/AGENTS.md
5@@ -33,9 +33,7 @@ Favor simple, robust solutions over feature-rich ones. When in doubt, do less
6 - Minimize comments - only explain non-obvious "why", never "what"
7 - Types should encode meaning (use Duration, not string; use enums, not magic strings)
8 - Build what's needed now, not what might be needed later
9-- Implement reproduction tests first when asked to fix bugs
10-- Keep branch names very short and simple. Don't append my name or ticket numbers to the branch name
11-- Use `git switch` (not `git checkout`) when changing or creating branches
12+- When asked to fix bugs, implement regression tests first that fail, then implement the fix
13
14 ## Security
15
16@@ -55,6 +53,12 @@ Specific footguns:
17 - `git push --force`: destructive to shared state. Always ask for confirmation
18 - File overwrites via `Write`: if there is a comflict, read it first and merge your changes, as the user may have edited the file externally.
19
20+## Git operations
21+
22+- Interactive rebase opens `$GIT_EDITOR` and blocks. Run with `GIT_SEQUENCE_EDITOR=: GIT_EDITOR=true git rebase -i <base>`.
23+- Use `git switch` (not `git checkout`) when changing or creating branches
24+- Keep branch names very short and simple. Don't append my name or ticket numbers to the branch name
25+
26 ## Remote access
27
28 Never access remote systems, like databases, Kubernetes, AWS, etc.