My research workflow in the AI era
AI writes my experiment code now. My job is deciding what to try and whether the result means anything. This is the workflow that came out of that, and the tool I built to keep myself honest.
2026-09-28
The AI writes the code now
My first months with Claude Code were fast and hard to audit. The agent dove into implementation and built what I asked. Sometimes what I asked was the wrong thing, and after a week of quick iterations I could not reconstruct why any change happened. So I made one rule: the agent writes a spec first, I review it, and only then does code exist. I call it a steering ticket: requirements, design, task list. Reviewing direction on paper is cheap. Reviewing it in code is not. Every change keeps its ticket, so months later I can read why, not just what.
Make the experiments comparable
Speed means nothing if the experiments do not mean anything. Every experiment copies the previous one with one variable changed, so a difference in results points at that variable. Every dataset gets a public and private split from day one, and I track the gap between cross-validation and holdout. When the two disagree, the split is broken, not the score. A results ledger records verdict, metrics and lineage per experiment, so did I already try this is a query, not an argument with my memory.
One model reviewing its own work agrees with itself too easily, so nothing important ships after only its author has seen it. When Claude writes a spec or a fix, I hand the same artifact to a different model family, Codex, with none of the conversation history and one instruction: find why this is wrong. Most passes come back clean. The rest are the cheapest bug reports I get.
Let it run
That workflow ran a Kaggle competition for four months without me opening the data. Thirty-plus submissions, top block. The same rules held at full throttle: tickets in, gates enforced, execution delegated, and when the loop drifted, the gates caught it. The rules started as things I applied by hand, and a rule I have to remember is a rule I forget. So they became kancil, a Python CLI I use across every project: it interviews me to fill the spec, blocks implementation until the ticket passes review, keeps the ledger, and runs the loop. This line is my hobby, and my work runs on the same methodology with different data.
What stays mine
The question. Which experiment matters, what would count as an answer, whether a result means anything. The AI drafts the spec, but the spec is wrong unless I know what I am trying to learn. That part does not get delegated.