Claude Code: Quick Reference, Keybindings & Metrics

Quick Reference

Daily Usage

# Create today's worklog
/worklog

# Deploy documentation changes
/deploy
/deploy "docs: Add new runbook"

# Invoke doc auditor
@doc-auditor check domus-captures for staleness

CLI Flags

# Start in plan mode (read-only)
claude --permission-mode plan

# Use specific agent for session
claude --agent doc-auditor

# Fast mode (skip loading)
claude --bare -p "quick query"

# Limit spending
claude -p --max-budget-usd 5.00 "expensive task"

# Resume previous conversation
claude --resume

# Continue most recent conversation
claude --continue

# Print last conversation (non-interactive)
claude -p --print-last

Environment Variables

# Compact at 50% context (default 95%)
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50

# Disable auto memory
CLAUDE_CODE_DISABLE_AUTO_MEMORY=1

# Skip all discovery
CLAUDE_CODE_SIMPLE=true

Keybindings

Location: ~/.claude/keybindings.json

Chat Context (active during conversation input):

Shortcut Action

Ctrl+E

Open external editor (EDITOR/VISUAL)

Ctrl+Shift+S

Submit prompt

Ctrl+T

Toggle extended thinking

Ctrl+P

Model picker

Ctrl+R

History search

Global Context (available everywhere):

Shortcut Action

Ctrl+/

Show help

Ctrl+,

Open settings

Success Metrics

Workflow Acceleration

Metric Before After

Worklog creation

~2 minutes

< 10 seconds

Deploy cycle

4 commands

1 command

Attribute errors

~2/week

0 (caught by hook)

Settings file size

60KB (bloated)

2KB (clean)

Configuration Depth

Capability Count Detail

CLAUDE.md size

845 lines

16 sections governing all behavior across sessions

Permission allow rules

78

72 Bash commands + WebSearch + 5 WebFetch domains

Permission deny rules

10

Secrets (.env, .age, gopass), destructive ops (rm -rf), shell injection (bash -c)

Hooks per session

7

SessionStart (1), UserPromptSubmit (1), PreToolUse (2), PostToolUse (3)

Hook event types

4

SessionStart, UserPromptSubmit, PreToolUse, PostToolUse

Auto-backup coverage

Every edit/write

PreToolUse hooks back up files before Edit and Write operations

Custom agents

7 total

doc-auditor (global), worklog-creator, build-fixer, carryover-updater, adoc-linter, project-modularizer, automation-scaffolder

Security Posture

Control Implementation

Secrets exposure

Zero — deny list blocks .env, .age, gopass show, ~/.secrets; CLAUDE.md FORBIDDEN section enforces at instruction level

Destructive operations

Deny rules block rm -rf /, rm -rf ~, rm -rf /*, bash -c; autoMode soft_deny requires confirmation for rm -rf on directories

Sensitive file staging

UserPromptSubmit hook warns when .env, .key, .pem, .credentials, .secret, or .password files are staged for commit

Filesystem sandbox

denyWrite on ~/.secrets, ~/.age, ~/.ssh/id_*, ~/.gnupg

Attribution leakage

Zero — settings.json sets empty strings for commit/PR attribution; CLAUDE.md forbids all AI attribution