Docs / A release routine for the agent era

A release routine for the agent era

You're the release gate, and that's the right call. These habits make it cheap and safe.

1. Merge on GitHub, then press Sync main

Review your agent’s PR and merge it on GitHub. Then press Sync main on the card. The branch and “behind” indicators tell you if you forgot.

2. Schema first, code second

For anything touching the database: run the migration dry run, push migrations, then merge or deploy the code that depends on them.

Better still, ask agents to write additive, backwards-compatible migrations:

  1. Add the new column.
  2. Backfill it.
  3. Switch the code over.
  4. Drop the old column in a later PR.

Then either order of operations is safe, and Vercel deploying the code before you push the migration doesn’t break production.

3. Let the Needs run pills drive the rest

After a merge, refresh. Any step whose files changed lights up. The others stay quiet, so you know what you can skip.

4. Heroku and Rails: let the release phase migrate

Add this to your Procfile:

release: bundle exec rails db:migrate

Migrations then run automatically on every push, and the two-phase “deploy the migration, run it, then deploy the rest” routine becomes one git push heroku main.

5. When you outgrow buttons

Because your steps live in mise.toml tasks, they drop straight into a GitHub Action, for example mise run db:push on push to main with secrets from GitHub. ReleaseKey still shows status either way. Read ReleaseKey and CI/CD.

Tell your agents the rules

Put the rules where your agents read them, like AGENTS.md or CLAUDE.md:

- Never merge PRs, deploy, or run migrations. A human releases.
- Write additive, backwards-compatible migrations.
- Keep release commands in mise.toml tasks and .releasekey.json.

Something unclear or out of date? Email hello@releasekey.dev.