I Built My Own Agentic Client (So You Don’t Have To)

TL;DR – I built a series of Mistral API clients in C#, starting with one raw HTTP POST in Telerik Fiddler and ending with a command line interface(CLI) that has file tools, permissioning and context management. No SDK, no libraries. This post starts the series. Everything I mention is committed at KiwiBryn/CodeCampCHC2026, numbered in talk order.

Part 0- Series Introduction

On 21 November 2026 I gave a session at Christchurch Code Camp called “I Built My Own Agentic Client (So You Don’t Have To)”. This is the long-form version, split into a series of posts.

  • Part 1 – the first demo, one HTTP POST in Telerik Fiddler, and what the messages array on the wire actually looks like.
  • Part 2 – what happened between the two demos. Hand-typed DTOs, the OpenAPI spec that would not fit.
  • Part 3 – the second demo, the Mistral CLI. File tools, permissioning, context management and the Files API.

The honest subtitle was “Fiddler to a self-building, self-improving CLI”. The plan grew backwards from there. Everything in the repo got built twice. Once by me understanding it, once by the model generating it.

The rules

Every client in the series, I built. No SDK, no libraries. Visual Studio 2026, C#/.NET, Mistral Chat Completions API, System.Text.Json.

That was the constraint for the talk and it is the constraint for these posts. Constraints make a better story than plans.

One housekeeping note. Mistral hosts data in the EU by default. There is a US endpoint which is faster from New Zealand, but it is the US of A. The European Union (EU) General Data Protection Regulation (GDPR) was a factor for the clients I build professionally. Here it is mostly an excuse to say I checked.

Why bother

Three reasons, none of them “because it is there” or “just because”

First, understanding. If every client I use, I build, then when the payload is wrong I know which layer is lying. An HTTP Error 422 Unprocessable Content does not become a GitHub issue on someone else’s SDK repo. I have the wire trace and I have the Data Transfer Obect(DTO)s.

Second, judgement. An agentic client is a small amount of code around a large amount of policy. What the model may read, what it may write, what it may delete, what gets compressed. My view is that policy should be visible in code you can read over coffee, for the same reason you do not hand your car keys to a stranger.

Third, receipts. Everything in this series is committed and numbered in the order I built it. Clone KiwiBryn/CodeCampCHC2026 and follow along.

What I am not doing

I am not arguing nobody should use an SDK. Kiota shows up in Part 2 as a deliberate sidequest and it taught me two things I use. The reason to build one yourself, once, is that after you have done it, the SDK stops being magic and starts being a trade-off you can price.

Posts in this series

  • Part 1 – One HTTP POST, Fiddler, Server Sent Events(SSE), and the 422 that lied to me.
  • Part 2 – From half-arsed DTOs to 296 lines of YAML. The spec journey, the token ladder.
  • Part 3 – The CLI. Tools, permissioning, a model that went feral, and what it cost.

Next up: Part 1, the atom everything else is built from – one HTTP POST.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.