Context Engineer - 9 Techniques That Make Claude Sessions Last
Most Claude Code sessions have a lifespan problem. You start strong, hit YELLOW around 60% context, keep pushing, and somewhere in the ORANGE zone the wheels come off - hallucinated APIs, inconsistent patterns, forgotten decisions. You didn’t run out of context. You ran out of quality context.
Context Engineer is 9 techniques that address this, packaged as one installable plugin.
The 9 Techniques
| Technique | Type | What It Does |
|---|---|---|
| Budget Zones | Skill | GREEN/YELLOW/ORANGE/RED zones with automatic behavior changes |
| Degradation Detection | Skill | Self-diagnosis when Claude starts forgetting |
| Code Intelligence | Background skill | Efficient tool selection for navigation |
| Model Switching | Background skill | Task-to-model mapping |
| Thinking Control | Background skill | Calibrated reasoning depth |
| Test Output Filter | Hook | ~80% token savings |
| Build Output Filter | Hook | ~90% token savings |
| Lint Output Filter | Hook | ~70% token savings |
| Fresh Context Pattern | Command | TASK.md + PROGRESS.md handoff files |
Budget Zones
The most immediately useful technique. Four zones that change how Claude behaves:
| Zone | Context Used | Behavior |
|---|---|---|
| GREEN | < 60% | Full exploration. Read entire files. |
| YELLOW | 60-75% | Selective. Grep over Read. Summarize first. |
| ORANGE | 75-85% | Conservation mode. Line ranges only. |
| RED | > 85% | Wrap up. Create handoff files. New session. |
These activate automatically. You don’t configure them - you just get better sessions.
The Token Savings Are Real
Before Context Engineer, Claude reads all 200 lines of test output (196 passed, 4 failed). After, it reads only the 4 failures and a summary. That’s 80% of the tokens saved on every test run. Multiply that across a full day of TDD and you’re extending session quality by hours.
The hooks only activate on output exceeding 40 lines. Short output passes through unchanged. You won’t notice them until you need them.
The Fresh Context Pattern
The highest-leverage technique for complex features that span multiple sessions:
/context-engineer:fresh-context "implementing JWT authentication"
Creates TASK.md (goal, constraints, decisions made, key files) and PROGRESS.md (completed steps, next actions, blockers). In a new session: “Read TASK.md and PROGRESS.md and continue.” Full awareness, zero token baggage.
Install
claude plugin marketplace add silvesterdivas/context-engineer
claude plugin install context-engineer@context-engineer-marketplace
Then run setup in any project:
/context-engineer:setup
/context-engineer:diagnose
The diagnose command runs a health scorecard across 6 areas - CLAUDE.md config, hooks, MCP hygiene, fresh context files, git state, and project structure - and gives specific fix recommendations.