Weekly: asks e-volv Launch which feature flags this project has finished with — past their removal date and serving one variant in every environment — then removes each one from the code and opens a pull request per flag, held at an approval gate. Nothing merges unattended, and a flag whose call sites it cannot find becomes a ticket instead of a guess. Set your repository on the Clone step and your Launch API key on the Fetch step after importing.
- Identifier
flag-debt-sweep- Version
- 1.0.0
- Steps
- 5
- Triggers
- 1
- feature-flags
- launch
- cleanup
- scheduled
- technical-debt
When it runs
schedule.weekly- Schedule
- Every Monday at 09:00 UTC
0 9 * * 1 - Timezone
- UTC
The pipeline
The graph below is the one the workflow opens with in the builder — same steps, same layout, drawn on the same canvas. The run playing through it is a simulation; the branches and conditions are real.
- 01Weekly Schedule (Mon 09:00 UTC)
triggerThe event that starts the run.
- 02Fetch Flag Debt ⚠️ SET YOUR LAUNCH KEY
http.requestCalls an external HTTP endpoint with vault-resolvable headers.
- 03Clone Repository ⚠️ SET YOUR REPO
git.cloneShallow-clones the repository at the right ref.
- 04Remove Finished Flags
agent.runOne agent works the task with its toolkit.
- 05Human Review Before Merge
approval.gatePauses the run until a human decides.
The agent
Flag Debt Sweeper
- Base type
- Senior Developer
- Temperature
- 0.1
- Max iterations
- 60
- Tools
- 11
Git provider · 4
create_branchCreate Branch · writecreate_or_update_fileCreate or Update File · writecreate_pull_requestCreate Pull Request · writecreate_issue_commentCreate Issue Comment · write
Filesystem · 3
read_fileRead File · readedit_fileEdit File · writelist_dirList Directory · read
Code search · 1
code_searchCode Search · read
Terminal · 1
run_terminal_cmdRun Terminal Command · write
Tickets · 1
create_ticketCreate Ticket · write
Status · 1
update_statusUpdate Status · write
Related playbooks
API Deprecation Sweep
Monthly scan of deprecated endpoints, fields, and headers that files removal tickets for anything past its sunset date.
Stale PR Reaper
Daily sweep that nudges pull requests that have gone quiet before they rot.
Accessibility Audit
Reviews UI PRs for accessibility defects, posts inline threads citing WCAG criteria, and submits a summary review.