Hacker

Abhinav Yadav

@yadui

Joined Nov 2026Cloud & AI Architect at Foetron Consultancy Services Pvt. Ltd.India

Elsewhere

Projects

  • deadflag: Flagsmith finds dead flags, deadflag removes them

    Flagsmith Experimentation HackathonNov 2026

    Most flag-cleanup tools stop at stale flags. deadflag also finishes experiments: when a human completes a Flagsmith experiment and picks the winner, deadflag ships that variant in code, deletes the losing ones and retires the flag, with a human approving every change. It also catches "ghost" flags the code calls but Flagsmith doesn't have, and when its codemod can't prove a rewrite safe, an LLM may propose one that deadflag re-checks before the typecheck and your approval. Judges can try it in 30 seconds with no Flagsmith account: `deadflag triage --demo examples/demo-flags.json --repo demo-app`. deadflag is a CLI agent for teams using Flagsmith. It reads every flag's state in every environment, its tags, overrides, last-change date and any Experimentation results from the Flagsmith API, scans the code for every SDK call, and sorts each flag into SHIP WINNER, SHIP & REMOVE, REMOVE DEAD CODE, GHOST (called in code but missing in Flagsmith), ORPHAN (in Flagsmith but unused) or KEEP (kill switches, rollouts in progress, running experiments). For each removable flag it shows a diff, and on approval rewrites the code, runs the project's typecheck and opens a PR with the Flagsmith evidence. After merge, `retire` archives the flag in Flagsmith. When the deterministic codemod can't prove a rewrite safe, `--ai` lets an LLM (gpt-6.2-sol on Microsoft Foundry) propose one, which deadflag re-checks before the same typecheck and human approval.