How to release and maintain code that coding agents wrote

Day 6, 30 minutes · beginner

Goal of this lessonWrite a one-page release and upkeep note for your feature and a 30-day plan to bring these habits into your team.

Why it matters

Getting a change approved is not the end. It still has to go live without hurting anyone, and then it has to keep working for years, long after the chat that produced it is gone. With coding agents this part matters more, not less: there is more code, it arrives faster, and the person who asked for it may not have written a line of it.

Two habits carry most of the weight. Release in small steps that you can undo quickly. And keep what you learned in the project itself: the specs, the rules the agent follows, and a named owner for every part. Then the next change, by a person or an agent, starts from what the team already knows instead of from zero.

Today you write a one-page release and upkeep note for your feature, and a 30-day plan to bring the habits of this course into your own team. That is the last thing you make in this course.

Small releases you can undo

Three words for today:

  • A release is the moment a change reaches real users.
  • A rollback is going back to the last version that worked, quickly and without drama. Before every release, know how you would do it and who decides.
  • A feature switch (often called a feature flag) is a setting that turns a new feature on or off without a new release. You can release the code switched off, turn it on for a few people first, and turn it off again if something goes wrong.

Our suggestions for each slice: release it on its own, behind a switch if it is medium or high risk; say in advance what you will watch in the first days; and name who may decide to roll back. That person does not need to be a developer. Wren can decide to switch the swap board off; Okke does the rollback.

Keep the knowledge in the project

An agent starts each session knowing only what it is given. So put what it needs where it will find it:

  • Specs next to the code. Keep each spec, with its acceptance checks, in the project's code store (the repository), so a reviewer and the next agent can read why the code is the way it is.
  • A rules file for the agent. Some coding agents read a file of project rules at the start of every session. Claude Code, for example, reads a CLAUDE.md file in the project, and can read an AGENTS.md file instead if the project already has one for other agents (Claude Code overview). Other agents use their own file names; check your agent's docs.
  • Turn repeat mistakes into rules. When review catches the same mistake twice, write one line in the rules file, and add a test if you can. "Never show members' phone numbers or email addresses" is a rule Okke added after day 5.

Keep the rules short and specific. A rule nobody can check is a wish.

Who owns agent-written code

Every part of the product needs a named person who owns it: who answers when it breaks, decides on changes and keeps its spec current. Code an agent wrote is owned like any other code. "The agent wrote it" is never an answer to "who fixes this?" Agents are useful for upkeep too, such as small fixes, package updates and explaining old code, and those changes go through the same slices, checks and review.

The steps

  1. Plan the release of your feature, slice by slice: switch or not, what you watch, who decides to roll back and how.
  2. List what goes into the project: the spec, the test list and the first lines of a rules file, including one rule from your day 5 review.
  3. Name an owner and a backup for the feature.
  4. Write the 30-day plan. Pick your tool below and follow the steps; the prompt uses your files from the earlier days.
  5. Share the plan with one colleague and ask which week they think will be hardest.

A 30-day plan that fits on one page could look like this: week 1, map your flow and write one spec; week 2, slice it and write the test list; week 3, use the review checklist on every change; week 4, one small release behind a switch with a rollback plan; day 30, look back and keep what worked.

Wren and Okke, 30 days on

The swap board went live in five small releases, the claiming slice behind a switch for ten members first. The rules file has six lines. Two of the gaps on their day 1 map are closed: nothing goes live without a second person, and Wren is the backup owner when Okke is away.

Where to go next

This course is about the work around the code. To go hands-on with a coding agent, start with Claude Code 101, then Claude Code in action for longer runs you can trust. If you build with agents for clients, Ship AI at the client covers that work in the field.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in your tool

Claude

  1. Open your AI-native course project and start a new chat. Your files from days 1 to 5 should be in the project knowledge.
  2. Select Output in the message box, choose the Docs template, paste the prompt below and send it. Answer Claude's questions about names.
    Help me write two things from my course files (my who-does-what map, spec, slice plan with test list, and review checklist, attached or in this project).
    1. A one-page release and upkeep note for my feature. Headings: Releases (for each slice: switch or not, what we watch in the first days, who decides to roll back, how we roll back), What we keep in the project (spec, test list, first lines of a rules file for the coding agent, including one rule from my review), Owner and backup, Upkeep (which small jobs an agent may do, and that they get the same review).
    2. A 30-day plan to bring these habits into my team, one row per week: what we do, who, what we make, how we know it worked. Day 30: look back and keep what worked.
    A rollback means going back to the last version that worked. A feature switch turns a feature on or off without a new release.
    Ask me who the owner, backup and rollback decider are; do not invent names. Plain, short sentences. One page for each.
  3. Edit the doc directly. To change one part, highlight it, click Edit with Claude and type your request.
  4. Click Export and choose Word or PDF to share the 30-day plan with a colleague.

Note: Artifacts need Cloud code execution and file creation (called Create and edit files in the updated Settings layout) turned on in Settings > Capabilities; on Team and Enterprise plans an owner controls it. Docs also export to Markdown and Google Docs.

Checked on 4 December 2026 · Source: Claude Help Center: What are artifacts and how do I use them? (opens in a new tab)

Create a free account to save your progress. Sign in or sign up