Atlas
Plain EnglishExplainer

Feature Flags Explained: Ship AI-Built Features Safely

A feature flag is an off switch for new software. Learn how flags make AI-built releases safer, what to ask your team, and the clean-up trap to avoid.

A loop: ship the feature switched off, turn it on for a few people, watch, then widen or switch it off.

The short version

  • A feature flag is a switch in the software that turns one feature on or off without changing the code.
  • Flags let a team ship a feature switched off, show it to a few people first, and turn it off without a full rollback if it misbehaves.
  • A flag is not a rollback: it only helps if the risky code is fully behind the switch and the old behaviour has been tested. It cannot undo changes to stored data.
  • Every release flag should have an owner and a removal date, because flags carry an ongoing cost and pile up if nobody removes them.
  • Atlas does not offer feature flags as a built-in step today; its release safety rests on a marked way back, a proven backup and your approval.
On this page
  1. The short version
  2. What is a feature flag?
  3. Why do flags matter more with AI-built software?
  4. What kinds of flags are there?
  5. How does a gradual rollout work?
  6. Is a feature flag the same as a rollback?
  7. What is the catch? Flag clutter
  8. What should you ask your team?
  9. What does Atlas do about this today?
  10. Conclusion
  11. Questions people ask

A feature flag is a switch inside your software that turns one feature on or off without changing the code. If you use an AI coding team, flags are one of the simplest ways to make a risky release smaller: the feature goes out switched off, you turn it on for a few people, and you turn it off again if something breaks.

This guide explains what flags are, when they help, what they do not fix, and what to ask your team before you rely on one.

What is a feature flag?

Think of the light switches in a new office. The wiring is done and the lights are installed, but nobody has to turn them on the day the builders leave. A feature flag works the same way. The new feature's code is already in the product, but a switch decides who sees it.

Engineers also call these "feature toggles". Martin Fowler's long article on feature toggles describes them as a technique that lets teams modify a system's behaviour without changing code. The words "flag" and "toggle" mean the same thing.

The key idea is the gap between two events that people often treat as one:

  • Deploying means the new code is put on the live servers.
  • Releasing means real users can see and use the new behaviour.

Without flags, those usually happen at the same moment. With flags, you can deploy on Tuesday and release on Thursday, or release to ten customers first. LaunchDarkly, a company that sells flag tools, says in its explainer on kill switches that using a flag this way lets you separate deployments from releases.

Why do flags matter more with AI-built software?

An AI team can produce a lot of change quickly. That is the point of using one. But more change per week means more chances that something reaches customers before anyone has seen it in real conditions.

Tests and reviews catch many problems. They do not catch all of them. A feature can pass every check and still confuse real users, or behave badly with real data that your test data never had. A flag gives you a second line of defence that works after release.

It also helps you as a non-coder. You may not be able to judge a code change, but you can judge a switch: who can see this, and who can turn it off?

What kinds of flags are there?

Fowler groups flags by purpose. Four are worth knowing:

  1. Release flags hide unfinished or untested work. They should not stay around much longer than a week or two.
  2. Experiment flags show different versions to different groups of users, so you can compare which works better. This is what people call A/B testing.
  3. Ops flags (short for operations) let the team switch off or reduce a feature that is not vital when the system is under heavy load. Some of these, called kill switches, are kept for a long time. A kill switch is a button that turns one specific feature off when needed.
  4. Permission flags give features to certain users only, such as paying customers or beta testers. These can live for years.

For a founder, the two to ask about first are the release flag and the kill switch. One keeps unfinished work away from customers. The other is your emergency brake.

How does a gradual rollout work?

A flag does not have to be all or nothing. A common pattern is to open a feature to a small share of users, watch how it behaves, and widen it step by step.

In plain steps:

  1. The feature ships switched off.
  2. The team turns it on for itself, then for a few friendly customers.
  3. Someone watches for errors, slow pages and complaints.
  4. If it looks fine, the group grows. If not, the switch goes off.

This is slower than "release to everyone", and that is the trade. You give up some speed to make a mistake small and easy to reverse.

Is a feature flag the same as a rollback?

No, and mixing them up is a common misunderstanding.

