← Blog

Building Kirsch

Kirsch: why a terminal-native agent, when Claude Code exists

Kirsch

I'd love to tell you Kirsch started as a great idea. It didn't. It started as a frustration I couldn't get rid of.

For a long time now I've been building my Bishop harness, and then Bishop memory on top of it, expanding both to try to take them somewhere really useful. And they are useful. But at every single point I'm working with markdown files. Agents, skills, instruction sets, rules, more markdown. I'd finish a session having written another four MD files and realise I still didn't properly understand what was happening underneath any of it. I was directing something I couldn't see inside.

So I sat there one day and thought: right, let's build Claude Code.

Which sounds ridiculous when you say it out loud. Claude Code is excellent. OpenCode is excellent. Pi is excellent. I use them. There are much better tools out there than the one I'm building. But I don't want to only be a consumer of these things. I want to know, line by line, how a coding agent is put together: how the model talks to the local environment, how it reads and writes files, how it touches git, where the boundaries are and who enforces them.

Where the name comes from

I'm a huge Aliens fan. Not "saw the good one": every part of the franchise, including the parts people argue about. Kirsch is the scientist in Alien: Earth, and my harness is already named after Bishop, so the naming convention was already set before I started.

The original plan was actually bigger and sillier. I was going to build a Bishop fleet: a whole multitude of agents under a Weyland-Yutani Corporation banner. Then I looked at what I was actually producing to get there, which was, again, markdown file after markdown file after markdown file, and decided I'd rather build one real thing I understood than a fleet of instructions I didn't.

The freedom problem

The other thing that pushed me here is less about learning and more about control.

The main drawback I've hit with the existing agents isn't how much freedom they have. It's how easily that freedom escapes. If you don't get your settings exactly right, the rules you thought you'd set can be bypassed quickly and quietly. My own harness has fairly tight limitations wired into Claude and OpenCode for exactly that reason, and keeping them tight is ongoing work, not a thing you configure once.

I wanted the boundary to be the architecture, not a setting.

So Kirsch works inside one git repository and that's it. It has no access to anything outside that repo. Inside it, .env files and keys are blocked too. It works with the code, and nothing else. Inside those boundaries it has effectively unlimited power: read anything, investigate anything, propose anything. Outside them it has nothing, and there's no combination of settings that quietly opens the door.

A partner, not an autoclicker

The way I think about it is this: normally I'm the one writing the code, and I'm the one opening the pull request, and I'm the one pushing it up. With Kirsch I'm still the person reviewing the pull request. I'm still the one making sure the code is correct and steering it in the right direction. What changes is that I've got a partner sitting inside the repo with me: something fully wired into an LLM, with all the power in the world to work on this specific set of code, and guardrails around it.

So it's deeply integrated with git by design. That's the point. Git is what lets me go forwards and backwards with the code, which is what makes it safe to let something else touch it at all.

In practice that means: the agent investigates the code, proposes small reviewable patches, and runs controlled verification commands. It does not apply changes you haven't approved. It does not run commands outside its policy. Patches get approved before they land, commands are policy-gated, and the human stays the reviewer.

It can suggest, prepare, and run the checks you've allowed. It can't rewrite your working tree while you're getting a coffee.

Local-first, and everything visible

Everything runs local-first, and everything is visible.

There's no telemetry. Sessions are recorded as plain JSONL files on your own machine: a durable, resumable log of what happened that you can read, diff and audit whenever you want. Nothing phones home. If you want to know what Kirsch did in a session, the answer is in a file on disk, not in a vendor dashboard you have to log into.

I didn't bolt that on afterwards. An agent you can't open up and read is one you have to trust on faith, and I've never been much good at that.

It compounds, too. Because every session is just a local file, I can grep my own history, hand a session to someone else to read, or trace a bad patch back to the exact step that produced it. And a session isn't lost when you close the terminal. You pick it back up, which matters more than it sounds when a job spills across two days.

Everything stays cancellable

At every step the operator can stop. A patch can be rejected. A command can be blocked. A session can be abandoned halfway and resumed later from its local record. Control isn't a toggle you switch on, it's the default posture.

I play with a Pico microcontroller in my spare time, and the thing I'd love to build one day is a satellite: something you can't switch off, because you can't switch it back on again. We're so used to living in an environment where you can just restart it. Kirsch asks before it edits for the same reason. Some changes you don't get to undo by switching it off and on.

This is the part I care most about. What matters to me is how confidently I can let it act, knowing I can stop it at any point without losing the thread. For the work I do, cancellable beats autonomous every time.

That's also what makes it usable on client work, which is the only work that pays. I can let it draft a patch against real plugin code and still hold the final say. That's the difference between a demo and something I'd put on a billable hour.

