CCDV-F Prep unofficial
← All skills

Claude Code

Claude Code Operation

Exam objective: Operating Claude Code correctly across the CLI, desktop, IDE, web, and mobile surfaces, including session management, the CLAUDE.md hierarchy and precedence, settings.json, permission modes, headless and streaming modes, and built-in commands.

What the exam tests

Operating Claude Code correctly: picking a surface, managing sessions, knowing which instructions and settings win, choosing a permission mode, scripting headless runs and using the right built-in command. Questions are usually a symptom ("the setting is ignored", "the CI run was denied") with several plausible fixes.

Key rules

Surfaces. The agentic loop is the same everywhere. Local sessions run on your machine; cloud sessions (web, mobile) run elsewhere and continue after you disconnect; Remote Control steers a local session from a browser or phone. Scripting and the Agent SDK belong to the CLI.

Sessions. --continue reopens the most recent session in the directory; --resume takes a name, ID or transcript path, or opens a picker. Resume appends to the same session; --fork-session or /branch copies it. Launch flags such as --mcp-config, --add-dir, --settings and --allowedTools must be passed again. -p sessions are left out of the picker and interactive --continue, but resume by ID. /rewind restores code, conversation or both; files changed only by Bash are not tracked.

CLAUDE.md. Scopes from broad to specific: managed, user (~/.claude/CLAUDE.md), project (./CLAUDE.md or ./.claude/CLAUDE.md), local (CLAUDE.local.md). Files at and above the working directory load at launch and are concatenated; subdirectory files load on demand. It is context, not enforcement.

Settings precedence. Managed, then --settings, then .claude/settings.local.json, then .claude/settings.json, then ~/.claude/settings.json. Lists such as permissions.allow merge. Permission rules are evaluated deny, ask, allow.

Permission modes. default (Manual), acceptEdits, plan, auto (classifier), dontAsk (deny what would prompt), bypassPermissions (isolated environments only). Shift+Tab cycles; --permission-mode sets the start. Deny rules block in every mode.

Headless. claude -p with no mode set starts in Manual on current versions, so calls needing approval are denied. Output formats: text, json, stream-json.

claude -p "Apply the lint fixes" --permission-mode acceptEdits \
  --allowedTools "Bash(npm run lint)" --output-format json

Commands. /init (generate CLAUDE.md), /memory (edit memory files), /context (what fills the window), /compact (summarize), /clear (empty context), /permissions (rules), /status (setting sources), /plan, /resume.

Traps

  • defaultMode: "auto" or "bypassPermissions" in project or local settings does not take effect.
  • An allow rule cannot carve an exception out of a matching ask or deny rule.
  • --allowedTools pre-approves; --tools restricts which built-in tools exist.
  • Making bypass permissions available in an interactive terminal undermines plan mode's blocks.
  • @path imports organize CLAUDE.md but do not reduce its context cost.
  • --bare skips CLAUDE.md, hooks, skills, MCP and auto memory discovery, but still reads settings files.
  • A cloud session does not read your user or local settings.

Decide quickly

SituationChoiceWhy
Try another approach, keep the original/branch or --fork-sessionNew session ID, original untouched
Same task, context filling up/compact with a focusSummarizes and continues
Unrelated task/clearEmpty context, old session resumable
Locked-down CIdontAsk plus allow rulesAnything unlisted that would prompt is denied
Unattended edits on filesacceptEdits plus narrow allowsOther shell commands still need approval
Live token displaystream-json, --verbose, --include-partial-messagesReal-time events
Personal override in one repo.claude/settings.local.jsonOutranks the shared file, stays local
Work must continue with laptop offCloud sessionRuns off your machine
Needs local files, steer from phoneRemote ControlExecution stays local

Sources