5 minutes to help shape OpenTodo. Anonymous, no account. Take the survey

How OpenTodo is built: specs first, then AI agents

Every feature starts as a written specification. AI coding agents implement from it, a strict CI checks the result, and a person reviews every change before it's merged.

OpenTodo is a large app for one maintainer: a Go server, a web app that works offline, sync between devices, sharing, encryption, an API, a command line and more. People often ask how that’s possible. The short answer is a process with three parts: write it down first, let agents build from what’s written, and check everything.

Write it down first

Every feature starts as a change in OpenSpec, a small format for planning software. A change has four parts:

  • a proposal: why the change is needed and what it covers, including what it doesn’t
  • specs: the behaviour, as requirements with scenarios you can test, like “when two devices edit different fields of the same task, both edits survive” (the rule behind how sync works)
  • a design: how it will be built, and the alternatives that were rejected
  • tasks: small steps, each with the check that proves it’s done

Writing this before any code is the most useful habit in the project. It catches unclear ideas while they’re still cheap to change, and months later it explains why something works the way it does. All of it is public in the repository, under openspec/.

Let agents build from the spec

Much of the code is written by AI coding agents working from those specs. The spec matters more with an agent than with a person: an agent does what it’s told very literally, so the clearer the scenarios, the better the result. When an agent gets something wrong, the fix is often in the spec, not the code.

Check everything

Nothing reaches the main branch without passing CI: Go and web tests, spec validation, a phone-layout check in Chromium and WebKit, and accessibility checks. Then a person reviews the change. The website you’re reading works the same way: comparisons fail the build when their “checked on” date is too old, and every claim about what the app can do has to link to its documentation.

Why bother

The result is an app whose behaviour is written down. If you want to know exactly how sync resolves two edits to the same task, or how the architecture fits together, there’s a document for it, and it matches what the code does. For a project you’re trusting with your task list, that seemed worth the effort.

Raffaele Pizzari

Builds OpenTodo in the open: one container, your own server, every feature specified before it is built. More about Raffaele

  1. Why sync never asks which version you want

    Two devices change the same task while one of them is offline, and nobody is shown a merge dialog. Here is the rule that makes that work, what it costs, and where it is written down.

    Development
  2. Gentle mode: a calmer OpenTodo for ADHD brains

    I've been researching why task apps fail so many people with ADHD. Here's what I'd like to build into OpenTodo, and I'd love your feedback before I start.

    In development
  3. The road to 1.0

    Six releases between now and OpenTodo 1.0, what each one is for, and the promises that do not change on the way.

    In development

Follow along.

RSS feed

OpenTodo is free and always will be. If it helps you: star it, buy a coffee, sponsor or see how else to help.