Claude Code
Anthropic's agentic CLI for codebase exploration and editing. (Ref: https://docs.anthropic.com/en/docs/agents-and-tools/claude-code)
Lesson previews
When should you spawn a subagent? When the next step is noisy search with low retention value for the main thread. Good fits: log triage, wide repo scans, and evidence gathering where the lead session mainly needs ranked findings back. Which workflow fits? Known lanes vs unknown terrain Use predictability as the deciding axis, not just how big the task feels. Hero prompt temptation "I will just ask Claude Code to do the whole migration in one shot." Start with inspect -> change -> verify instead. One-shot ambition usually hides missing evidence and missing stop rules. It reframes speed around…
4 minQuick Reference: The Clauses to Add Before You Hit EnterInspect-first clause Inspect the relevant files, tests, and recent diffs before editing anything. Use this when the repo is unfamiliar or the failure mode is still uncertain. Scope-limit clause Prefer the smallest fix and avoid unrelated refactors unless the evidence requires them. Use this when Claude Code tends to broaden the patch beyond the actual problem. Proof clause Run the focused verification command and report the result before claiming success. Use this whenever the task could otherwise end with a plausible but unproven patch. Why these clauses matter These are not filler words. They encode workflow into the prompt. Wish…
4 minSort the Truth Sources: Repo, MCP, or Human Checkpoint?Repo or local command MCP external system Human checkpoint Whether the focused failing test now passes after the patch. Whether the feature flag is enabled for tenant acme-prod right now. Whether the team is willing to take a risky schema migration in today's release window. Which file introduced the breaking change in the last three commits. What the approved Figma frame says the empty state should look like. Whether it is acceptable to defer the docs update until the next sprint. Tool problem Decision problem Common trap Using the agent to guess at a decision that only a human owner…
5 minSort the Work: Main Thread, Subagent, or MCP?Main thread decision Subagent search worker MCP external truth Decide whether the smallest evidence-backed patch is safe to merge today. Scan three large build logs and rank the most likely failure points with file paths. Verify which customer tenants are actually behind the feature flag right now. Choose whether the task should parallelize or stay in one orchestrated thread. Compare the local component against an approved Figma frame that lives outside the repo. Search recent diffs and helper files for timing-related clues behind a flaky test. One overloaded thread Three clean lanes Decision Search External truth Common trap Treating every…
5 minStay in Thread or Spawn a Subagent?The strongest move keeps the main thread focused and sends the disposable search trail into its own context window.
5 minSubagents Are for Context Control, Not Delegation TheaterThe reframe: subagents buy you a cleaner working memory. When a coding task goes off the rails, it is often because the main thread becomes a storage bin for information it no longer needs. Search results, log excerpts, and speculative branches keep accumulating until the important question gets buried. Subagents fix this by moving noisy work into a separate context that can be summarized back. Good subagent jobs are high-volume and low-retention Repository exploration, log triage, dependency scanning, policy lookup, and broad documentation review are classic examples. The main thread rarely needs to remember the entire trail. It needs the…
5 minTurn a Weekly Chore Into a Repeatable Agent WorkflowThe repeat task Release notes are recreated from scratch every Tuesday even though the inputs and checklist are mostly stable. A prompt that feels okay once can be a weekly source of omission and drift. Decision path Stabilize inputs -> Specialize worker -> Add critique loop Recurring tasks get better when you standardize retrieval, not just phrasing. Shortcut Keep tweaking a long prompt every week. The agent stops improvising structure and starts executing a known lane. The more often a task repeats, the more its workflow should be explicit. 01 Inputs 02 Worker 03 Quality loop Step 1 Release notes…
5 minUse Claude Code Like an Agent, Not AutocompleteThe reframe: assign an investigation, not a wish. Claude Code can read your project, edit multiple files, run shell commands, and work with git. That means the unit of work is no longer "generate some code." The unit of work is a closed loop: understand the current state, act, and verify against the real environment. If you skip the loop, you are effectively asking the agent to improvise over a codebase it has not yet earned the right to change. Start with outcome and evidence A strong prompt names the result you want and the evidence that will prove it.…
5 minUse MCP to Bring the Right System Into ScopeThe reframe: MCP is a scope decision. MCP is often described as a USB-C port for AI applications. That metaphor is useful because it highlights standardization, but it can also mislead people into thinking that more connections automatically mean a better task. They do not. A good connection is one that gives the agent access to the exact evidence it needs to finish the job well. Start from the missing truth Ask what the agent would otherwise have to guess. Is the open work tracked in Jira? Is the design authority in Figma? Is the customer state in a database…
5 minWorked Example: Build a Weekly PR Triage WorkflowThe team asks Claude Code to triage a queue of PRs every week, but each run gathers slightly different evidence and emphasizes different review criteria. Standardize evidence packet -> specialize retrieval worker -> critique against checklist -> reuse The trap is thinking the inconsistency comes from wording alone. Often the real problem is that the workflow never fixed what data should be gathered first or what review bar the draft must pass before it is useful. Step 1 Define the evidence packet: changed files, PR description, linked issue, test results, and risk markers. The task now has a stable retrieval…
5 minWorked Example: Turn a Vague CLI Ask Into a Verifiable TaskThe starting request, "fix the signup bug please," gives Claude Code no evidence path, no likely search area, and no stop rule beyond sounding finished. Outcome -> hotspot -> scope limit -> verification command The common trap is adding more description while still skipping the only thing that matters: what command or observation will prove the work is actually done. Without that, the agent can produce a polished patch that never touches the real failure mode. Step 1 Name the symptom and the narrow surface: "Investigate why email signup fails after OTP verification in the auth flow." This gives the…
5 minWorked Example: Use a Worker to Compare Repo Code Against FigmaThe team is debating a UI mismatch using screenshots and memory. Claude Code has the component code but not the approved design state that determines whether the patch is right. Name the external gap -> connect the source -> compare precisely -> patch locally -> verify locally The common trap is asking Claude Code to "make it match the mock" without giving it the design authority. That forces the agent to work from paraphrase, which means even a careful patch may optimize toward the wrong state. Step 1 State the gap: "The repo has the component, but Figma has the…
5 minRelated skills
A command-line chat tool for collaborative pair programming in git. (Ref: https://aider.chat)
Continue.devAn open-source autopilot for VS Code and JetBrains. (Ref: https://continue.dev)
CursorThe leading AI-native code editor (VS Code fork) with deep LLM integration. (Ref: https://cursor.sh)
Gemini CLIAn autonomous terminal agent for Google's Gemini models. (Ref: https://github.com/google/gemini-cli)
GitHub CopilotThe industry-standard autocomplete and chat assistant for IDEs. (Ref: https://github.com/features/copilot)
OpenDevin (All-Hands)An open-source autonomous software engineer agent. (Ref: https://github.com/All-Hands-AI/OpenDevin)