OpenComputer × Unleash feature flag hygiene
Clone the complete agent, schedule, and fixture application from GitHub.
How it works
For each exact feature-flag reference found in executable code, the agent:- inspects the flag’s production state through the Unleash MCP server;
- checks whether it has been live for the configured minimum age;
- determines the behavior that should survive removal;
- finds an owner through
CODEOWNERSor recent file history; - runs the narrowest relevant tests;
- opens one focused pull request per eligible flag and requests the identified owner as a reviewer.
Select the capabilities
The agent function attaches the model and capabilities needed by the managed harness:Skip unsafe candidates
The agent refuses to open a pull request when a flag:- is younger than the minimum-age threshold;
- is not enabled in production;
- appears only in documentation;
- has ambiguous surviving behavior;
- has failing tests;
- has no evidence for an owner; or
- already has an open cleanup branch or pull request.

Run it on a schedule
The example includes a code-defined weekday schedule:mode selects unattended behavior. The transport provenance in
input.source remains available for observability, but it is not used as the
agent’s business-mode switch.