Reference · Claude Code

Every command — with how we'd use it.

What each one does, a real scenario from our world (Ty, Alex, the VPS, Lucidya, the dashboard), and the one best-practice tip. The live list is always /help in a session — this is the map with examples.

Example (us)  = the highlighted column: a concrete scenario from our actual setup showing when & how you'd reach for that command.

01

Launching

Typed in your terminal to start Claude Code.
CommandWhat it doesExample (us)Best practice
claudeStart interactive session in current foldercd ~/openclaw-vault then claude — the session already knows the vault's CLAUDE.md and Lucidya filescd into the right folder first
claude "prompt"Start with an opening instructionclaude "audit dashboard_v3.py for taste violations" jumps straight inQuote the whole prompt
claude -cContinue most recent conversation hereYou closed the terminal mid-Lucidya-deck last night — claude -c drops you right backFastest way back into context
claude -rPicker of past sessions to resumeWant the dashboard session from 3 days ago, not last night's deckclaude -r <id> jumps to one
claude -p "prompt"Run once, print, exit (no UI)ssh VPS 'tail -200 gateway.log' \| claude -p "what's crashing?" to triage Alex from a scriptPipe logs straight in
claude --model <name>Launch on a specific model--model claude-opus-4-8 for a hard Lucidya strategy passOpus reasoning · Haiku trivial
claude --add-dir <path>Add an extra working folderIn a client repo, --add-dir ~/openclaw-vault so it sees code and the SOPsAdd vault + project together
claude --permission-mode planStart in Plan modeBig refactor of the 500KB dashboard_v3.py — plan before touching itOr just Shift+Tab in-session
claude --effort <level>Reasoning budget (low→max)--effort max for the gateway dual-unit bug; low for a copy fixMatch effort to difficulty (cost)
claude --dangerously-skip-permissionsSkip all permission promptsA trusted batch that regenerates 6 deck variants in a scratch dir, unattendedNever near prod, VPS, or deletes
claude doctorDiagnose install healthClaude Code acting weird on the MacBook — run this before guessingFirst thing when broken
claude mcpConfigure MCP tool serversRe-wire ClickUp or Supabase after the connection dropsclaude mcp list to see them
claude --helpFull flag list for your versionForget the resume flag — claude -h is authoritativeThe real list for YOUR build
More real flags from your build: --allowedTools/--disallowedTools (pre-approve/block), --append-system-prompt, --agents '{...}' (inline subagents), --session-id, --fork-session, --output-format json, --fallback-model, --from-pr, --debug, --bare.
02

Slash commands

Typed inside a running session. Hit / for the menu.

Context & conversation

CommandWhat it doesExample (us)Best practice
/clearWipe context, fresh startFinish the Lucidya deck, switch to debugging Alex's cron — /clear first so deck context doesn't leak inUse constantly — free quality boost
/compact [hint]Summarize to free context3-hour dashboard session slowing — /compact keep the card-labeling fixesHint what to keep
/contextShow what's loaded in the windowAnswers gone vague — check if old files are eating the windowCheck before a big compact
/resumeReload a previous conversationSwitch back to the EOM-report session
/exportExport the conversationSave tonight's dashboard-audit session into the vault as a handoff for AlexGood for handoffs

Setup & configuration

CommandWhat it doesExample (us)Best practice
/initScan project, generate CLAUDE.mdNew client repo — /init drafts the CLAUDE.md, then you hand-editThen edit it — #1 quality lever
/memoryEdit your CLAUDE.md memoryAdd "Lucidya budget is $20K not $18K" so it never drifts againProject file · or ~/.claude global
/modelSwitch active modelDrop to Sonnet to crank boilerplate, back to Opus for the hard partOpus hard · Haiku trivial
/permissionsAllow/deny rules for toolsYou keep approving ssh alexops@… — allowlist itAllowlist safe repeats
/hooksAuto-run scripts on events"After every .py edit, run the dashboard syntax check" — that's a hookAutomation lives here, not memory
/agentsCreate/manage subagentsAn "Explore" subagent sweeps the vault for every Lucidya doc without clogging main contextKeeps big sweeps isolated
/mcpManage tool servers & authClickUp returns empty — /mcp to re-authRe-auth when a tool returns empty
/configOpen settings UISwitch theme or default model
/terminal-setupFix terminal keys (Shift+Enter)First time on a new machine so multiline prompts workRun once per machine

Status & account

CommandWhat it doesExample (us)Best practice
/statusVersion, account, model, connections"What model am I on, is MCP connected?"First stop when off
/costToken + cost this sessionLong Lucidya session — check spend given the ~$50/day API pressureWatch on long sessions
/doctorHealth-check the installTools failing for no clear reasonSame as claude doctor
/helpList all commands right nowForget what's installed — this is the truth for your buildThe live source of truth

