Skip to main content

What's new

1904 now keeps your app's agent instructions short, once a day

The 1904 notifications panel with two notices. Agent instructions optimized: Recipe Box: 6 detailed or task-specific entries moved to linked documentation. 2 references or size issues need review; uncertain rules were preserved. Agent instructions migrated: Harbor CRM: guidance from 1 CLAUDE.md file(s) is now in AGENTS.md. Originals are preserved as CLAUDE.md.old.

Every agent that finishes a task wants to leave a note for the next one, and most of them leave it in AGENTS.md. A month later the file holds test results from finished work, long descriptions of code that has changed since, and a path that moved in the spring. Every agent reads all of it, every turn, and follows the stale parts as faithfully as the rest. Once a day, 1904 now tidies that file for each of your running apps.

What moves, and what stays

Notes that read like the result of one task, such as test results or a line saying tests passed, move out of AGENTS.md. So do long entries under headings like Where things live, Architecture or Design. They move word for word into files under docs/agents/instruction-details/ in your repository, and a moved entry about a part of the code leaves a short line behind pointing to its details, so an agent working there still finds them. The rules stay where they are. Code blocks, multi-line entries and other sections are left alone, and so is any note that says never, must or do not. If the file has no line asking agents not to repeat what the code already says, the pass adds one.

References that no longer exist

The pass checks AGENTS.md against the code you have deployed. A file path that isn't there any more, or an npm run script that isn't in package.json, is flagged, along with a file that's still over 16 KB once the notes are out. Flagged lines are never deleted, because a person should decide whether the rule or the code is wrong.

One instructions file for every agent

When your repository has a CLAUDE.md, the pass folds its guidance into the AGENTS.md beside it, under a heading saying it came from CLAUDE.md, keeps the original as CLAUDE.md.old, and only then removes CLAUDE.md. If a CLAUDE.md.old with different contents is already there, it stops and tells you instead. If you also run Claude Code on the repository outside 1904, it's worth knowing that its guidance now lives in AGENTS.md.

Where the changes go, and how you hear about them

The pass commits straight to your app's default branch, with the message Optimize agent instructions, and it can only write AGENTS.md, CLAUDE.md, CLAUDE.md.old and the files under docs/agents/instruction-details/. It runs for every app that's running with a deployed version, uses no AI model, so it costs none of your plan, and skips a day when neither the file nor your deployed code has changed. If someone edits AGENTS.md while it runs, their edit is kept and the pass stops. The app's creator gets a notification, Agent instructions optimized or Agent instructions need review, saying how many entries moved and how many things need a look, with a link to the file. There's no setting to turn the pass off. In Settings, Notifications, A coding task finished a step silences the notices along with your other task alerts.

← 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.