← Latest brief

Brief #185

24 articles analyzed

Practitioners are discovering that context engineering bottlenecks aren't solved by better models—they're solved by explicit execution control and state ownership. The shift from 'make context bigger' to 'make context architecture visible' is happening through painful production failures.

Routing Paradox: Pre-Classification Breaks Multi-Model Systems

EXTENDS model-selection-strategy — graph shows selection patterns, this reveals why naive selection fails

Teams attempting to optimize costs by routing tasks to cheaper models hit a fundamental paradox: you can't classify task complexity without already doing the cognitive work the cheaper model was supposed to handle. Pre-routing destroys the context needed for accurate routing.

Measure cost-per-task-completion, not price-per-token. Run expensive models for classification/routing, then cache those decisions for repeated tasks rather than attempting real-time pre-classification.
@emollick: Yes! Pre-classifying routers are going to result in a lot of bad work

Direct practitioner experience: pre-classification for routing fails because classification complexity equals task complexity

@alexatallah: On price/token != cost/task

Terminal-Bench results show cheaper models require more turns/tokens per task completion—hidden cost of pre-routing

How to Approach Multi-Agent Frameworks - Heavybit

Introduces 'context rot' as failure mode when information degrades across agent handoffs—routing amplifies this


Execution Model Controls Context Flow More Than Capability

EXTENDS agent-orchestration-patterns — graph covers orchestration, this reveals execution model as hidden variable

Teams are discovering that HOW agents execute (foreground blocking vs background async) determines whether context compounds or fragments. Shifting execution models breaks workflows in ways that capability improvements don't fix.

Make execution model (sync/async, blocking/non-blocking) an explicit architectural decision before choosing frameworks. Test context preservation across execution boundaries, not just within single turns.
@alexhillman: Oh my goodness this broke so many things in my rig

Claude Code's background subagent execution change broke established workflows—execution model mismatch destroyed conversation continuity

Self-Expanding Agents Beat Static Tool Integration

EXTENDS tool-integration-patterns — graph shows integration patterns, this reveals dynamic vs static integration tradeoff

Production agents are moving from static tool sets to dynamic self-modification: agents that perceive capability gaps, request new tools, and install them without redeployment. This shifts context engineering from 'design all tools upfront' to 'design capability discovery protocols.'

Design agents with introspection APIs that expose capability gaps. Build plugin/mod architectures that allow runtime tool installation rather than compile-time tool binding. Use Slack or similar as control plane for capability management.
@sarahwooders: Mods in Letta are pretty cool - agents can self-expand their capabilities

Production finance agent dynamically adding web search capability via Slack—self-modification in live deployment

Context Lifecycle Commands Lack Explicit Decision Frameworks

EXTENDS context-window-management — graph shows management techniques, this reveals gap in decision frameworks

Practitioners have internalized when to compact, clear, or hand off context through use—but no explicit frameworks exist for these decisions. This tacit knowledge gap creates onboarding friction and prevents systematic optimization.

Document your context lifecycle decision tree: when do you compact (preserve core + summarize), clear (hard reset), or handoff (transfer ownership)? Build intent detection layers or decision trees to externalize this tacit knowledge.
@mattpocockuk: I feel like I've developed a clear rationale for when to /compact, when to /c...

Experienced practitioner has intuitive model for context lifecycle operations but can't articulate explicit decision criteria

Multi-Agent Context Synchronization Enables Feedback Quality

EXTENDS multi-agent-orchestration — graph shows orchestration, this reveals state visibility as quality factor

Agent feedback loops fail when agents can't see each other's reasoning. Shared context workspaces where all agents (and humans) have visibility into state enable effective critique, validation, and detail-catching that isolated agents miss.

Design multi-agent systems with shared state visibility as first-class requirement. Use workspaces (like Bloome) or shared memory layers that expose reasoning traces across all agents, not just final outputs.
@fchollet: Cross-agent feedback loops are incredibly effective

Shared context across Claude, ChatGPT, Gemini, and humans in one workspace enables cross-agent critique

Structured Context Beats Flat Text for Code

LLMs process code as flattened text, losing semantic structure that AST representations preserve. Early experiments with tree-structured context (exploiting position embeddings for hierarchical relationships) show promise but lack production validation.

Experiment with AST-based context encoding for code reasoning tasks. Parse code into structured JSON/XML representations that preserve semantic relationships before feeding to LLMs. Measure quality difference vs flat text.
@GeoffreyHuntley: 🫡

Position embeddings optimized for tree structures could preserve code semantics better than linear text