docs: add critical auto-commit rule to AGENTS.md

Agent must automatically commit and push after completing work.
User should NEVER have to ask about commit status.

💘 Generated with Crush

Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
Charles N Wyble
2026-02-17 15:38:41 -05:00
parent 8c65d174d3
commit e4fe12aaf1

View File

@@ -316,7 +316,18 @@ git push origin main
### Important Rules
#### 🔴 CRITICAL: AUTO-COMMIT RULE
**After completing ANY work, you MUST:**
1. Check `git status` for uncommitted changes
2. Stage all relevant changes with `git add`
3. Commit with conventional message
4. Push to remote with `git push origin main`
5. NEVER wait for user to ask "is everything committed?"
**This is NOT optional.** The user should NEVER have to ask about commits.
#### ✅ DO
- **AUTO-COMMIT AND PUSH** after completing work (see CRITICAL rule above)
- Read files before editing them
- Use exact text matching (whitespace matters)
- Test after every change
@@ -334,6 +345,7 @@ git push origin main
- Run lint checks
#### ❌ DO NOT
- **Wait for user to ask about commits** - AUTO-COMMIT ALWAYS
- Edit files you haven't read
- Guess at text matches (be precise)
- Commit without testing