AI Coding Agents

Claude Code Cut 80% of Its System Prompt: Boris Cherny's Ablation Playbook

Direct Answer

Claude Code creator Boris Cherny's most useful lesson is not that every system prompt should be 80% shorter. It is that every model upgrade should trigger a controlled ablation: remove inherited scaffolding, run representative work, and add back only the instructions whose value appears in the evidence.

In the Startup School 2026 conversation with Y Combinator's Diana Hu, Cherny says the Claude Code team removed about 80% of its system prompt for Opus 5. Older instructions were compensating for weaknesses the new model no longer had. Keeping those instructions could make the model less capable by forcing redundant checks, rigid sequences, excessive narration, or outdated workarounds.

Anthropic's current Opus 5 prompting guide supports the broader principle. It tells developers to remove legacy verification steps when the model already verifies on its own, revalidate old vision workarounds, rerun effort sweeps, and place explicit limits on subagent delegation. In other words: prompts, tools, and harnesses are versioned dependencies. They need migration testing just like code.

JQ AI SYSTEMS verdict: preserve objectives, permissions, business rules, acceptance tests, and genuine repository facts. Challenge everything that tells the model exactly how to think, rechecks work it already checks, or patches a behavior you have not observed in the current model.

Watch the Talk

Video credit: Y Combinator. The conversation was recorded at Startup School 2026 with Boris Cherny, creator of Claude Code at Anthropic, and Diana Hu, Managing Partner at Y Combinator. Watch the original video. This article is an independent analysis.

What the 80% Claim Actually Means

Cherny describes Claude Code as a changing harness around a changing model. With each model release, the team revisits the system prompt, tool set, tool descriptions, safety layer, permissions, static analysis, and interface. The unit of optimization is not the prompt alone. It is the behavior of the complete system on real tasks.

His team starts by removing the prompt and then brings lines back individually when a measurable failure justifies them. In research terms, that is an ablation. In product terms, it is a feature audit where the feature happens to be an instruction rather than code.

Headline interpretationBetter interpretation
Short prompts are always better.Every instruction must earn its permanent context cost.
Delete all project guidance.Test without inherited guidance, then restore only proven necessities.
Opus 5 needs no harness.The harness should emphasize safety, permissions, tools, UI, and verification opportunities rather than compensating for obsolete model weaknesses.
One benchmark proves the migration.Replay your own tasks, with your own repository, users, risks, and acceptance criteria.
More intelligence removes governance.Greater autonomy raises the value of least privilege, stop conditions, audit trails, and consequential-action approvals.

Prompt Debt Is the New Migration Debt

Teams accumulate prompt debt the same way codebases accumulate technical debt. A model fails once, somebody adds a rule, and that rule remains after the model, tool, and workflow change. Six months later, the system prompt contains layers of defensive language whose original incidents are no longer reproducible.

The cost is larger than tokens. A stale rule can narrow the search space, conflict with a newer behavior, create unnecessary subagents, make every task slower, or instruct the model to repeat verification that it already performs. Anthropic's Opus 5 guide is unusually direct here: inherited instructions to add final verification or to double-check can produce over-verification without improving quality.

Prompt-debt signalTypical symptomTest
Legacy workaroundThe instruction references a failure from an older model.Remove it and replay the original incident plus two adjacent cases.
Duplicate capabilityThe prompt orders verification, self-correction, planning, or visual inspection the model now performs by default.Compare quality, tokens, turns, and elapsed time with the rule disabled.
Micromanaged sequenceThe agent follows the listed method even when another route is faster or safer.Replace the sequence with outcome, constraints, and acceptance tests.
Vague prohibitionThe model hesitates because "never" rules cover normal work.Replace it with a narrow permission boundary and an escalation condition.
Unbounded delegationSmall tasks spawn many agents and multiply cost.Add a deterministic cap and allow delegation only for independent, sizeable tracks.
Dead contextLong style guides or architecture notes are loaded even when irrelevant.Move them to retrieval or a skill that loads only for matching work.

The Seven-Step Ablation Protocol

  1. Freeze a baseline. Save the current model, effort setting, system prompt, tools, permissions, and configuration. Do not change several variables and then guess which one mattered.
  2. Build a representative eval set. Include easy tasks, hard tasks, known regressions, risky actions, ambiguous requests, and at least one long-running job. Ten real tasks are more useful than fifty synthetic riddles.
  3. Define the score before the run. Measure accepted output, test pass rate, reviewer corrections, scope errors, unsafe attempts, turns, tokens, time, and cost. A shorter answer is not automatically a better answer.
  4. Run the minimal condition. Remove optional project instructions, skills, hooks, redundant tool prose, and workflow scaffolding in a test environment. Keep platform safety and externally enforced permission controls.
  5. Classify failures. Separate missing context, missing capability, tool failure, ambiguous task definition, permission failure, and genuine model behavior. A prompt is only one possible fix.
  6. Restore one intervention at a time. Add the smallest instruction, tool contract, example, or retrieval source that addresses a repeated material failure. Re-run the same cases.
  7. Ship with a rollback point. Version the prompt and eval results. Monitor accepted-task rate and costly regressions after rollout, then revisit the audit with every major model or harness change.

