Hacker
ASHISH PANDEY
@ashish.dev
Projects
Flagsmith CLI TUI tool
Flagsmith Experimentation HackathonNov 2026
I built fsm, a fast, single-binary terminal user interface (TUI) and CLI tool written in Rust for self-hosted and cloud Flagsmith instances. When developing with feature flags, engineers face two constant friction points: Context switching: Constantly leaving the terminal or code editor to open a browser dashboard just to inspect or flip a development flag breaks developer flow. Stale flag debt: Over time, feature flags get deleted or rolled out in Flagsmith while old flag checks remain scattered across the codebase, creating dead code and technical debt—something a web dashboard has no visibility into. fsm solves both problems by bringing real-time flag management and local repository scanning directly into the terminal. Who would use it, and how does it work? Who would use it: Software engineers and DevOps teams running self-hosted or cloud Flagsmith who prefer keyboard-driven, terminal-first workflows. CI/CD pipelines that want an automated check to prevent shipping code referencing non-existent or orphaned feature flags. How it works: Zero-Dependency Rust Binary: Built with ratatui, clap, ureq, and ignore, fsm compiles to a lightweight static executable with zero runtime dependencies. Interactive TUI & Scriptable CLI: After a one-time fsm init setup (pointing to any self-hosted localhost URL or Flagsmith Cloud endpoint with an Organisation API key), developers can launch the interactive TUI (fsm) to browse projects, switch environments (Development, Production, etc.), filter flags, and toggle states live via Flagsmith's REST API—or use non-interactive CLI commands (fsm list, fsm toggle) in shell scripts. Fast Local Codebase Scanner (fsm scan): Using a .gitignore-aware parallel file walker (ignore + regex matching), fsm scans local repositories in milliseconds, extracts every Flagsmith flag key referenced in source code, and cross-checks them against the live Flagsmith API to highlight orphaned or unused flags (and optionally fail CI builds with --strict).