Code & git

CommandWhat it doesExample (us)Best practice
/reviewReview a pull requestReview a dashboard PR before it mergesPoint at the PR
/security-reviewSecurity review of branch changesBefore deploying anything touching the VPS or client dataRun before shipping auth/data
03

Skills

Extra slash commands installed in your setup. /help shows the current set.

General-purpose

CommandWhat it doesExample (us)Best practice
/code-reviewReviews diff for bugs + cleanupsAfter editing dashboard_v3.py, /code-review high before you restart the serviceultra=cloud(billed) · --fix · --comment
/simplifyCleans changed code (no bug hunt)The card-label fix works but is messy — tidy itPair with /code-review for bugs
/verifyRuns the app to confirm a change worksFixed a dashboard card — /verify actually loads it and checksBeats "looks right"
/runLaunches the app to see a change liveSee the Lucidya deck render in the browserScreenshot the result
/deep-researchFan-out web research, cited"Current consensus on AI design 'taste' prompts?" — what we did tonightGive a specific question
/loop [interval]Repeat a task on a schedule/loop 15m to poll whether Alex started the dashboard audit overnightOmit interval to self-pace
/scheduleScheduled remote agents (cron)"Every morning 8am, summarize Alex's overnight cron failures"One-time too ("at 3pm…")

Claude-building & harness

CommandWhat it doesExample (us)Best practice
/claude-apiBuild/debug Claude API + SDK appsA script that calls Claude to score Lucidya ad copyWhen your code calls Claude
/update-configConfigure harness (hooks, perms, env)"From now on, after I edit any .py, auto-run a syntax check""Whenever X, do Y"
/fewer-permission-promptsAuto-build an allowlist from historyDrowning in SSH/curl approvals — scans and allowlists safe repeats

Our Alex / OpenClaw skills

CommandWhat it doesExample (us)When
/alex-bootstrapFull Alex context — takeoverGateway's down and you need to operate her infra yourselfAlex offline
/alex-opsVPS infrastructure managementRestart the gateway, check preflight driftServer work
/alex-cronCron job managementFix the twitter-daily-tweets job that keeps timing outScheduled jobs
/alex-clientsClient context & managementPull up everything on Lucidya before a callClient work
/alex-commsDiscord communication protocolPost a correctly-routed update to a client channelPosting for Alex
/alex-dashboardReactiiv Command Center workThe exact dashboard audit running right nowDashboard work
04

Modes & keys

How you steer the session in real time.

Three input modes — cycle with Shift+Tab

ModeBehaviorExample (us)
NormalAsks permission before edits/commandsDefault — safe when touching the live VPS
Auto-acceptApplies edits without asking each timeBulk-fixing 20 card labels in a dashboard you already trust
Plan modeProposes a plan, changes nothing till you approveBefore any big dashboard_v3.py refactor — the best habit

Input prefixes (first character)

TypeDoesExample (us)
/Slash command menu/clear
@Pull a file into context@knowledge/playbooks/design/TASTE.md to load the taste rules
!Run a shell command, output into chat! ssh alexops@100.119.93.118 'uptime' · or ! gcloud auth login
#Quick-save a line to memory (verify w/ /memory)# Lucidya budget is $20K

Shortcuts

KeysDoesExample (us)
EscInterrupt mid-responseIt's heading down the wrong path on the deck — stop it
Esc EscRewind / edit a previous messageReword your dashboard ask and re-run from there
Shift+TabCycle Normal → Auto-accept → Plan
Ctrl+RReverse-search historyFind that long SSH command from earlier
Ctrl+LClear screen (keeps context)Tidy a cluttered terminal mid-task
Drag / paste imageAdd a screenshot to contextPaste the ugly dashboard card and say "fix this"
05

Best practices

The meta-rules that move the needle most.
01

CLAUDE.md is your highest-leverage tool. Our whole Alex/Lucidya context lives there and loads every session. /init to create, /memory to maintain. Everything else is downstream of this.

02

/clear between unrelated tasks. Lucidya deck → gateway debugging? Clear first. Stale context = dumb answers. Free.

03

Plan mode for anything non-trivial. Especially anything touching the live VPS or the 500KB dashboard_v3.py.

04

Be specific, give references. "Cards like Stripe's — one accent, labeled metrics" beats "make it nicer."

05

@-mention exact files (@TASTE.md) instead of describing them.

06

/compact before the wall, with a hint about what to keep.

07

Allowlist safe repeats (/permissions) — stop approving the same SSH command 40 times.

08

Hooks for automation, memory for knowledge. "Do X every time Y" needs a hook — memory only informs.

09

/verify or /run to confirm. Make it prove the dashboard fix actually renders.

10

/doctor first when something feels broken — and /help is always the truth for what's installed.