Hacker

Anshu Raj

@anshuraj.dev

Joined Nov 2026Full Stack Developer at Incoweb TechnologiesIndia

Projects

  • Tracebase: flag-aware incident debugging with Flagsmith

    Flagsmith Experimentation HackathonNov 2026

    Tracebase is a self-hosted debugging tool for small teams. For this hackathon I connected it to open source Flagsmith to answer one question during an incident: "did a feature flag break production, and is it safe to turn it off?" Problem: when errors spike and nothing was deployed, someone often flipped a flag. The flag history lives in Flagsmith and the errors live in the logs, and nobody connects the two while customers are failing. Turning off the wrong flag is a second risky change, and after a rollback nobody proves the errors actually stopped. How it works: • Self-hosted Flagsmith sends Tracebase a signed (HMAC-SHA256) webhook for every flag change, including segment overrides. • When a new error group appears, Tracebase's Log Detective ranks recent flag changes as suspects by timing, and checks the indexed code: is the failing line inside a check of that flag? It also names the commit that last changed the failing line. • An admin turns the flag off through Flagsmith's Admin API: one button in the web UI, `tracebase why E-40--rollback` in the terminal, or the rollback_flag MCP tool for AI agents. It always asks first, and members can' change flags. • Tracebase then watches the error for 5 minutes, marks it resolved if it stopped, and says so if it didn't ("the flag was not the cause"). Demo: MeetSnap, my real Firebase app, used by a simulated sales team. Turning on the lead_dedupe flag breaks saving leads that have no email address. Tracebase names the flag, the failing line and the commit, turns the flag off, and verifies 0 errors afterwards. While building it I found and fixed a Flagsmith bug upstream: a PATCH to a feature state without "environment" crashed with a 500 (issue #9144, PR #9145). Who it's for: teams that use feature flags and want incident answers without sending their logs or code to a third party.