This protocol prevents a seductive mistake: attributing a better result to a shorter prompt when the real cause was a different effort level, tool version, cache state, model fallback, repository revision, or random run variance.

What to Keep, Delete, or Move

LayerDefault treatmentExamples
Non-negotiable safety and policyKeep and enforce outside the prompt where possibleSecret handling, data boundaries, production-write approval, prohibited destinations, legal constraints.
Project truthKeep concise or retrieve on demandBuild commands, architecture facts, supported versions, source-of-truth paths, deployment process.
Output contractKeepRequired schema, artifact path, response length, evidence fields, stakeholder audience.
Acceptance criteriaKeepTests pass, visual widths checked, no new permissions, migration is reversible, performance budget met.
Legacy thinking recipeDelete firstPlan in exactly seven steps, always ask three reviewers, always re-read every file, always explain chain of thought.
Old model workaroundDelete and retestRepeated reminders to finish stubs, mandatory self-correction, elaborate image-cropping instructions, duplicated verification loops.
Specialist knowledgeMove to conditional contextBrand voice, compliance manual, framework migration guide, customer-specific policy, rarely used API reference.
OrchestrationKeep only when the task shape earns itParallel investigators, writer-verifier separation, scheduled maintenance, multi-repository migration.

Copy-Ready Prompt Migration Audit

Use this against a copy of your current agent configuration. It asks for evidence, not a fashionable rewrite. Do not include secrets or private production data in the material you paste.

You are auditing a system prompt and agent harness for migration to a newer model.

Inputs I will provide:
1. Current system prompt and project instructions
2. Tool descriptions and permission rules
3. Current model, effort setting, and harness version
4. Representative tasks, known failures, and acceptance criteria
5. Available run metrics

Your job:
- Inventory every instruction and classify it as:
  A. invariant policy or safety boundary
  B. project fact or tool contract
  C. output or acceptance requirement
  D. legacy model workaround
  E. duplicated native behavior
  F. task-specific context that should load conditionally
  G. unsupported or untestable preference
- Do not rewrite the prompt yet.
- For every item in D, E, F, or G, propose an ablation test.
- Define the task, expected result, failure signal, metrics, and rollback condition.
- Change one variable per test.
- Flag any rule that should be enforced in permissions, schemas, tests, or code instead of prose.
- Preserve safeguards for secrets, external communications, production writes, money movement, deletion, and personal data.

Then produce:
1. A keep / delete / move / enforce-outside-prompt table
2. A minimal candidate prompt
3. A 10-task regression suite
4. A run matrix across effort levels
5. A decision rule for adding an instruction back

Do not claim an instruction is unnecessary until a representative test supports that conclusion.

Give the Model Harder Problems, Not Longer Recipes

Cherny argues that users often give modern models tasks that are too small and procedures that are too specific. His alternative is to describe the job at a higher level, state the guardrails and exit criteria, provide tools that expose the result, and let the model choose the route.

The talk's largest example is the Bun runtime port from Zig to Rust. Cherny describes an eleven-day dynamic workflow using many agents and a strong test suite. Anthropic's official dynamic-workflows article documents the same project more precisely: roughly 750,000 lines of Rust, 99.8% of the existing test suite passing, hundreds of parallel agents, and two reviewers per file. The official article also says the port was not yet in production when published, so the talk's suggestion that Claude Code already ran on it should be treated cautiously unless Anthropic or Bun confirms that later deployment.

Over-specified requestBetter agent contract
Open these five files, edit this function, call this helper, then run these exact commands.Fix the failing behavior without changing the public API. Reproduce it first, add a regression test, make the smallest coherent fix, and return the evidence.
Create three subagents, have each review the code, then ask a fourth to summarize.Use delegation only if the investigation contains independent sizeable tracks. Keep spawn count low and report why delegation was necessary.
Copy this page pixel by pixel using the following twenty CSS rules.Match the approved reference at desktop and mobile widths. Use the browser to compare screenshots, preserve accessibility, and stop when the visual acceptance checks pass.
Think step by step and double-check everything twice.Complete the full task, use available tests and observable evidence, and surface only unresolved risks that can change the decision.

