I’m writing Go again for a project I haven’t identified yet; I said, “for what, you'll see later.”
I find go doc and gopls useful for agents, describing them as “agent superpowers.”
I see Go and Zig as a good mix: Go for the higher level and concurrent stuff, and no-libc Zig with the Zig compiler for zero dependency cross-compiled cgo with high-performance characteristics; I aim to minimize cgo boundary crosses.
I was wrong, mostly because agents are so productive at Go. I said they write good Go code out of the box compared with other languages I’ve used, including the JS ecosystem.
Ghostty and libghostty will remain pure Zig; the Go-and-Zig approach is for something else.
I won’t bring other languages into that discussion because I don’t want to “feed the crabs.”
My Go-and-Zig choice reflects how productive I find agents in Go and a division of labor between higher-level concurrent work and lower-level no-libc code. It is separate from Ghostty’s pure-Zig direction and connects to human expertise drives quality.
When I worked on Terraform plugins, producing a minimal working plugin took at least dozens of minutes, especially with early 0.1 stuff.
When the Terraform SDK changed, we had to rewrite all that and pay that time cost again.
That effort was to produce ONE plugin, not a good plugin; the goal was testing the plugin model and SDK features, and I called it a waste of time.
AI solves that problem for me, and I’m having a much better experience this time.
I’ve found AI helpful for the repetitive cost of prototyping Terraform plugins and adapting them when the SDK changes, connecting this experience to planning and reviewing ai work.
I’ve implemented 6 split UI frameworks in four years.
Plenty of AI assistance but also plenty of hand-written work went into my split UI framework.
All manually organized: that was how I organized the split UI framework work.
I think good building blocks present simple interfaces and hide intricate complexity.
My split-framework experience combines AI assistance with substantial hand-writing and manual organization; I value building blocks that make complexity manageable.
I found that frontier models seem trained enough on my couple decades of open source work to imitate my commit-message style.
I can prompt, “write a commit message in mitchellh style,” without any further skills, and it does pretty much the right thing.
I was pleasantly surprised that a short instruction can produce a commit message close to my style without additional skills or instructions.
I use AI to accelerate coding and prototyping, especially when work has repetitive patterns or when I need a starting structure for a UI. I treat generated code as something to guide, review, and iterate on rather than automatically as finished work; this connects to human expertise drives quality and ai assisted debugging and testing.
If there's a lot of repetition, I'll also convert part of the C to Zig and reprompt it to follow that pattern for the rest, which it usually crushes at.
I asked Gemini to reproduce the command palette in Zed (with a screenshot) in SwiftUI and it zero-shot this; I called the result “Unreal.”
I describe meaningful tool adoption as three phases: inefficiency, adequacy, and workflow and life-altering discovery. I wrote, “My experience adopting any meaningful tool is that I've necessarily gone through three phases: (1) a period of inefficiency (2) a period of adequacy, then finally (3) a period of workflow and life-altering discovery.”
I have to force myself through phase 1 and 2 because I usually have a workflow I'm already happy and comfortable with. Adopting a tool feels like work, but I usually do it in an effort to be a well-rounded person of my craft.
My first “oh wow” coding experiment was asking Gemini to recreate Zed’s command palette in SwiftUI from a screenshot. The command palette that ships for macOS in Ghostty today is only very lightly modified from what Gemini produced for me in seconds.
In the context of brownfield projects, I found the chat interface produced poor results very often. I also found myself very frustrated copying and pasting code and command output to and from the interface; it was very obviously far less efficient than me doing the work myself.
When I tried to reproduce that behavior for other tasks, I was left disappointed.
Chatbots have real value and are a daily part of my AI workflow, but their utility in coding is highly limited: you're mostly hoping they come up with the right results based on their prior training, and correcting them involves a human (you) telling them they're wrong repeatedly. It is inefficient.
I think everyone's first experience with AI is a chat interface, and everyone's first experience trying to code with AI has been asking a chat interface to write code.
My first step is: “Immediately cease trying to perform meaningful work via a chatbot” (e.g. ChatGPT or Gemini on the web). I recommend using an agent for meaningful work instead.
I define an agent as “An agent is the industry-adopted term for an LLM that can chat and invoke external behavior in a loop.” At a bare minimum, the agent must have the ability to read files, execute programs, and make HTTP requests.
This account is part of my effort to describe finding value in AI tooling in a nuanced, measured way rather than through overly dramatic or hyped takes. I explicitly said the post was fully written by hand, in my own words.
Building UI doesn't ✨Spark Joy✨ for me, and I said the generated command palette still needed lots of polish.
I used Zed’s command palette as a starting point because a command palette is pretty standard UI, but I did not want to copy Zed exactly.
The entries are copied from the screenshot (from Zed), and these are not real Ghostty actions. The "command palette" button is obviously just for debugging.
I was mostly hoping to get broken but directionally correct SwiftUI boilerplate I could then iterate on, and I did not expect Gemini to work as well as it did.
I just want the structure of a command palette I can then start iterating on, not a perfect match to Zed.
I didn't expect it to nail things like focus, mouse and keyboard behaviors, keyboard shortcuts, etc. though.
I wrote Zig bindings to quickjs-ng with 96% API coverage (~240 exported C decls) with unit tests, examples, and doc strings on all functions in less than 6 total hours with AI assistance.
I was reviewing everything it outputted, ensuring the output was idiomatic Zig, and writing my own tests on the side to verify its work (while it worked).
My work was split across ~40 separate Amp threads, not one mega session, which doesn't work anyways unless you're orchestrating.
I have a ton of experience writing bindings to libraries for various languages, especially Zig, and I have never achieved this much coverage in so little time with such high quality (e.g. test coverage).
My usual approach is to get bind just-enough of the surface area to do my actual work and move on. This time I thought I'd draw the whole owl, because it's a new world.
There is probably some corners that are kind of nasty still, but I've been re-reviewing every line of code manually and there is nothing major. Definitely some areas that can just use a nicer Zig interfaces over the C API, but that's about it.
LLMs/agents are really, really good at annoying repetition and pattern matching.
I plan on writing a longer form blog showcasing my threads, and shared the final repository in the meantime.
When there's a lot of repetition, I convert part of the C to Zig and reprompt it to follow that pattern for the rest; I said this usually crushes at the task.
Related: verifying ai results, ai disclosure in code contributions, evaluating ai tools