How We Turned Feature Flag Cleanup Into a Mostly‑Hands‑Off AI Workflow

This post details the implementation of an AI-driven workflow for feature flag cleanup. It describes the creation of repo-tailored AI commands using Rovo Dev CLI and Jira Automation, enabling automated PR generation for cleanup tasks. The process involves specializing AI prompts to understand the specific feature flag framework, code paths, and testing conventions of the repository. A self-improvement loop using Rovo Dev's 'improve-command.md' prompt is described to enhance the AI's effectiveness, raising the success rate of cleanup PRs to 8 out of 9 requiring no manual intervention. A Jira-driven queue mechanism is introduced to manage the execution of cleanup tasks, preventing merge conflicts and ensuring a consistent flow of work. The outcome is a highly automated, hands-off workflow that significantly improves code hygiene and developer productivity.
More from the AI-Native Software Development Capabilities in Jira trail
- A simpler way to run AI agents in Bitbucket Pipelines
- We’re bringing governed agent loops to the AI-Native SDLC
- How we made vulnerability fixes review-ready with Agentic Pipelines
- Agentic automation in practice: putting standard engineering work on autopilot
- Opening the door to agent autonomy: The architecture behind Rovo’s agent harness