New Rules of Context Engineering for Claude 5: Thin Prompts, Progressive Disclosure, and Model Unhobbling

Based on Anthropic technical staff insights from Claude Code, this guide presents the context engineering evolution for Claude 5: trimming 80% of prompt rules, moving from rigid constraints to native model judgment, and employing Thin Prompts with progressive disclosure.

Contents5 sections

From Rigid Constraints to Native Judgement: Trimming System Prompts by 80%

With the release of Claude 5 generation models, context engineering undergoes a fundamental paradigm shift. Thariq Shihipar (@trq212) from Anthropic's technical staff revealed that removing over 80% of system prompt rules in Claude Code significantly improved model reasoning and execution.

Key Experimental Data

  • >80%

    System prompt reduction in Claude Code.

  • 0 Performance Loss

    Change in task success rate after removing defensive rules.

  • 35%

    Reduction in main-loop token consumption.

In past practices, teams added exhaustive defensive rules (such as "always list files before editing," "never remove comments," or "do not run unapproved shell commands") to prevent errors during git commits or unit tests. Applying these legacy defensive constraints to Claude 5 forces the model to balance conflicting rules, causing instruction friction and hobbling native performance.

Experiments proved that trimming 80% of these rigid rules improved Claude Code's first-pass test success rate on multi-file refactoring tasks. Unhobbling model potential and trusting native judgement outperforms micromanaging steps with strict rulebooks.

Thin Prompts and Thick Artifacts: Code as High-Fidelity Context

Modern context engineering adopts the "Thin Prompts, Thick Artifacts" pattern. Keep system prompts concise to specify high-level goals, while attaching detailed style guidelines, data schemas, and architecture contracts via rich reference files.

For example, when asking models to generate a UI layout, avoid natural language descriptions like "240px dark sidebar with #1e293b background and icon header." Instead, attach a concise HTML/JSX prototype or CSS reference file directly:

TYPESCRIPT
// Attach concrete code contracts and prototypes directly rather than prose
export interface DashboardLayoutProps {
  sidebarWidth: '240px';
  theme: 'dark';
  headerSlot: React.ReactNode;
}

Models understand raw code, TypeScript schemas, and HTML prototypes far better than verbose prose descriptions. Defining specifications in code eliminates ambiguity.

Natural language is inherently ambiguous, and using prose to constrain code logic often backfires. Packaging engineering standards into type files or reference code enables models to produce high-quality output directly via pattern matching and type inference.

Prompting Paradigm Evolution

  • Legacy Pattern: Thick Prompts

    Stuffing hundreds of prose lines like "use 2-space indentation" or "add function comments" to cover formatting.

  • Modern Pattern: Thin Prompts

    Keeping core intent concise while leveraging self-explanatory tools and real code prototypes.

Progressive Disclosure: Shifting from Front-Loading to On-Demand Fetching

Front-loading all project documents into initial prompts causes context pollution and inflates Time-To-First-Token (TTFT). Claude 5 encourages Progressive Disclosure, allowing agents to fetch context on demand during execution.

Progressive Context Workflow

  1. Initialize Lightweight Loop

    Load only essential goal descriptions and tool definitions.

  2. Trigger On-Demand Fetching

    Agents call tools to read specific API contracts or codebase files when needed.

  3. Prune Stale Execution State

    Truncate intermediate logs after task milestones to keep context clean.

In Claude Code's actual workflow, agents do not front-load the entire codebase architecture. When users request "fix auth module bug," agents locate auth.ts via search tools and pull dependencies dynamically.

Quantifying Token Cost Differences Between Pull and Push Modes

Under legacy Push modes, a project with 50 files forces initial prompts over 100,000 tokens. Under Pull modes, initial prompts consume under 2,000 tokens, and agents fetch only 3 relevant files across 5 tool turns, reducing total token consumption by over 70% while mitigating middle-of-context degradation.

Lightweight Project Rules & Skills: Retaining Only Project-Specific Gotchas

Project-level configurations (such as CLAUDE.md or .cursorrules) frequently accumulate stale rules over time. Modern models already possess broad domain knowledge, making standard formatting and syntax rules redundant.

General guidelines like "use TypeScript," "use React and Tailwind," or "use camelCase for variables" are already embedded within Claude 5 model weights. Instead, CLAUDE.md should contain only repository gotchas, such as: "export PORT=8080 before running tests" or "database migration files reside in /db/migrations and must not be modified manually."

Project rules should focus exclusively on repository-specific gotchas, such as non-standard build paths, environment constraints, or unique database import contracts.

Context Architecture Migration Guide for Claude 5

When upgrading applications to Claude 5 models, engineering teams should audit existing prompts to unhobble model performance.

Context Architecture Migration Steps

  1. Audit System Prompts

    Purge stale rules and strip prose describing indentation or basic syntax guidelines.

  2. Extract Typed References

    Convert style guidelines into concrete TypeScript contracts or HTML prototypes.

  3. Refactor Tools for On-Demand Pulling

    Upgrade toolsets so agents fetch files dynamically like discovering auth.ts.

  4. Use claude doctor for Periodic Pruning

    Run configuration audit commands to prevent rule accumulation in CLAUDE.md.

Building a goal-driven context workflow unleashes Claude 5's native reasoning potential, achieving optimal balance across latency, accuracy, and cost.

Context Engineering Evolution

  • Legacy Context Engineering

    Defensive approach: stuffing prompts with exhaustive rules; front-loading all context; bloated configuration files causing instruction friction.

  • Claude 5 Context Engineering

    Goal-oriented approach: thin prompts; retaining only gotchas in CLAUDE.md; using claude doctor to maintain setup and relying on native model judgement.

REFERENCES

References

  1. 01Thariq Shihipar (@trq212): The new rules of context engineering for Claude 5 generation models

Next step

Keep tracking Anthropic

Continue along the same topic.

Open entity record