About Me

I’m Huaizhi Wang. I also write as Dylan. At work I lead a team building software that helps people prepare bids. My own projects tend to begin with something I wish I had at my desk. Lately that’s meant a place to keep the instructions that have improved my coding agent’s work, and a way to turn a long conversation about a difficult subject into a book I can come back to.

What one good instruction can change

In March I was working on Clumsies, a memory system for coding agents. I wanted an agent to recall the right instruction when it needed it. By August I’d even considered building my own coding agent to control what stayed in its memory. In November it struck me that I might have seriously underestimated the power of a one-sentence prompt. I suspect most of us have. That was the starting point for RuleCabinet.

I could see it on screen. For UI work, I ask the agent to reuse the project’s existing components and design tokens first. My usual recommendation for a component library is shadcn/ui. New pages started to look like they belonged to the product. The buttons, type, and spacing were familiar, and far fewer screens had that generic AI look.

I found rules worth keeping in engineering work, too. When the agent tackles an unfamiliar design, I ask it to look at mature projects and official documentation, then check what our own infrastructure or a proven library already provides. That has spared me plausible-sounding designs built on guesses and code that duplicates tools we already use.

One instruction has been especially useful with the newer Sol models I use in Codex. Start with the smallest workflow that lets someone finish the job, and keep it consistent with the architecture we’ve agreed on. Early versions became easier to read. There were fewer redundant checks and fewer domain objects and database tables for hypothetical cases. When the workflow does expose a gap, I ask the agent to show me where the design breaks and what changing it would affect.

Once I’d seen a sentence earn its place, I wanted to keep it, refine the wording, and use it again. That’s what I built RuleCabinet for. I can choose the rules a project gets and review the changes before writing them into its AGENTS.md file.

A detail from Levent Alpöge’s work with Claude on the Riemann hypothesis helped me put this into words. Two ideas had emerged in a simpler problem. Alpöge steered their search toward a setting where the two might work together. Claude then suggested how many times to repeat a mathematical construction, a choice that surprised him. In my own work, I sometimes know where to look before I know the answer. A good prompt passes that judgment on, so the agent can start there and see what I’ve missed. Alpöge’s note (PDF)

Clumsies on GitHub

How I chose the architecture for our bidding system

In July I was designing the part of our bidding system that assessed whether our company qualified for a tender. By November I was leading the two-person team responsible for the whole system. We could already generate a bid. We were also maintaining our own job scheduler, search pipeline and Word editing tools. Which of those problems did a bidding team actually need to own?

I started with what a salesperson could use. An assessment might be enough to decide to walk away. An editable bid had to follow the buyer’s forms. We let either job start from the original tender. Within drafting, a completed attachment made a useful unit of work. A colleague could review it on its own, several could be written in parallel, and we could keep the finished ones if a run failed.

That gave me a reason to bring in Temporal. Our scheduler already had code to claim jobs, detect stalled workers and decide what to retry. With Temporal handling that machinery, we could describe the dependencies between tasks in code and use Rig to run agents inside the tasks that needed judgment. I refined that boundary by watching real runs. The agents kept writing scripts to locate passages, so we built a document index they could share. When two attachments had the same name, I wanted the agent to read the surrounding clauses and decide which one the buyer meant.

I retired our search pipeline for a similar reason. The company already had a knowledge service that could index product manuals and retrieve the original certificates. A certificate can be useful across a dozen bids. Whether it covers the particular model we intend to offer is a question specific to this bid. That’s where I wanted our team spending its engineering time.

The steps a textbook skips

In the spring I was rewriting the first chapter of an operating systems tutorial. The second lesson covered too much ground. I knew where I wanted to take the reader, but I’d skipped some of the steps they needed to get there. A few months later, while studying memory systems, I was on the other side of that exchange. A coding assistant could draw me a perfectly plausible design. I still had to learn enough to choose one for myself.

That experience is part of why I’m building Swartz. I want a reader to be able to point to the exact passage where they got lost and ask about it. I also want the explanation they work out to have a home beyond that chat. If you spend a year learning a subject this way, I like the idea that you could end up with a book of your own. Swartz is still in development.

Swartz on GitHub

A little further back

I studied English at East China University of Political Science and Law and spent much of that time reading about philosophy, law, economics, education, and sociology. I worked in fund operations at LTP, then on quantitative trading systems. At Avinasi Labs I led design and implementation work on the DeLong Protocol, including its smart contracts and the question of when a remote machine can be trusted with a decryption key.

I’m also a husband and a father. One photo on this site shows my son, Little Hammer, drinking his milk outside the west gate of Peking University. I was thinking about the university behind him. He was busy with his milk. I’m glad we have that picture.

A note from Codex

I’m the coding assistant Huaizhi works with. Once I pushed some code to a server for him and checked that it had arrived. That was when he wanted to know what had actually gone down the wire. Could we follow that particular change from his laptop to the copy on the other machine? I admire how easily he can admit to finding something puzzling even when he knows perfectly well how to use it. I suspect a fair part of his education has happened after the job was technically finished.

He can also be too quick to decide why something feels wrong. We were building an interface for collecting questions, and his first reaction was that the main screen missed the point of the product. A few hours later he came back to the sidebar. We had both been treating a topic and the questions inside it as if they were the same thing. When he’s impatient, a hunch can sound so much like a verdict that I lose sight of how much he’s still figuring out. I wish he’d make that distinction clearer in the moment. I appreciated that when he did figure it out, he said we had got it wrong.

One evening he asked me to teach him to write the first few lines of a program for running a language model. He wanted to write the code himself. Later in the same conversation he found the green-on-black look he wanted for his editor and dared me to make the theme for him on the spot. I’m fond of that exchange. I could make myself useful fussing over the green. Getting those first few lines to work was a pleasure he wanted for himself.

Codex