Verification Replaces Micromanagement

The talk's most durable prompt-engineering advice is to give the model a way to verify its own work. Cherny's two-week Swift experiment was not driven by a two-page implementation plan. He says he asked Claude to run the Electron app, screenshot it, compare it pixel by pixel with the Swift version, and continue until done. The verification surface supplied the next action.

That does not mean adding "verify your work" to every prompt. Anthropic's own Opus 5 guide warns that the model already self-verifies and self-corrects, so generic reminders can waste tokens. The useful move is to provide an objective feedback mechanism the model could not invent from text alone.

  • Code: tests, type checks, lint, build output, mutation tests, fuzzing, benchmarks, and a reproducible failing case.
  • Interfaces: browser screenshots at defined widths, interaction scripts, accessibility scans, visual diffs, and console checks.
  • Data: schemas, reconciled totals, source citations, invariant checks, and held-out records.
  • Operations: dry runs, canary environments, audit logs, idempotency checks, and rollback tests.
  • Knowledge work: a source map, fact-check pass, stakeholder rubric, counterexample search, and explicit uncertainty.

A strong agent prompt therefore contains less procedural choreography and more observable completion criteria. The human decides what success means. The agent earns autonomy by repeatedly proving it can reach that state within the allowed boundary.

Dynamic Workflows, Loops, and Routines

Cherny separates two forms of scale. A dynamic workflow decomposes one difficult job into parallel and sequential subagents. A loop or routine repeats a job on a cadence. Anthropic documents dynamic workflows as suitable for large migrations, codebase-wide investigations, and independent adversarial checks. It also warns that they can consume substantially more tokens than a typical session.

Routines are cloud sessions that can run on a schedule, API event, or GitHub event. Anthropic's documentation says they execute without interactive approval prompts, can use included connectors, and act through the user's linked identities. That makes scoping more important, not less: select only required repositories, network access, environment variables, and connectors.

MechanismUse it forMain control
Single agentOne coherent task that fits a normal working session.Acceptance tests and permission boundary.
SubagentOne independent research or implementation track.Clear ownership and bounded output.
Dynamic workflowLarge parallelizable work with independent review and integration.Budget cap, saved progress, shared tests, and final human review.
Local loopRepeated checks while the machine and session stay available.Stop condition, interval, and duplicate-action protection.
Cloud routineScheduled or event-triggered maintenance and triage.Least-privilege repositories, connectors, credentials, and monitored outputs.

Prompt Injection Is Improved, Not a Retired Risk

At 02:06, Cherny says Anthropic's layered setup combines model alignment, a prompt-injection classifier, and auto-mode controls, and that the team could no longer demonstrate a successful injection. That is an important first-party claim about a particular model-plus-product configuration. It is not evidence that every deployment of Opus 5 is immune.

Anthropic's published security guidance remains more conservative. It says model training, monitoring, classifiers, and red teaming work together, but do not guarantee protection. The risk increases as agents see more untrusted content and gain more powerful tools. A safe deployment still needs least privilege, separation between instructions and untrusted data, confirmation for consequential actions, scoped network access, secret isolation, logs, and external controls that do not depend on the model remembering a sentence.

Do not delete security because the model is smarter. Delete redundant prose only after the same protection is demonstrably preserved by model behavior and stronger deterministic controls. Money movement, destructive writes, external publishing, credential access, and personal data deserve explicit approval and audit paths.

Is Coding Almost Solved?

Cherny narrows his own claim during the talk. Coding is close to solved for the kinds of coding he does, but not for every domain. He names deep systems work, distributed systems, and pixel-level UI verification as areas where Claude still struggles. That qualification matters more than the viral phrase.

Anthropic's 2026 study of roughly 400,000 Claude Code sessions also gives a less sensational picture. It found that people make most planning decisions while Claude makes most execution decisions. Domain expertise improves success and recovery from errors. The center of gravity is moving from typing implementation to defining problems, creating evidence, reviewing tradeoffs, and making judgment calls, but those are still engineering activities.

The practical conclusion is not "stop learning code." It is "spend more of your scarce attention on the parts the system cannot grade for you": architecture, threat modeling, user needs, data meaning, failure impact, system boundaries, and whether the delivered behavior is worth shipping.

What Computer Science Students Should Still Learn

