Hacker

Lina Benchikh

@candychoc0

Joined Nov 2026student at ENSTTICAlgeria

Projects

  • Flag Hygiene

    Flagsmith Experimentation HackathonNov 2026

    I built flag-hygiene, an open-source CLI and GitHub Action that finds "flag debt" in projects running self-hosted Flagsmith. Feature flags are meant to be temporary, but in practice they pile up. Some are ON in every environment, so the old code path is dead code nobody dares to delete. Some are still configured in Flagsmith but no code uses them anymore. Worst of all, some are used in code but were never created (or are mistyped) in Flagsmith: there is no error, the SDK silently returns OFF, and the feature never ships. Flagsmith's built-in Stale Flag Detection is part of the Scale-Up and Enterprise plans, and it only tags flags in the dashboard. flag-hygiene brings these checks to anyone who runs open-source Flagsmith themselves. It reads both your code and your Flagsmith project, so it also catches flags that are missing or unused in code, and it can block a pull request before flag debt reaches production. It's for teams that self-host Flagsmith: developers cleaning up old flags, tech leads who want a "flag health" check in code review, and platform/DevOps engineers who want to enforce it in CI. How it works: 1. A scanner walks the repository and finds Flagsmith SDK calls with a literal flag name (is_feature_enabled, get_feature_value, hasFeature, getValue, useFlags and their Java/.NET/Go/Ruby/PHP equivalents) across 20 file types, recording file and line. 2. A small read-only client calls the self-hosted Flagsmith Admin API with an Organisation API key: every flag in the project, its on/off state in each environment, when it last changed, and its tags. 3. An analyzer compares the two and reports: missing (error), fully rolled out and unused (warnings), never turned on and stale (info). Flags tagged "permanent", like kill switches, are skipped. A 0–100 health score summarises the project. 4. The report comes out as text, Markdown or JSON, with exit codes for CI (0 clean, 1 problems found, 2 configuration error). 5. The GitHub Action posts the Markdown report as a pull-request comment, updates it in place on every push, and fails the check when problems reach the chosen threshold. It has zero dependencies (Python standard library only). One command, ./demo.sh, starts Flagsmith with Docker Compose, creates demo data through the REST API, and runs the scan on a sample app.