Context Engineering

James Phoenix
James Phoenix

The art of structuring information for LLM agents to maximize both token efficiency and comprehension.


Articles

Foundations

Agent Patterns

Prompting Techniques

Context Management

Verification & Testing

Quality Gates & Linting

Development Workflows

Error Handling & Debugging

Model & Provider Strategy

Infrastructure & Tooling

Philosophy & Identity

Planning & Refinement


Core Principles

  1. Own your context window – Structure information deliberately, don’t rely on framework defaults
  2. Deterministic beats non-deterministic – Use code to control what you can, reserve LLMs for decisions
  3. Small, focused agents – Scope agents to 3-20 steps; performance degrades with context growth
  4. Progressive disclosure – Load only relevant context for the current task
  5. Backpressure on output – Compress verbose output; only show errors in full

Key Insight

“Most ‘AI agents’ in production aren’t pure agentic systems. They’re predominantly deterministic code with targeted LLM decision-making.”


Sources


Related

Topics
Agent ReliabilityContext EngineeringCost OptimizationInformation TheoryLlm Mechanics

Newsletter

Become a better AI engineer

Weekly deep dives on production AI systems, context engineering, and the patterns that compound. No fluff, no tutorials. Just what works.

Join 306K+ developers. No spam. Unsubscribe anytime.


More Insights

Cover Image for Computer Use Kills the Config Tax, Not the Trust Tax

Computer Use Kills the Config Tax, Not the Trust Tax

My sister hates job applications because they make her re-submit information she already has. That is the same pain as API app review, and the same agent that lives in my codebase can dissolve both. This feels insane, and it is the new default shape of the work.

James Phoenix
James Phoenix
Cover Image for Sentry Errors Should Spawn Agents on Your Own Machine

Sentry Errors Should Spawn Agents on Your Own Machine

A new production error is an event. Events should trigger work, not sit in a dashboard. So I wired Sentry to spawn a coding agent on my own hardware, point it at my exact stack, and open a draft PR with a fix.

James Phoenix
James Phoenix