Cram Sheet β The Day-Before One-Pager
Ask five questions: What is the task? Who chooses the next step? Who executes it? Which component enforces the rule? What evidence proves success?
Use this page to recall ideas you already understand. If a phrase is unclear, open its glossary example before memorizing it.
The one sentence
The model decides; the harness executes. The harness is the software around the model that runs the actions. Every correct answer puts rule enforcement into code that always behaves the same way (gates, hooks, schemas, allowlists, budgets). Prompts are only used to guide the model.
Blueprint (CCAR-F)
Agentic 27 Β· Claude Code 20 Β· Prompting/Structured 20 Β· Tools/MCP 18 Β· Context/Reliability 15 β 60 questions Β· 4 of 6 scenarios appear Β· 120 min Β· 720/1000 (= the scaled score you need to pass).
Tables to hold in your head
Stop reasons (why the model stopped) β end_turn: give the answer to the user Β· tool_use: your code runs the tool, then loops back Β· max_tokens: output is CUT OFF, never parse it Β· stop_sequence: your custom stop text was reached Β· refusal: send the case to a human.
Workflow patterns β chain (fixed steps in order) Β· route (classify, then send to the right handler) Β· parallel-section (independent parts run at the same time) Β· parallel-vote (several runs vote, for confidence) Β· orchestratorβworkers (the task is split at run time) Β· evaluatorβoptimizer (check against criteria, then improve). Use workflows before agents when the path is known.
MCP primitives β tools = model decides when to use them Β· resources = app decides Β· prompts = user decides. One client connects to one server, and the connection keeps state. stdio for local servers Β· Streamable HTTP for remote servers. Value: NΓM custom integrations become N+M.
Claude Code surface β CLAUDE.md memory (shared project instructions plus personal user instructions) = GUIDANCE: the model reads it, usually follows it, no guarantee (same as the API system prompt) Β· settings permissions + hooks = ENFORCEMENT: Claude Code checks them in code, whatever the model decides (API twin: your harness code, output_config.format) Β· stem says must/never/always/guarantee/compliance/block β enforcement; conventions/style/know/context β guidance Β· skills = expertise that the model CHOOSES (by its description) and the harness RUNS Β· slash commands = templates the user starts ($ARGUMENTS) Β· subagents = their own separate context + tool policy Β· hooks = code that always runs the same way (PreToolUse exit-2 blocks the action; PostToolUse changes the result) Β· settings priority: enterprise > CLI > local-project > shared-project > user Β· headless claude -p + stream-json for CI.
Output controls: a prompt only asks for a format. tool_choice selects a tool. strict: true enforces the tool's argument schema (supported features only). output_config.format controls the JSON answer text (supported features only). Your code checks that the output is complete and the values are correct. Prefill is an older technique that depends on the model, and you cannot use it together with thinking.
Injection defense β limit the input β treat it as data, not instructions β gates in code that check the output. Layer 3 is the one that really holds.
Caching β the prefix must be byte-identical; put stable content BEFORE the breakpoint and changing content after it; cache reads cost β10% of the normal price; loops spread the cost over many calls.
Reliability β 429 (rate limit) / 529 (overloaded) = retry with backoff+jitter (wait longer each time, plus a random delay) Β· idempotency keys for actions with side effects, so a retry does not repeat them Β· checkpoints let you resume, never replay from the start Β· the fallback steps end in honest failure Β· Batch API for large offline volume Β· pin model versions in production Β· add monitoring before you try to fix things.
Multi-agent β subagents exist to keep CONTEXT SEPARATE; they return summaries; run reads in parallel and writes one at a time; hub-and-spoke (a coordinator in the center); know when one loop is enough.
The six scenarios in one line each
S1 support: escalation is a planned final path; anything with money = gate + HITL (a human approves). S2 team Claude Code: guarantees come from hooks, standards come from the project CLAUDE.md. S3 research: a coordinator + subagents that return summaries. S4 dev tooling: Bash allowlists with a narrow scope; Grep/Glob only read. S5 CI/CD: headless + least privilege; block a merge only on checks that always give the same result. S6 extraction: a forced schema tool + stop_reason check + closed schema.
Exam mechanics
About 90 s per question, after 1 min to read each scenario Β· flag hard questions and move on Β· "most appropriate" = Anthropic's published guidance (the simplest solution, workflows first, enforcement in code) Β· read the constraint sentence again before you answer Β· keep 10 min at the end for review.
Night-before checklist
Pearson VUE system test done Β· ID ready Β· wired internet Β· clean desk Β· water Β· sleep is worth more than studying past this page.
Named features added from the official exam guide (v0.2) β last-pass list
- Task tool starts subagents. The coordinator's
allowedToolsmust include"Task": the list pre-approves tools, and in an unattended run nobody answers a permission prompt, so an unlisted Task call is denied (the list does not remove other tools). Subagents get NO context from the coordinator, so pass the findings in their prompt. To run them in parallel, make several Task calls in ONE response. --resume <name>= continue a named session (tell it which files changed);fork_session= start parallel branches from one shared starting point; if tool results are out of date β start a fresh session and add a summary to it.- Plan mode = for architecture changes, many files, or several valid approaches; direct execution = for small fixes in one file; Explore subagent = keeps long search output out of the main context.
.claude/rules/+ YAMLpaths:globs = rules that apply to file patterns anywhere in the tree (for example, all test files); a nested CLAUDE.md = only one folder and its subfolders; skill frontmatter:context: fork(separate context),allowed-tools(pre-approves the listed tools; it does not limit them β to restrict, use a subagent'stools:orpermissions.deny),argument-hint(tells the user which arguments to give).- CI flags:
claude -p(non-interactive),--output-format json,--json-schema(structured findings). Review with an INDEPENDENT session, and give it the earlier findings so it does not report them twice. - Batches API: 50% cost Β· finishes within 24h Β· no SLA Β· does not run a multi-turn tool loop for you Β· match results with
custom_idΒ· resend only the failed requests Β· plan enough time for completion and retries; check the deadline you promised Β· never use it for checks that must block a merge. - MCP errors:
isError+errorCategory(transient/validation/business/permission) +isRetryable+ a description a human can read. An access failure is not the same as a valid empty result. Retry locally first; if that fails, pass the error up with any partial results. - Schemas: nullable fields stop the model from inventing values; use enum +
"other"+detail +"unclear"; supported strict output features enforce the shape; the harness checks facts and business values (calculated_totalvsstated_total). - Context: models lose facts in the middle of long input β put key findings at the TOP and use section headers; cut tool outputs down to the needed fields; keep a "case facts" block outside the summarized history; use scratchpad files; the coordinator loads crash-recovery manifests.
- Review routing: measure accuracy per document type and per field before you trust overall numbers; take stratified samples even from high-confidence output; calibrate confidence on labeled data sets; keep claimβsource links through the final summary; mark conflicts with their sources; add dates to data that changes over time.