A rollback puts the whole product back to an earlier version. A flag turns off one feature and leaves the rest of the release in place. LaunchDarkly notes that a flagged feature can be turned off and later turned back on without a full rollback.

Flags are lighter, but they only work if three things are true:

  • The risky code is fully behind the switch. If the new feature also changed something shared, such as how orders are saved, switching it off may not undo that.
  • The old behaviour still works. When the flag is off, the product falls back to what it did before. That old path must be tested, not assumed. Fowler points out that you cannot know whether a flag will end up on or off in production, so both states need testing.
  • Someone is watching. A kill switch nobody looks at is only a switch. Monitoring and alerts should be tied to the new feature.

There is one more limit. A flag cannot undo changes to your data. If a new feature rewrites or deletes records, turning it off does not bring them back. That is a job for backups taken before the release.

What is the catch? Flag clutter

Every flag adds a fork in the software: one path when it is on, another when it is off. Fowler says flags come with a carrying cost and treats them as inventory that should be kept low. They multiply, they spread through the code, and each one adds testing work.

An AI agent will add flags when asked, and it will not necessarily remember to remove them unless the brief says so. Fowler describes several ways teams keep flags under control, and they translate well into a brief for your team:

  • Add a task to remove each release flag at the moment you create it.
  • Give each flag an expiry date.
  • Cap the number of active flags, so a new one means retiring an old one.

LaunchDarkly makes the related point that some flags are meant to be permanent and some temporary. Your job is to know which is which.

What should you ask your team?

You do not need to understand the code to ask good questions. Put these in your brief:

  • Which parts of this release are behind a flag, and which are not?
  • Who can turn each flag off, and how long does that take?
  • What happens to users when it is off? Has that been tested?
  • Does this feature change stored data? If so, what happens to that data if we switch it off?
  • Who owns each flag, and on what date will it be removed?
  • What are we watching in the first day, and who is looking?

If the answer to the first question is "nothing", that is fine for small, low-risk changes. For anything touching payments, sign-in, customer data or pricing, it is worth asking for a switch.

What does Atlas do about this today?

Atlas does not have feature flags as a built-in step. What it does today is protect the release as a whole. Releases beyond the Mac follow eight steps: marking the way back, backing up the data and proving the backup by restoring it, rehearsing database changes on that copy, releasing, and then checking. Every production release needs your Approve.

Feature flags are coming to Atlas, built in, so they will need no setup on your side. Until then, you can ask PA, your project assistant, in plain words to put a risky feature behind a switch, and name its owner and removal date in the brief. Atlas's own gates, tests and reviews still apply to that work as usual. You can read more on the Atlas home page.

Conclusion

A feature flag is a cheap way to make an AI-built release smaller and easier to reverse. It is not magic: it covers one feature, not your data, and it adds clutter if nobody cleans up.

For your next risky feature, ask three things: is it behind a switch, who can flip it, and when will the switch be removed? Those three questions will put you ahead of many teams.

Questions people ask

What is a feature flag in simple terms?

It is a switch inside the software that turns a feature on or off without changing the code. The feature is already in the product, and the switch decides who can see it.

Is a feature flag the same as a rollback?

No. A rollback puts the whole product back to an earlier version, while a flag turns off one feature and leaves the rest of the release in place. A flag also cannot undo changes already made to stored data.

What is a kill switch in software?

A kill switch is a button that turns one specific feature off when needed, so the team can disable it without a full rollback. Fowler notes that these are often long-lived, because their job is to be there when something goes wrong.

Do AI-built apps need feature flags?

Not always. Small, low-risk changes may not need one. For work touching payments, sign-in, customer data or pricing, asking for a switch, an owner and a removal date is a sensible precaution.

Does Atlas offer feature flags?

Not as a built-in step today. Atlas protects releases with a marked way back, a proven backup, rehearsed database changes and your approval. Flags are coming to Atlas, built in, and until then you can ask PA to include one in the brief.

Sources

  1. Feature Toggles (Martin Fowler)
  2. What is a kill switch in software development? (LaunchDarkly)

Researched and drafted with Claude, then checked against the sources above. Atlas is an independent product, not affiliated with Anthropic or OpenAI. Claude and Claude Code are trademarks of Anthropic; Codex is a product of OpenAI.