Context engineering

Context before agents.

MDI LABS field note - May 2026

Most AI automation fails quietly.

It does not fail because the model is dumb. It fails because the model is missing the stuff a decent employee would know: which lead is valuable, which service areas matter, what the owner promised last week, what the CRM field means, and when a customer needs a real person instead of another polite paragraph.

That is why our first principle is context before agents.

Prompting is not enough

A good prompt helps. But a prompt is not the same as an operating system. If the agent cannot see the right records, cannot use the right tools, and cannot understand the rules of the business, better wording only gets you so far.

Context is the whole working surface: instructions, examples, policies, customer history, open tasks, documents, tool descriptions, permissions, and recent outcomes. The better that surface is, the less the agent has to guess.

What we collect before building

Once those pieces are clear, the agent can be simpler. That matters because simple systems are easier to debug, cheaper to run, and easier for a team to trust.

Interfaces for agents

Anthropic makes a useful point in its agent guidance: tool definitions deserve the same care as prompts. That matches what we see in practice. If an agent has ten confusing tools, it will use them badly. If it has a few well-documented tools with clear boundaries, the output improves.

In business terms, this means the agent should not be dropped into a messy software stack and told to figure it out. It needs a clean path. Read this lead. Check these fields. Draft this reply. Create this task. Stop here if the deal is high-value.

The MDI version

We treat context as infrastructure. It is not a setup chore. It is the thing that makes the agent useful next month, when the first demo excitement is gone and the owner just wants the workflow to run.

Context first. Agent second. Autonomy only where the workflow has earned it.

Further reading: Anthropic on simple composable agent patterns, Anthropic on Model Context Protocol.