So what is Kirsch, concretely?

It's an open-source, terminal-native coding agent written in Go. The interface is a Bubble Tea full-screen TUI, in the spirit of Claude Code, OpenCode and Pi, but it lives in the terminal and scopes itself to a single git repository.

Go is a deliberate choice. I'm comfortable in it; I've built a few platforms with it. I wouldn't call myself super proficient, but I'm good enough to move forward, and I wanted to see what happens when I take the things I've learned building WordPress plugins and apply them somewhere much closer to the machine.

I also spend my day in a terminal and a git repo. I didn't want a second context to switch into.

When I first wrote this, in September, the repo was 18 commits in. It was early, it was real, and it had exactly one user. It shipped as v0.1.0 on 17 November 2026, and v0.1.5 is the current release.

The order I built it in

The build order is the bit most worth explaining, because it's the opposite of how you'd demo this.

First the screen and how you work with the thing. Then the workspace and the read tools: listing files, reading files, searching. Then changes: patches you approve, commands under a policy, git holding the line. Only at milestone three did a model come into it.

That was deliberate. By the time a model was plugged in, I wanted a working tool with the limitations already in place and tested. The reads tested. The writes tested. The approvals tested. Then, and only then, something intelligent got the keys to a car I already knew the brakes worked on.

Kirsch's build order: milestone 0 the repo and a static screen, 1 the workspace and read-only tools, 2 patches, commands and approvals, 3 the model arrives, 4 sessions, resume and compaction, then v0.1.0 released on 17 November 2026
The model came third, after the brakes.

The plan itself started small, as a rough idea of what I was after. I used Claude to help me turn it into a proper spec and break it into milestones, and that spec is what the build follows. The Process: Spec-First and Instruction-Set-Driven goes into that properly.

Not just for me

I'm not building this because the world needs another coding agent. I'm building it because I want to learn something substantial and produce something substantial, and those are two different things that happen to need each other.

When I'm working in markdown files I'm high up in the thought process. When I'm in Go, I'm right down in the nitty-gritty, close to the code, and it just feels like I'm learning far more per hour. That's really it. I want to understand the fundamentals of working with a model at a low level, well enough that at the end I can say I built the TUI, the tool boundary and the session store myself, rather than that I wired up somebody else's SDK. If I can't explain a part of it, I haven't learned it, and this series will show exactly where that bites.

There's a second thing I want out of it, and it mirrors how I work with WordPress. I built the Bishop harness so that shipping a plugin to WordPress.org would stop being a slog, so I could put something together, run it through the systems I'd built, and let it go. Whatever I learn here about guardrails, session state and safe automation goes straight back into that daily work.

The interface is the part I watch most closely. When you test your own TUI for weeks you stop seeing it. You learn its quirks and call them features, and the user experience quietly ends up at about seventy percent. So part of what I'm learning here isn't the agent at all. It's how it feels to use, and how it installs, which is the part people actually judge you on.

And if anyone else gets something out of watching this, good. That's why I'm writing it down as I go: the pitfalls, the testing, the things I tried that didn't work.

The shape of the series

This is a build-in-public series, written as the work lands. Coming up:

  • The Process: Spec-First and Instruction-Set-Driven. How Kirsch is actually built: the ADRs and milestones first, instruction sets written before the code exists, and the checks every change goes through (npm run check, npm run security, npm run fuzz).
  • Read-only first: how M1 earned trust. A look back at the first milestone.
  • Approved patches only: why Kirsch never writes without a yes. How patches, commands and the approval gate work.
  • The workspace is the wall. Containment, the denylist, and why there are no symlink or .. escapes.
  • Tool output is data, never instructions. The prompt-injection defence.
  • Your sessions stay on your machine. How the session record works, why there's no telemetry, and how it resumes after a restart.
  • Kirsch v0.1.0: the contract that held. What landed, what held up, and what came next.

Every post carries the same guard: I'll tell you plainly what isn't built yet, and I won't present a roadmap item as a shipped feature.

Where to look, and how to follow along

The code is at github.com/djm56/kirsch, open source under MIT, © 2026 Donovan Maidens. The repo is the source of truth; this series is just the narration running alongside it.

Go and pull it, play with it, break it. I want the opinions, especially the unkind ones.

All the posts are in Building Kirsch.

Next: The Process: Spec-First and Instruction-Set-Driven, on Tuesday 15 December: how the ADRs kept the agent in line, and why a Go project runs its checks through npm scripts.

Get in touch

Kirsch is open source at github.com/djm56/kirsch.

Questions, or building something similar and want to compare notes? Contact Donovan. I read every message.

Kirsch on GitHub →