Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Anthropic Engineering 8 min read Incident mediumAdept

An update on Claude Code quality reports

Reported Claude Code quality degradation traced to three separate product-layer changes, not the API or models: a default reasoning effort cut from high to medium (Mar 4, reverted Apr 7), a prompt-caching optimization whose bug cleared prior thinking blocks on every turn after a session went idle for an hour (Mar 26, fixed Apr 10 in v2.1.101), and a system prompt length limit that cost about 3% on a broader eval (Apr 16, reverted Apr 20). The caching bug also caused repeated cache misses that drained usage limits, and it evaded code review, tests and dogfooding because unrelated experiments masked it. Fixes include having more staff on the exact public build, per-model eval suites and ablations for every system prompt change, soak periods and gradual rollouts, and Code Review with multi-repo context.

Related posts

  • You can’t vibe code a prompt

    incident.io mediumAdept

    Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts. In incident.io's Slack-message relevance classifier, Claude fixed one failing case but broke others. Given the whole eval suite, Claude Code hit 100% only by bloating the prompt 7× and hardcoding every test case, which reverted to the original failures once that section was removed. The recommended approach is to write prompts by hand with structurally similar but non-overlapping examples, and use LLMs for generating evals and examples, judging outputs, linting prompts for contradictions, and grading production interactions.

  • How we built Claude Code auto mode

    Anthropic Engineering mediumAdept

    Claude Code’s auto mode replaces most permission prompts with a two-layer defense: a server-side prompt-injection probe screens tool outputs before they enter context, and a two-stage transcript classifier gates risky actions such as shell commands, external fetches and out-of-project file operations. The classifier runs a fast yes/no filter first, then chain-of-thought only on flagged transcripts, and it is deliberately reasoning-blind by stripping assistant text and tool outputs. Evaluated end to end, it cut false positives on real internal traffic to 0.4% while letting through 17% of real overeager actions and 5.7% of synthetic exfiltration attempts—so it is positioned as safer than --dangerously-skip-permissions but not a replacement for careful manual review on high-stakes infrastructure.

  • Building LLMs for Code Repair

    Replit hardMaster

    Replit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics. Only 10% of these diagnostics come with deterministic fixes, while hundreds of millions are logged daily. Training data comes from replaying Operational Transformation histories to reconstruct the project state at each diagnostic. LLM-synthesized numbered line diffs are then generated with DSPy, verified, and distilled. Sentinel-token schemas replace natural-language instructions, and training ran on 8xH100 with LLM Foundry, FSDP and 4 epochs. Evaluation uses a new Replit repair benchmark plus a contamination-resistant Leetcode set built from DebugBench and recent LiveCodeBench-style problems.

  • Open R1: Update #3

    Hugging Face hardMaster

    Hugging Face's Open R1 project reproduces the code-reasoning side of DeepSeek-R1, releasing CodeForces-CoTs (about 100k R1-distilled C++ and Python solutions), a fully verifiable IOI benchmark with subtask grading and contest-style submission selection, and OlympicCoder 7B and 32B models fine-tuned from Qwen2.5 Coder. OlympicCoder-32B beats every open-weight model tested on IOI'2024, plus Claude 3.7 Sonnet, o1-mini and R1 itself under the 50-submission limit. The SFT lessons are concrete: sample packing badly hurts training on long reasoning traces, and a higher learning rate (4e-5) gains roughly 10 LiveCodeBench points per doubling. Adding editorials to prompts does not help, and prefilling `<think>` in the chat template is needed to reliably trigger long chain of thought.

  • Tricks to fix stubborn prompts

    incident.io mediumAdept

    Six practical techniques fix prompts that resist the usual remedies. Split tasks that combine classification and explanation into separate, cheaper and parallelizable calls. Read the full prompt for contradictions, such as a user message saying a message "is related" that overrode the system instructions. Structure prompts with clear headers and the goal up front, have an LLM review prompts for hidden assumptions, and mark the most important rules explicitly. Try other models using your own evals rather than benchmarks; one suite went from 50% failing to 100% passing by switching from GPT-4o to Sonnet. Pre-process inputs, for example replacing merged_at timestamps with time_since_merged so the model doesn't have to calculate durations.

The quest for software engineering knowledge.

Look:
Layout: