
How to Add Agent Skills Support to a Custom Agent Harness
Add Agent Skills support to your custom AI agent: SKILL.md discovery, progressive disclosure, tool loading, and evals, with TypeScript and Python examples.
The case study
Building a local-first AI finance agent, in public — one release at a time.
A local-first personal finance agent you own and run yourself — an AI agent you can trust with real money because it never acts without your approval. Built in public, one tagged release per article: each entry adds a capability to the same agent instead of starting over, so you learn agent engineering by watching one real system grow.
Most agent tutorials build a throwaway toy and move on. Cameron is the opposite: one real agent that grows across the series, so you see how tools, memory, and safety actually compound into a system you can trust. And it is local-first by design — your financial data never leaves infrastructure you control, which is exactly the constraint that makes the engineering interesting.
These hold every version and explain why the code is shaped the way it is.
Two real sessions against a live statement. Both show the same invariant from different angles: you see what Cameron is about to do before it does it.
cameron · can you load these expenses

Each version is roughly one or two articles. The ecosystem may reorder or insert versions along the way — that’s the point.
The starter as-is: chat loop, streaming, persistence, dynamic MCP tool loading, human-in-the-loop approvals, and multi-model support that everything else builds on.
Identity and persona, a transaction store you own, and approval-gated finance tools (log, query, guarded SQL, fail-loud CSV import). "Meet Cameron."
A test layer for the tools and an eval harness with gradeable ground truth, so every capability after this one ships with evidence it works instead of an assurance that it does.
A skill loader built on the standard SKILL.md format, with progressive disclosure: names and descriptions sit in the prompt, and the agent loads a skill’s full instructions only when it decides it needs them. The first skill turns questions into visual spending reports, rendered by UI tools the agent calls with data — no code sandbox required.
Cameron inherited Langfuse tracing from the starter: a vendor callback pointed at a hosted backend by default. That quietly breaks the third rule, because a trace carries every prompt, tool argument and transaction. Tracing moves to OpenTelemetry’s GenAI conventions, prompts and tool payloads stay out of traces unless the owner opts in, and the backend is self-hosted next to Cameron, so the traces are as owned as the data. Any OTLP backend becomes a one-line swap.
The MCP client Cameron inherited from the starter moves from the v1 SDK to v2, and stops binding every connected tool into the context up front. Tools get the same progressive disclosure skills got in v3: the agent sees each tool’s name and a one-line description, and loads its full schema only when it decides to call it. Context stays lean as connectors pile up.
Receipt and statement ingestion: extract a proposed expense from a photo, then confirm it through the same approval gate — the model reads, the owner decides.
Preferences Cameron keeps across conversations: saved when the owner states or corrects one, shown in the chat as they’re saved, and forgettable in one click. Only titles sit in context; details load on demand. Old tool results are cleared from what the model sees, never from the history the owner sees.
Tasks Cameron runs on a schedule while the owner is away, through the same approval gate. The owner grants the tools a task may use without asking; a run that needs them waits on Home and resumes from its own page. Every write a run made is listed afterwards, with undo where Cameron can safely reverse it.
Email Cameron from your own address and it answers in the same conversation: a forwarded receipt is logged under the grants you set, and you’re told when a task needs you. Email never approves anything; a write that needs you still waits in the app.
The owner describes a recurring job in plain words and Cameron turns it into a task: the schedule, the brief, and the tools it needs. Creating one is a write like any other, so it waits for the owner’s approval, and a drafted task is checked before it ever runs.
The interface becomes one product instead of a chat with pages attached, and Cameron is hardened as what it also is: a self-hosted app holding real financial data.

Add Agent Skills support to your custom AI agent: SKILL.md discovery, progressive disclosure, tool loading, and evals, with TypeScript and Python examples.

A scripted multi-turn eval replays fixed user turns regardless of what the agent said. The moment the agent asks a question the case author did not anticipate, the script answers something else and the case fails for the wrong reason - rewarding agents that guess and punishing agents that ask.

Where the first cases come from, which ones earn a place in the suite, why every case that pushes a behavior needs one that bounds it, how to grade without an LLM judge, and what the first honest run surfaced.

You designed the tool well. Nothing verifies it still does what its description promises. An audit of eight tools found four contract bugs, including one that made a finance agent report $2,812 for a $2,752 bill, and the cheap test layer that catches them.

Cameron is a local-first personal finance agent you own and run yourself. v1 shows how an LLM loop, tools, and an approval gate compose into an agent you can trust with real money.