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 The Environment Leads The Agent

The Environment Leads The Agent

For a long time I tried to lead my coding agents with better and better prompts, and they kept drifting. What finally worked was the opposite move. As I optimised the boilerplate of the repository I was building, I kept pushing each lesson I learned down into the floor of the repo: hermetic environments, typed contracts, mechanical lint, integration-first tests, queryable telemetry. Somewhere along the way the repo itself became the thing steering the agent, and it asks me what to do far less than it used to. This is the journey that got me there, and what it taught me.

James Phoenix
James Phoenix
Cover Image for Your Own Life Is a Queryable, Validated Corpus

Your Own Life Is a Queryable, Validated Corpus

Your private data exhaust deserves the same treatment as production data: indexed, validated, version-controlled, and queried by an agent. Once you make that move, writing a song, paying a tax bill, and updating a CV all become the same engineering problem.

James Phoenix
James Phoenix