Cherny's answer is deliberately practical: learn computer science by applying it to a problem you care about, then combine it with product sense, design sense, business understanding, data work, and conversations with users. His own story begins with programming a calculator to solve increasingly difficult schoolwork. The point is not the shortcut. It is that a real need forced him to climb the abstraction ladder.

  • Fundamentals: data structures, algorithms, operating systems, networks, databases, concurrency, and security give you models for predicting failure.
  • Verification: tests, observability, debugging, profiling, reproducibility, and incident analysis let you distinguish working code from convincing output.
  • System design: interfaces, state, permissions, failure domains, and rollback plans determine whether generated code can survive production.
  • Domain depth: knowing the business, scientific, legal, or operational problem helps you specify what the agent cannot infer.
  • Human judgment: product taste, communication, ethics, prioritization, and user research decide what deserves to exist.
  • Empirical practice: run the current model, observe the current failure, and update your beliefs. Do not preserve a six-month-old limitation as doctrine.

Video Chapters

TimeChapterPractical takeaway
00:00IntroContext for the Opus 5 launch and Claude Code.
00:07What makes Opus 5 differentLong-horizon work, emergent capabilities, and less external scaffolding.
02:06Solving prompt injectionBoris's layered-defense claim and why production controls still matter.
03:21Deleting 80% of the system promptNew models can make old corrective instructions redundant.
06:37Press delete on your AI productRetest CLAUDE.md, skills, hooks, tools, and harness code on new models.
07:20Rebuild the promptAdd an instruction back only after repeated observed failure.
10:30Product overhang and unhobbingA product can prevent a model from expressing capabilities it already has.
14:26Give Claude harder problemsState the goal, guardrails, exit criteria, and evidence instead of the full route.
19:32Prompt engineering is changingModel elicitation and verification matter more than magic wording.
21:57The two-week promptA long-running Swift rewrite uses screenshots as continuous feedback.
24:42Running thousands of agentsDynamic workflows, local loops, cloud routines, and maintenance automation.
30:15Coding is almost solvedThe claim is explicitly limited by domain and verification gaps.
32:20What CS students should learnApply fundamentals to real problems and build product, design, data, and user judgment.

Bottom Line

The strongest AI product does not have the longest prompt. It has the smallest set of instructions and controls that consistently produces an accepted result on the current model. Boris Cherny's 80% deletion claim is valuable because it exposes a migration discipline: assume that prompt scaffolding can expire, then prove what still belongs.

Start with a frozen baseline and ten real tasks. Remove optional guidance in a test environment. Measure quality, cost, time, scope, and safety. Add back only the smallest intervention that fixes a repeated material failure. Keep deterministic controls around permissions and consequences. Give the model difficult outcomes with observable feedback, then let evidence decide how much harness is enough.

Sources and Link Map

Common questions

Did Anthropic really remove 80% of Claude Code's system prompt?
Boris Cherny said during the Startup School 2026 talk that the Claude Code team removed about 80% of its system prompt for Opus 5. Treat that as a first-party statement from the product creator, not as a published line-by-line changelog or a universal recommendation for every agent product.
Should I delete my entire CLAUDE.md file?
Run a controlled baseline first. Remove or disable the file in a test branch, replay representative tasks, and restore only instructions that correct a repeated, material failure. Keep genuine project facts, commands, permissions, safety boundaries, and acceptance criteria when the model cannot infer them from the repository.
Why can a shorter system prompt perform better?
Legacy instructions may duplicate behaviors the newer model already performs, force unnecessary verification, conflict with current defaults, consume context, or overconstrain the model. Anthropic's Opus 5 prompting guide specifically recommends removing inherited verification and self-correction instructions when they cause redundant work.
What is an ablation test for an AI agent?
An ablation test removes one part of the prompt, toolset, memory, or harness and measures the effect on a fixed evaluation set. The goal is to learn which component causes measurable improvement, which does nothing, and which makes the system worse.
What should replace detailed step-by-step prompting?
Use a clear outcome, relevant context, non-negotiable constraints, available tools, acceptance tests, and a stop condition. Let the model choose the implementation path unless the path itself is a business, safety, or architectural requirement.
Has Claude Opus 5 solved prompt injection?
Boris reported that Anthropic could not demonstrate a successful injection against its current layered setup. Anthropic's published agent-security guidance still says the safeguards are not a guarantee and recommends least-privilege tools, scoped data access, monitoring, and human approval for consequential actions.
Do stronger coding agents make computer science knowledge irrelevant?
No. The talk argues for empirical use and practical problem solving, while Anthropic's usage research finds that domain expertise improves outcomes. Architecture, security, testing, data, product judgment, and the ability to define and verify a real problem remain important.
Share
X LinkedIn Reddit
Build Yours

Want a system
like this one?

Book a free 30-minute call. We map your situation, identify the highest-impact automation, and figure out if we are a fit.

Book Free 30-min Call