Building agents like a pro
Professional agents are built on tests, tools and context, not three-page prompts
Key message
Professional agents come from tests, tools and context, not from longer prompts.
Three things to know
- 01
Start simple, evaluate, then add autonomy 1.
- 02
Context and tools matter more than prompt wording 12.
- 03
No test set, no agent: ten past cases with known answers is the minimum.
- 1–2Ktokens a sub-agent returns after exploring tens of thousands 2
- 80–90%resolution rate of a financial-services support agent 3
- Dec 2024Anthropic's Building effective agents 1
The evidence
Anyone can write a long prompt. Agents that hold up on real deals are designed, tested and maintained like any critical process. No code is needed to start; some code is needed to finish.
Why long prompts fail
A three-page prompt mixes method, data, format and exceptions in one block. It is hard to test, breaks when the model changes, and nobody knows which line matters.
Professionals split it: a short instruction, a skill holding the method, templates for the output, tools for actions, and checks at the end.
Context engineering
Anthropic calls context engineering the natural progression of prompt engineering 2. The question is not the wording but what enters the model's limited attention: which documents, which examples, which tool results, in which order.
Sub-agents can explore widely and return 1,000 to 2,000 tokens of distilled findings 2, keeping the main context clean.
Evaluation, the professional habit
Build a test set from past deals where you know the answer: ten teasers with the memo your team wrote, five data rooms with the issues found. Run every new version against it. Score accuracy, sources, format and time.
Agents bring higher costs and compounding errors; test them in a sandbox with guardrails 1.
No code, but not without code
Skills, templates, connectors and assistants let a non-coder build most of a deal-team agent. Code enters at three points: connecting a data source no one has packaged, automating evaluation runs, and checking outputs mechanically.
Do the numbers add up, are all sources live, do dates match? A fund does not need engineers in every team; it needs one person who can write that code.
Maintaining agents
Models change every few months. Each change can improve one task and degrade another. Rerun the test set at every model or skill update, and keep the previous version until the new one passes.
Assign an owner to each agent, as to any process: someone who reads the failures and updates the method.
“While building our agent for SWE-bench, we actually spent more time optimizing our tools than the overall prompt.”
“At Anthropic, we view context engineering as the natural progression of prompt engineering.”
Five hints: the average fund and full power
| The average fund | Full power | |
|---|---|---|
| 01 | Writes a three-page prompt | Splits instruction, skill, template, tools and checks |
| 02 | Judges on a demo | Judges on a test set of past deals |
| 03 | Keeps agents unchanged when models change | Reruns tests at every update |
| 04 | Avoids code | Uses a little code for checks and evaluation |
| 05 | Leaves agents ownerless | Gives each agent an owner who reads failures |
Seven recipes: who does what, and what you get
- 01
Test set in a day
Champion
- Pick one repetitive deliverable
- Collect ten past cases with the final human version
- Write what good looks like for each
- Store them as the evaluation set
- 02
Skill split
Champion
- Take the long prompt
- Split it into instruction, skill, template and checks
- Move examples into the skill
- Retest on the set
- 03
Mechanical checks
Builder
- Write a short script with an AI coding assistant
- Check totals, dates and that every link resolves
- Run it on every output
- Block outputs that fail
- 04
Eval run
Champion
- Run the agent on the ten cases
- Score accuracy, sources, format and time
- Compare with the human version
- Log the score with the version number
- 05
Model-change protocol
AI lead
- When a new model ships, rerun the evaluation set
- Compare scores with the current model
- Switch only if nothing regresses
- Record the decision
- 06
Tool tuning
Champion
- List the tools the agent calls
- Improve their descriptions and outputs
- Remove tools it never needs
- Retest
- 07
Agent register
AI lead
- One line per agent: owner, purpose, test score, last update
- Review monthly
- Retire agents without an owner
- Share with champions
Before you act
Watch out
Judging an agent on one good demo. Agents fail on the fifth case, not the first. Only a test set shows the error rate.
Questions for the partners’ meeting
- Which of our AI routines has a written test set?
- Who owns each agent, and who reads its failures?
- What happens to our agents when the model changes?
- Who in the firm can write the few lines of code we need?
Choose one repetitive deliverable. Collect ten past examples with the final human version. That set is your evaluation: nothing is deployed until it passes.
Sources
Figures as published at the dates shown. Vendor-reported figures are labelled; [E] marks a CarveLines estimate.
Put it to work on a live question
One company or one sector, one precise question, public data first. A sourced fact base and a short memo within days.