Hacker

Akul Gupta

@akul_gupta

Joined Nov 2026Student at IIIT-DELHIIndia

Projects

  • FlagJanitor

    Flagsmith Experimentation HackathonNov 2026

    FlagJanitor is a developer-controlled cleanup assistant for Flagsmith feature flags. THE PROBLEM Feature flags are cheap to add and risky to remove. Old flags pile up as dead branches and forgotten kill switches, but "disabled in production" might mean dead code or someone's incident fallback, and "no references found" might just mean a runtime-built key the scanner can't see. Most cleanup tools answer with a confidence score and a delete button. WHO IT'S FOR Developers who want to remove flag debt without breaking production, reviewers who need to see why a cleanup is proposed and what it changes, and platform teams who want flag hygiene without giving a tool write access to Flagsmith or to main. HOW IT WORKS 1. Read: Flagsmith state per environment (defaults, segment rules, identity overrides, prerequisites) plus a scan of the repository at a pinned commit. 2. Map: every direct reference (file, line, SDK call, whether it sits inside a condition), using a TypeScript-AST scanner that resolves the real Flagsmith SDK import. 3. Weigh: evidence is sorted into supporting, contradicting and MISSING, each with its source. Missing data is shown as Unknown, never as Low. 4. Decide conservatively: a deterministic policy sorts flags into likely active, potentially stale or inconclusive. A cleanup is only offered when nothing blocks it; otherwise the blockers are shown, citing evidence. 5. Propose: a syntax-checked diff bound to the exact base commit. 6. Hand over: the developer reviews each file, excludes what they want, approves explicitly and confirms the pull request. SIGNATURE FEATURES Safety Gate (proceed to review / withheld / needs investigation), Dependency Detective (interactive direct-reference map), Evidence Intelligence, "What could break?" Risk Preview, Cleanup Impact Report and Lifecycle Timeline. SAFETY FlagJanitor never deletes or archives flags, never edits the repository directly, never merges, and never labels a flag "safe to delete". A PR needs an approved proposal, a final confirmation and a backend recheck, and contains only the approved files. STACK Next.js 16, React 19, TypeScript (strict), Tailwind CSS 4. A Next.js server layer talks server-to-server to a Node backend (scanner, Flagsmith adapter, decision policy, grounded explanations, proposal generation). Tokens never reach the browser. HONEST STATUS The full workflow is tested in demo mode (9 browser suites, 650 checks) and end to end with the real backend on its offline fixture (46/46 checks). GitHub PR creation is tested against a fake GitHub API. Real GitHub, Flagsmith and AI-model calls have NOT been tested with live credentials; the adapters exist and have unit tests against fakes.

    Da Homiez@joonakshat