Projects

Three systems I run.

Two of them I built alone. The third I built with a friend. All three run on my own machine, none of them is a demo, and each one exists because a measurement I could not make at the time became the point of building it.

How I work with agents

Agents are contributors to my workflow, not the owners of it. They take implementation work; the structure, the acceptance criteria and the merge decision stay with me.

The loop is mine.

Decomposition, dispatch, review and the gates that decide whether a change can merge. Agents take bounded work; none of them decides that its own work is finished. The part I keep is the part that judges the result.

One responsibility per agent, and a shared service underneath.

Each agent gets a defined responsibility with typed inputs and outputs. What several of them need - parsing, retrieval, scoring - lives in one tested service instead of being reimplemented inside each agent. When two agents disagree, I want to read a diff in shared code, not reconcile two assumptions hidden in prompts.

Scaffold, template, then convention.

New work starts from a generator and a template, so the repository shape is not a decision every time. The point is to cut the number of structural choices an agent has to make, so my review is about behaviour instead of about where things belong.

Write the brief before dispatching.

A sub-task goes out with the goal, the files it may touch, the acceptance command, and what “done” looks like. A plausible diff in the wrong place is a failed task. Failed checks go back into the brief as concrete feedback; an ambiguous or repeatedly failing change I take over myself.

The gate is a command, not a summary.

Typecheck, build, tests, a browser pass, and a scan of the copy I am about to publish. The gates are code I write and keep - a check script, a headless console check, a scanner for claims I decided not to make - because an agent report is a claim until something independent runs and passes.

Records are what make it repeatable.

Decisions are written down before the code (a decision record per choice, including the ones I rejected), failed experiments stay on the list instead of being quietly deleted, a plan file is updated before the implementation changes, and every session ends with a handoff note so the next one starts from state rather than from memory.

What that looks like for one feature: three briefs - retrieval logic, API wiring, tests - each with its own file scope and its own acceptance command; one review pass against the shared contract; the gates; then I merge. When a check fails the failure goes back into the brief as a concrete line, not into a new chat message asking the agent to try harder.

This is a workflow I built and use on my own repositories, not a claim about running a team-scale agent platform. The part I would expect to transfer is the discipline - briefs, acceptance commands, decision records, and a human at the merge - rather than the tooling around it.

How these were built

Three decisions I would make again, and the ones I refused to make at all.

The graph stayed in Postgres.

A graph database is the first suggestion anyone makes. Every document already had rows in Postgres, the questions I needed were joins two hops deep, and a second store means a second consistency story. What decided it was the workload rather than the preference - and the RAG platform page describes the layer that came out of it.

The lock belongs at the document, not at the table.

Two writers on the same knowledge unit deadlocked for nine minutes. Moving the write behind an advisory lock scoped to the document index fixed it. The real cause was ordering, not retries: a schema migration was racing the app boot, and the failed lookups that followed were a symptom, not the fault.

Three things I refused to report.

A recall number without a labelled evaluation set. A routing accuracy presented as generalisation when it was only a fit on the development set. A score I had graded myself, presented alongside one I had not.

The last is the one I remember most. A blind evaluation does not guarantee truth, but it removes one important source of bias: knowing the system well enough to predict what the evaluation will reward.

I would rather report a smaller number that survives independent evaluation than a larger one that depends on how the test was designed.

The same test applies wherever the evaluator is also the builder: LLM output, agent trajectories, retrieval benchmarks, RAG answers, synthetic data. A labelled set comes before the metric, a development-set fit is not a generalisation claim, and a number produced blind is worth more than one produced in a run the author could tune against.