FDE Times dataFDE jobs open 928▲21 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 85Companies hiring 200Remote-friendly 24%Median US pay $200kTop hirer Databricks 107
中文VI

The newspaper of the Forward Deployed Engineer

Guides

Agents fail at clients when workflow knowledge sits in the wrong place

MCP servers set what an agent can reach, skills how it works and sub-agents what it may see; mixing them up costs context and safety.

ShareLinkedInFacebookX

In brief

  • MCP decides which systems the agent can touch. A skill teaches the agent the client's process. A sub-agent moves a task into its own context, with its own permissions.
  • With a skill, only the description sits in context; the body loads when the skill is used. Long procedures therefore belong in a skill rather than in CLAUDE.md.
  • Sub-agents are not cheap: Anthropic's multi-agent research system uses about 15 times as many tokens as chat. Use one only when a side task would flood the main context or when you need a permission boundary.
Architecture diagram using a claims-assessment example. A main agent sits in the centre, linked to three places to put logic. On the left is the skill, highlighted in orange: it answers "how is it done?" and holds the 7 assessment steps and the table of exclusion codes. On the right is the MCP server: it answers "which system does it touch?", namely the contract system and the invoice store. Below is the sub-agent: it answers "where does it run, with what permissions?", and may only use Read, Grep and Glob.
In the claims example, the MCP server connects the agent to the client's systems, the skill holds the assessment workflow, and the sub-agent checks for duplicate invoices with read-only access. Source: Anthropic and Claude Code documentation cited in the article.

Imagine you are in your second week at a health insurer. The head of claims has just spent three hours explaining how her team assesses a claim.

First, check whether the policy is still in force. Then reconcile the hospital invoices, look up the exclusion code table, and, if the claim exceeds a certain threshold, escalate it.

You now have a notebook full of notes and an agent that needs to learn all of it. Before writing the first line of code, you have to answer one question: where should each piece of this knowledge live?

It sounds simple, but put things in the wrong place and the agent burns context, becomes hard to change whenever the client alters its process, and may be able to read data it should never touch. A good FDE distinguishes three containers: the MCP server, the agent skill and the sub-agent.

Three containers answer three different questions

MCP (Model Context Protocol) is an open standard for connecting AI applications to external systems such as data sources, tools and workflows. The official documentation likens MCP to a USB-C port for AI applications.

You write a connection once, and any application that supports the standard can plug into it. MCP answers the question: which systems can the agent touch?

As Anthropic defines them, Agent Skills are organised folders of instructions, scripts and resources that an agent discovers and loads when needed. A skill answers the question: how should the agent do this work? Anthropic sees skills as complementary to MCP: MCP opens up access, while skills teach the agent more complex workflows.

A sub-agent is a specialised assistant. It runs in its own context window, with its own system prompt, its own set of tools and independent permissions. A sub-agent answers the third question: where should this work happen, and with what permissions?

Taking apart a claim

Go back to the notebook from that hypothetical insurer and sort it piece by piece.

The policy management system and the invoice store are the client’s infrastructure, so they belong in an MCP server, with tools such as looking up a policy by number or fetching invoices by claim ID. If the client later wants to switch to a different agent or IDE, this connection can be reused.

The seven assessment steps, the exclusion code table and the payout formula are process knowledge, so they belong in a skill. The folder might look like this (the names are Vietnamese: the skill is “claims assessment”, with an exclusion-code table and a payout script):

assess-claim/
├── SKILL.md            # the steps, escalation thresholds
├── exclusion-codes.md  # long lookup table, read only when needed
└── calculate_payout.py # calculation script, so the model doesn't do the math in its head

The comments read: the steps and escalation thresholds; a long lookup table, read only when needed; and a calculation script, so the model is not left to do the arithmetic in its head. The top of SKILL.md only needs to be short:

---
name: assess-claim
description: Use when assessing a medical insurance claim, checking
  policy validity, reconciling invoices and deciding whether to escalate for approval.
---
1. Call the policy lookup tool; stop if the policy has expired.
2. ...

The description says, in effect: use this when assessing medical claims, checking policy validity, reconciling invoices and deciding on escalation. Step one: call the policy lookup tool and stop if the policy has lapsed.

The description is the line that matters most. In Claude Code, only a skill’s description sits in context so the agent knows which skills it has; the full content loads only when the skill is invoked. Anthropic calls this progressive disclosure (load only what is needed, when it is needed) and treats it as the core design principle of skills.

The last task is scanning a few hundred scanned invoices for duplicates. This work is noisy: it pours out large amounts of file content the main agent will never read again, so it suits a sub-agent:

