Hacker
Mathew Alexander
@mathew
Projects
flagtop: a terminal dashboard for Flagsmith, for devs and AI agents
Flagsmith Experimentation HackathonNov 2026
**What did you build, and what problem does it solve?** I built flagtop, a terminal dashboard and CLI for self-hosted Flagsmith. Teams that use feature flags gradually lose track of them: - Staging and Production stop matching, and nobody knows why. - Old flags stay in the code for months, because removing one by hand takes about an hour. - Nobody can easily say what changed recently. flagtop answers each of these on one screen: - **Diff** shows only what differs between environments. - **Stale** scores each flag by how safe it is to delete, and shows where the code uses it. - **Changes** lists recent flag changes with one-key undo. - **Experiments** shows Flagsmith's results and names a winner only at 95 %. The highlight is `R`: on a dead flag, Claude deletes it from the code and keeps the right branch. flagtop shows the git diff, then asks before it archives the flag in Flagsmith. The whole cleanup takes about 20 seconds. **Who would use it, and how does it work?** Developers and on-call engineers use the dashboard in the terminal. AI coding assistants (Claude Code, Codex) and scripts use the same commands with short JSON output. A bundled skill teaches the assistant to always do a dry run first and to ask before it changes Production. flagtop reads and changes flags, environments and experiments through Flagsmith's Admin API. Every change shows "before → after" and waits for confirmation. For the code features, flagtop scans your code folder for flag names, and `R` runs the Claude Code installed on your machine. To try it, install it with one line, or run the Docker quickstart. The quickstart starts self-hosted Flagsmith with demo flags and a sample shop, so you can flip a flag and watch the shop change live.