[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3
Permissions, Hooks & Safety
Tiered Permission Model
Claude Code implements a strict tiered permission model to balance autonomy with safety:
| Tier | Action Types | Default Behavior |
|---|---|---|
| Read-Only | File reads, directory listings, grep searches | Auto-approved |
| File Edit | Modifying existing files, creating new files | Prompts for confirmation unless trusted |
| Bash / Execution | Running shell commands, test suites, builds | Prompts user for explicit authorization |
| Destructive | File deletion, git reset, force push | Strict explicit confirmation required |
Slash Commands in Claude Code
Claude Code provides built-in slash commands for developer control:
/help: Display available commands and shortcuts./compact: Compact conversation context to preserve token capacity./clear: Reset conversation state and clear memory buffer./config: View and modify CLI settings./cost: View token usage and cost for the current session./doctor: Verify environment health, API connectivity, and permissions./review: Perform a code review on git diffs before committing.
SYNAPSE VERIFICATION
QUERY 1 // 2
Which slash command in Claude Code compacts conversation context to save tokens?
/shrink
/compact
/compress
/trim