Skip to main content

What's new

What an agent finds when it opens an app 1904 built

Agent Instructions in a 1904 task: the repository's AGENTS.md on main, 7 lines long, holding two constraints, money stored in cents and customer data kept in the EU region, each with how often agents used it, above an empty App instructions section.

Open an app a few months after it was built, with Claude Code, Codex or a 1904 task, and the first thing the agent reads is whatever instructions sit at the root. If that file lists folders that have since moved and commands that were renamed, the agent believes it, and because agents follow these files closely, a stale line costs time on every task after. So the apps 1904 builds explain themselves through their code and one architecture document, and keep AGENTS.md for the few things the code can't say. When there's nothing like that, there's no AGENTS.md at all.

Where the next agent starts

Every app 1904 builds keeps ARCHITECTURE.md at the root of the repository, in three parts: the modules, how data moves between them, and a dated list of decisions with the reason for each. The decisions matter most later, because they're what stop an agent from tidying away something that was done on purpose. Design detail that belongs to one module, such as how retries work in a jobs module, goes in its own document beside that module instead of growing one long file, and the overview links to it when that helps.

One command that says whether it broke something

The app's package.json has a check script that runs the type check, lint and unit tests in one go, along with typecheck and test, and TypeScript runs in strict mode. Any agent, or you, can run the same command after a change and get an answer, whatever the task was.

What AGENTS.md is for

AGENTS.md holds only standing decisions, required tools and constraints that the code, its configuration, its scripts and its documentation don't already explain. There are no required headings, no map of folders, no list of commands and no notes left behind by each task, and the agents building your app leave the file as it is unless one of those requirements changes. A requirement you wrote into it yourself stays. The design conventions 1904's craft step settles go into the app's documentation as well. In a task, Agent Instructions shows the file with a meter of its lines, and the meter's tip says it plainly: 200 lines and 16 KiB are ceilings, not targets.

What a build checks

During a build, 1904 checks that ARCHITECTURE.md is there with something real in each part, that the check and test scripts exist, and that typing is strict. When one falls short, the work goes back with a sentence saying what to add. AGENTS.md only comes up when it grows past one of its ceilings, and then the request is to take out what the repository already says and move reference detail into the documentation, without cutting anything you asked for.

Apps built under the old rules

An app 1904 built earlier picks up these rules on its next build, so no agent is asked to fill the old AGENTS.md sections again. The first feature build on an app that has never had any of this writes ARCHITECTURE.md from the code as it stands and adds the scripts over the tools the app already uses. It doesn't reorganise modules that work, and it turns on strict typing only if the code already passes under it. Otherwise it writes the gap down under Decisions for a later task.

The same habit works on any repository: before you add a line to AGENTS.md, check whether the code or the README already says it.

← All posts

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.