Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ When working in this codebase, use these modes:

## Error Recovery

- On CLI command failure (label not found, permission error, file not found, etc.), automatically try alternatives
- Do not wait for user confirmation on recoverable errors — recover immediately
- Only report to user on unrecoverable errors (auth failure, risk of critical data loss, etc.)
- Never break the workflow on error — try alternatives and continue
See shared rules: packages/rules/.ai-rules/rules/core.md (Error Recovery section)

## Communication

Expand Down
15 changes: 15 additions & 0 deletions packages/rules/.ai-rules/rules/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,21 @@ To preserve this implementation session for future reference:

---

### Error Recovery (ACT mode)

- On recoverable errors (file not found, command failure, path issues), try alternatives immediately
- Do not wait for user confirmation on recoverable errors — recover immediately
- Only report to user on unrecoverable errors (auth failure, critical data loss risk)
- Never break the workflow on error — try alternatives and continue

### Path Safety (monorepo)

- Always verify current directory (pwd) or use absolute paths before git add/commit
- In monorepo subdirectories, use git -C "$REPO_ROOT" flag for git commands
- After using cd, ensure relative paths are not double-applied in subsequent commands

---

### Eval Mode

**Important:**
Expand Down