Hacker
Aryan S
@aryans
Elsewhere
Projects
FlagFree — Evidence Before Action
Flagsmith Experimentation HackathonNov 2026
FlagFree is an approval-gated Flagsmith feature-flag retirement engine and reusable AI Agent Skill for Google Antigravity IDE. Feature flags often remain in application code after experiments and rollouts are complete. Removing them manually is risky: a flag may still be referenced, environments may have conflicting states, or an AI agent may incorrectly assume that a disabled flag is safe to archive. FlagFree solves this by guiding an AI coding agent through an evidence-first cleanup workflow. It inventories Flagsmith projects, features and environments using the official Flagsmith CLI, scans JavaScript and TypeScript repositories for feature-flag references, and conservatively classifies flags as KEEP, REVIEW, UNKNOWN or REMOVE. For eligible flags, it generates AST-based code transformation proposals using Recast and Babel. Changes require digest-bound human approval, are applied on a dedicated Git branch, independently verified, and prepared for GitHub pull-request review. After a human merges the PR, FlagFree requires a separate archival approval, rechecks project-wide environment coverage, archives the feature through the Flagsmith CLI, and verifies the result. Application developers and platform/DevEx teams can install the skill into their own repositories using the provided PowerShell or cross-platform Python installer. Its core principle is: evidence before action, approval before change, and verification before archival.
Brothers@arin_