Add "Feature Flag Audit and Cleanup Agent" check#4
Open
continue[bot] wants to merge 1 commit into
Open
Conversation
Reviewer's GuideAdds a new Continue check configuration defining a "Feature Flag Audit and Cleanup Agent" that audits PostHog feature flags, classifies them, and guides GitHub issue creation and reporting workflows. Sequence diagram for Feature Flag Audit and Cleanup Agent workflowsequenceDiagram
actor Agent
participant PostHog_MCP as PostHog_MCP
participant GitHub
Agent->>PostHog_MCP: mcp__posthog__feature-flag-get-all
Agent->>PostHog_MCP: mcp__posthog__feature-flag-get-definition
Agent->>PostHog_MCP: mcp__posthog__query-run
Agent->>PostHog_MCP: mcp__posthog__insights-get-all
Agent->>Agent: [classify flags by triage decision tree]
loop For each flag needing action
Agent->>GitHub: gh issue create
end
Flow diagram for feature flag triage decision treeflowchart TD
A[100% rollout for 90+ days?] -->|YES| B[Ready for Removal]
A -->|NO| C[Modified in last 120 days?]
C -->|NO| D[Rollout <50%?]
D -->|YES| E[Stale Experimental]
C -->|YES| F[5+ targeting rules?]
F -->|YES| G[Complex Targeting]
F -->|NO| H[Performance issues?]
H -->|YES| I[Performance Impact]
H -->|NO| J[No code refs?]
J -->|YES| K[Cleanup Required]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The priority labels used in the
gh issue createexample ([priority]) and theRequired GitHub Labelssection (high-priority,medium-priority) don’t align with the issue template’sHIGH/MEDIUMvalues—consider standardizing the priority naming and mapping across these sections. - The PostHog MCP tools table lists short names like
feature-flag-get-all, but the execution steps referencemcp__posthog__feature-flag-get-all; updating the table or steps so the tool identifiers are consistent with the actual MCP configuration will avoid confusion. - The GitHub issue template and audit summary include several placeholder tokens (e.g.,
[Category],[flag_name],[date])—it may help to briefly document which fields should be auto-populated by the agent versus filled in manually to ensure consistent usage.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The priority labels used in the `gh issue create` example (`[priority]`) and the `Required GitHub Labels` section (`high-priority`, `medium-priority`) don’t align with the issue template’s `HIGH/MEDIUM` values—consider standardizing the priority naming and mapping across these sections.
- The PostHog MCP tools table lists short names like `feature-flag-get-all`, but the execution steps reference `mcp__posthog__feature-flag-get-all`; updating the table or steps so the tool identifiers are consistent with the actual MCP configuration will avoid confusion.
- The GitHub issue template and audit summary include several placeholder tokens (e.g., `[Category]`, `[flag_name]`, `[date]`)—it may help to briefly document which fields should be auto-populated by the agent versus filled in manually to ensure consistent usage.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Feature Flag Audit and Cleanup Agent check to this repository.
This check will be synced from
.continue/checks/feature-flag-audit-and-cleanup-agent.mdand can be customized by editing the file directly.Opened via Continue Hub
Summary by Sourcery
Add a configurable Feature Flag Audit and Cleanup Agent check for PostHog feature flags, including criteria, workflows, and templates for auditing and cleanup.
New Features: