Incident response

AWS teaches its DevOps Agent to flip feature flags during incidents

AWS teaches its DevOps Agent to flip feature flags during incidents

Three in the morning. The pager fires. You already suspect which feature flag is to blame — but it lives in a different tool, owned by a different team, configured from a Slack channel you forgot to ask to be added to. So the first ten minutes of the incident are a scavenger hunt across consoles instead of a fix.

The AWS DevOps Blog published a pattern on June 19, 2026 that aims to skip that hunt: AWS DevOps Agent reaching LaunchDarkly through the agent's MCP server, so the same loop that diagnoses an alert can also touch the flag that quiets it. Useful? Probably. Free of new risk? Of course not.

What the post actually announces

The integration uses the AWS DevOps Agent's MCP server to talk to LaunchDarkly. Translation for anyone who hasn't memorised every acronym in the agent stack: the Model Context Protocol is the standardised way a tool exposes itself to an LLM-driven agent. Wrap a flag service behind an MCP endpoint and the agent can ask it the questions it would otherwise hand to a human — which flags exist, which are tied to the failing surface, which one was changed shortly before the page — and, in principle, toggle them.

That's the whole shape. The agent is the diagnostic loop; the MCP server is the seam through which feature flags become first-class objects in that loop instead of artefacts a tired engineer chases in a separate tab.

Why this hits a real CI/CD pain

AWS frames the problem bluntly. Organisations, the post says, "connect the two manually" — engineers identify which flags are relevant, decide whether to disable them, and coordinate the change across teams during outages. The stated motivation: that manual coordination "adds latency at the moment it matters most".

For anyone shipping progressive delivery, that sentence lands. Feature flags became the kill switch of choice precisely because they were faster than a rollback. The catch was always organisational. The flag service is rarely owned by the team holding the pager, the cohort lives in a console somewhere, and "which flag belongs to this outage?" is the first question of every postmortem.

Collapse that hunt into a single agent call and you have moved a recurring three-team huddle into a tool invocation. Whether that counts as progress depends entirely on the next question.

Where the trust boundary moves

So — who decides which flags an autonomous agent is allowed to flip without a human approval?

Answer it conservatively (every toggle goes through a Slack approval; the agent only proposes) and the latency benefit shrinks back toward zero. Answer it permissively (the agent flips eligible flags directly inside guardrails) and you have just promoted a feature-flag service from a console tool to a control-plane actor. Mention that casually in your next compliance review.

The honest middle lives in policy: a per-flag tag for "agent may disable", a per-environment cap on how many flags can flip in a window, and a write-audit log good enough that someone in week two of a regression can reconstruct who — or what — set the cohort to 0%.

Per-flag scopes. Replayable decisions. Signed audit trail. None of that ships in a blog post. All of that is on you.

How other shops handle the same problem

The agent-driven hand-off is one pattern. There are others, and at least one of them is a better fit if your constraints look different.

  • LaunchDarkly called directly from a runbook tool like Rundeck, or from a pipeline step wired to a deploy gate, is the boring well-trodden path. No agent, no MCP, just an authenticated API call. If you do not want an LLM near your kill switch, this remains the right answer, and boring is undervalued at 3am.
  • Unleash, the open-source flag service, is the right call when the constraint is "the flag system has to be self-hosted, on our network, behind our IAM". MCP wrapping is something you build; the trade-off is the maintenance burden in exchange for control over the trust boundary.
  • Statsig leans further toward stats-driven automation — promoting or demoting flags from guardrail metrics. If the goal is to remove humans from rollback decisions on a success metric rather than from incident calls, that is a closer fit than putting an agent in the loop at all.
  • Flagsmith sits in the same niche as Unleash for teams that need self-hosting alongside a managed option. The decision usually comes down to which API your existing tooling already speaks.
  • Buddy can sit on the pipeline side: a Buddy action triggers the flag vendor's API on a deploy gate, a manual button, or a webhook from your alerting tool. The concrete reason to reach for it is that the toggle becomes a step in the same pipeline that produced the suspect artefact, so the rollback record and the deploy record end up as one audit trail. It is not the right call if you wanted the diagnosis itself driven by an agent; for that, the AWS pattern in the post is closer to what you described.

A minimal Buddy pipeline step against a generic flag-service API looks like:

- action: "Kill bad-cohort flag"
  type: HTTP
  url: "$FLAG_SERVICE_URL/api/v2/flags/$PROJECT/$FLAG_KEY"
  method: PATCH
  headers:
    Authorization: "$FLAG_API_TOKEN"
  body: |
    [{"op":"replace","path":"/environments/prod/on","value":false}]

Placeholders only. Wire your own project key, flag key, and a token your secret store hands out at runtime — not a string committed to the repository.

The verdict

The integration removes a real, recurring, painful coordination step. It also relocates a trust decision that used to be implicit in human latency into something explicit you now have to write down. Both things are true at once.

Agent in the loop, flag in the agent's hand. Sign the audit log first.

Source: AWS DevOps Blog (aws.amazon.com)

Related
Incident response

AWS pushes its DevOps Agent's diagnostic reach down to the EKS node via a custom MCP server

AWS has published a pattern for extending its autonomous DevOps Agent into EKS node OS and runtime data through a custom Model Context Protocol server, addressing incidents that live outside the agent's native cluster-control-plane visibility. The post is explicit that the implementation is a proof of concept, not a production replacement for monitoring or log shipping.

June 17, 2026
Deployment strategies

Feature flags vs canary deploys: teams are using both, deliberately

The progressive-delivery debate has matured. The emerging consensus isn't 'pick one' — it's flags for behaviour, canaries for infrastructure, with clear ownership for each.

June 10, 2026
Security & supply chain

Enterprise MCP adoption keeps outrunning its authorization layer

The Model Context Protocol has become the default way enterprises wire AI agents to internal tools, but the authorization layer between agent, protocol and downstream resource is still the part most platform teams are stitching together by hand.

June 19, 2026

Turn this into your pipeline. Build it on Buddy.

Start free