[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3

Permissions, Hooks & Safety

💻 Claude Code CLI⏱ 20 min⭐ 950 BASE XP⌨ HANDS-ON LAB

Tiered Permission Model

Claude Code implements a strict tiered permission model to balance autonomy with safety:

TierAction TypesDefault Behavior
Read-OnlyFile reads, directory listings, grep searchesAuto-approved
File EditModifying existing files, creating new filesPrompts for confirmation unless trusted
Bash / ExecutionRunning shell commands, test suites, buildsPrompts user for explicit authorization
DestructiveFile deletion, git reset, force pushStrict 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.
⌨ HANDS-ON LABConfigure Claude Code Safety & Permissions
⭐ +150 XP

Enforce strict security boundaries in Claude Code. Inspect your local configuration and configure auto-approval settings.

1View your current Claude Code CLI configuration.
2Configure autoApprove to false to guarantee interactive confirmation before any command execution.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 2 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 2
Which slash command in Claude Code compacts conversation context to save tokens?
/shrink
/compact
/compress
/trim