---
name: reconcile-invoices
description: Scan a claim's invoice store and return a list of duplicate or anomalous invoices.
tools: Read, Grep, Glob
---
Read only. Do not edit or delete files. Return results as a short table.

This “invoice reconciliation” sub-agent scans a claim’s invoices and returns duplicates or anomalies. Its instructions: read only, do not edit or delete files, return results as a short table.

The tools field works as an allowlist, while disallowedTools serves as a denylist. With a client’s medical data, this is where you draw the permission boundary in configuration, rather than relying on the model to discipline itself.

The two layers can be connected. When a skill declares context: fork, Claude Code starts a sub-agent of the type named in the agent field and uses the skill’s content as its prompt:

---
name: scan-duplicate-invoices
description: Use when you need to scan all invoices in a claim to find duplicate invoices.
context: fork
agent: reconcile-invoices
---
Get the list of invoices by claim ID, compare amounts and visit dates,
return a table of suspected duplicate pairs.

Here the skill tells the sub-agent to fetch the invoice list by claim ID, compare amounts and visit dates, and return a table of suspected duplicate pairs.

How to find duplicate invoices is written in the skill, but execution happens inside a sub-agent that has only Read, Grep and Glob. When the client changes its definition of a duplicate, you edit the skill. When the security team wants tighter permissions, you edit the sub-agent. The two changes never collide.

Context is a budget; spend it well

This split follows from one fact: context costs money. The Claude Code documentation states plainly that, unlike content in CLAUDE.md, a skill’s body loads only when it is used, so long reference material costs almost nothing until it is actually needed.

A ten-page exclusion code table in CLAUDE.md eats context on every turn of the conversation. Put in a skill, it takes up space only while the agent is assessing a claim.

MCP has its own cost: preloading definitions for too many tools consumes context. Anthropic has experimented with having the agent write code to call tools instead of loading every definition up front, and in one example token usage fell from 150,000 to 2,000. An MCP server with fifty thin tools, each carrying a long description, is a liability.

The sub-agent is the most expensive option. Anthropic reports that its multi-agent research system uses about 15 times as many tokens as ordinary chat, and that this kind of architecture is a poorer fit for coding tasks with little room for parallelism.

That figure measures a whole multi-agent system rather than a single sub-agent call, but the direction is clear: every separate context is another token bill.

So use a sub-agent only when a side task would flood the main conversation with search results, logs or file contents nobody will read again, or when you need a permission boundary.

In what order should you work at the client site?

After the discovery session, do not open the editor straight away. Write down everything the client said as separate lines, then ask three questions of each: which system does it need access to, how should it be done, and does it need its own space and permissions? Any line that does not get a “yes” to the third question is, by default, not a sub-agent.

Next, build the MCP server with few tools, each with a clear meaning, and keep process out of the tool descriptions. Only then write the skills. Put the most effort into the description line, because it is the only thing the agent sees when deciding whether to invoke the skill. Write it in the words the client’s users actually say, not in your own jargon.

Finally, use real questions from the client’s users to test whether the agent calls the right skill and the right tool. When the client changes an approval threshold and you only have to edit one markdown file, that is a sign you packaged things correctly.

Four common mistakes

The most common mistake is stuffing the entire process into CLAUDE.md or the system prompt. The demo still works, but every new procedure takes up more context on every turn, and by the third month nobody dares touch that file.

The second is writing business logic into the MCP server, for example wrapping a tool such as “assess the whole claim” around dozens of if-else branches. The process is then locked inside the server’s code, where the business team can neither read nor change it. Keep MCP thin and let skills carry the process.

The third is splitting everything into sub-agents to look architectural. Every separate context is more tokens to pay for, and the client will see the bill before it sees the value. The fourth is the opposite: creating a sub-agent but letting it inherit every tool, which throws away its biggest benefit, the permission boundary.

How to put it on a CV so recruiters understand

The claims example above can become a concrete CV line.

Instead of writing “built an agent for an insurance company”, write something like: “Split the claims assessment process into a skill made up of SKILL.md, an exclusion code table and a payout script; an MCP server with read-only access to policies and invoices; and a duplicate-invoice sub-agent granted only Read, Grep and Glob.”

That line shows the reader you know how to put process, connections and permissions in three different places, and why. If asked about it in an interview, go on to describe how the client changed the approval threshold and you only had to edit one file.

Models will change many times in the coming years. What stays with the client is how you organised their knowledge: processes that can be read, connections that can be reused, and permissions written down explicitly.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
6 sources
Read next on the roadmap · Stage 3: Applied AIWhen the JSON parses but the invoice total is wrongFive checks, from schema to source citations, decide which extracted figures go straight to accounting and which wait for a human reviewer.