Skip to content

Glossary

Terms used throughout this manual. Definitions are operational: what the term changes in how you run Claude Code (and transferable agents), not dictionary fluff. Linked terms have dedicated pages.

Context and memory

TermDefinition
Context windowThe model's working memory for one session: system/steering docs, conversation, tool results, and open files. When it fills, older turns are dropped or summarized — the agent "forgets." See Context and Instruction Hierarchy.
Context resetStarting a fresh session (or /clear) so the agent loses chat history but still loads repo steering docs. Use after thrash, after a wrong plan, or when the window is polluted with failed attempts.
Instruction hierarchyConflict-resolution order among system prompts, CLAUDE.md / AGENTS.md, specs, and the current user prompt. Lower durable layers should win on invariants; the prompt should only add task-local constraints.
CLAUDE.mdClaude Code's repo steering file, loaded at session start. Holds commands, conventions, never-do rules, and pointers to deeper docs. Keep short and accurate — stale rules are executed as diligently as good ones. See CLAUDE.md and AGENTS.md.
AGENTS.mdTool-agnostic sibling of CLAUDE.md for agents that don't read Claude-specific files. Same content contract: durable repo rules, not task prompts.
Docs as memoryTreating committed docs (ARCHITECTURE.md, ADRs, specs) as the durable shared brain across sessions and teammates. Chat is ephemeral; the repo is not. See Docs as Memory.
Handoff noteA short committed or pasted summary of state for the next session/agent: what was done, what's left, open questions, files touched, commands to verify. Prevents re-derivation after a context reset.
Repo navigabilityHow quickly an agent can answer "where does X live?" Naming, module boundaries, index files, and anti-duplication conventions. See Navigability.

Control and prompting

TermDefinition
Plan modeClaude Code mode that produces a plan and waits for approval before editing. Default for non-trivial work; skip only for mechanical, fully-specified edits.
Permission modeHow much the agent may do without asking (read-only, ask-before-write, auto-approve tools, etc.). Tighten for unfamiliar repos and production paths; loosen only with gates and a clear spec.
Control techniquesPrompt patterns that force questions-first, plan-before-code, constrained scope, stop-and-ask, and evidence requirements. See Control Techniques.
Questions-firstExplicit instruction to list ambiguities and open decisions before writing code. Counters the agent's default of silently picking a plausible interpretation.
Stop-and-askA hard gate: if a decision isn't in the spec/CLAUDE.md, the agent must pause rather than invent. Pair with a short allowlist of decisions it may make.
Constrained file scopeNaming the directories/files the agent may touch (and those it must not). Primary defense against drive-by refactors and architecture erosion.
Evidence requirementRequiring the agent to cite file paths, test output, or command results for claims ("tests pass", "no callers left"). Claims without evidence are unverified.
Prompt anatomyStructure of a high-leverage prompt: goal, constraints, scope, acceptance, out-of-scope, verification. See Prompt Anatomy.
Prompt vs specA prompt governs one session; a committed spec governs a feature across sessions. Escalation rule: typed twice in chat → into a file. See Prompts vs Specs.

Specs and architecture

TermDefinition
SpecVersioned intent for a feature: goal, non-goals, acceptance criteria, constraints, out of scope. The arbiter when agent output is disputed. See Specs over Prompts.
Spec-code driftSpec and implementation disagree. Either the code is wrong or the spec is stale — both are bugs. Detect in PR review; fix by updating the lagging artifact. See Keeping Specs Alive.
ADRArchitecture Decision Record: context, decision, consequences, alternatives rejected. Agents read ADRs to avoid re-litigating settled choices. See Decision Records.
What not to delegateDecisions that stay human: stack, threat model, data ownership, irreversible migrations, product tradeoffs. Agents inform; humans decide. See What Not to Delegate.
Architecture erosionGradual loss of boundaries via agent drive-bys: duplicated helpers, cross-layer imports, new abstractions beside old ones. Prevent with navigability rules and scoped prompts. See Architecture Erosion.

Agents and roles

TermDefinition
Agent vs assistantAssistants answer in chat; agents loop with tools (edit, run, search) toward a goal. Supervision model differs: you review artifacts and evidence, not just prose. See Agents vs Assistants.
SubagentA delegated agent run with a narrower task and often a fresh context. Use for research, review, or isolated implementation slices — not as a substitute for a clear parent plan. See Agent Roles.
Builder / reviewer splitSeparate the agent (or session) that writes code from the one that reviews it. Same context that built the change is biased to defend it. See Multi-Agent Patterns.
Agent driftProgressive divergence from the original goal or constraints within a long session — scope creep, forgotten never-dos, "while I'm here" edits. Detect by re-reading the plan against the diff; fix with reset + tighter scope.
CoordinationHow multiple agents share work without colliding: handoff notes, file ownership, sequential vs parallel slices. See Coordination.
Responsibility splitWhich work is human-owned vs agent-owned vs shared. Architecture and acceptance stay human; mechanical implementation can be agent. See Responsibility Split.

Verification and failure

TermDefinition
Characterization testsTests that lock current behavior before changing it — especially legacy code. Write them first so refactors can't silently change outcomes. See Legacy Refactor.
Mock-only testsSuites that assert against mocks/stubs without exercising real boundaries. Agents love them; they pass while production paths break. Flag in Reviewing AI Tests.
Shallow implementationCode that matches the happy path and naming of the request but skips edge cases, error paths, or integration. See Shallow Implementation.
Hallucination / false confidenceConfident claims about APIs, callers, or "tests pass" without evidence. Require command output and path citations. See Hallucination and False Confidence.
Stuck loop / thrashRepeated failed fix attempts that pollute context. Break with context reset, smaller scope, or human diagnosis. See Stuck Loops and Thrash.
Quality gatesAutomated checks (typecheck, lint, test, CI) that must go red on deliberate failure before you trust them green. See Quality Gates.
Verification strategyLayered proof: static checks → unit/integration → manual smoke → production signals. Agents produce candidates; gates and humans produce confidence. See Verification Strategy.
RecoveryProcedure after bad agent output: isolate, revert or quarantine, characterize, re-spec, re-run narrowly. See Recovery.
Large-task decompositionSplitting work bigger than a reliable context window into sequenced, verifiable slices with handoffs. See Large Tasks.

Process shorthand

TermDefinition
Walking skeletonMinimal end-to-end path that proves wiring (one route + one real data path + one test). Scaffold this before features. See New Project.
Rails before cargoInstall governing docs and quality gates before the second feature — agents amplify structure and its absence.
Three-pass reviewStructured PR review for agent output: intent/spec → design/boundaries → evidence/tests. See Reviewing AI PRs.
PlaybookNamed workflow with objective, inputs, steps, human gates, failure table, and acceptance criteria. Index: Workflows.

A field manual for AI-native software engineering.