Hacker

bishal202

@bishal202

Joined Aug 2026Full stack developerNepal
  • ModelSwitch Doctor

    Flagsmith Experimentation HackathonNov 2026

    Evidence-driven AI model migration and safe rollout, built on Flagsmith. Every team with an AI feature asks: can we switch to a cheaper model without losing users? Here Claude Haiku costs 97% less than Opus. ModelSwitch Doctor answers it with a non-inferiority test: the margin (e.g. "no more than 3 points worse") is fixed before the experiment starts, and the cheaper model ships only if the whole 95% confidence interval stays above it. How it works: a real AI product (a PR describer, live on Render, and a GitHub Action that writes PR descriptions) puts Opus vs Haiku behind a Flagsmith multivariate flag. Flagsmith Experiments tracks two metrics: whether the description is used (copied, or still there at merge) and what each one cost. The Doctor CLI reads any Flagsmith experiment and gives one of four verdicts from fixed rules, no AI deciding: SHIP_VARIANT, KEEP_CONTROL, NEED_MORE_DATA or BROKEN. It caught a real bug: 58% of exposures logged under the wrong variant key, which Flagsmith's own stats silently returned empty for. A Claude Code agent skill (Track 04, about 1,800 tokens) makes the whole decision through the Flagsmith CLI and rolls the winner out 10 → 50 → 100, with the rollback shown and a human typing the approval before every write. Who uses it: any team running an AI model or prompt migration on Flagsmith. It runs offline on a saved snapshot with no keys: npx github:BishalSunuwar202/modelswitch-doctor replay experiment.json --margin 3

  • Repo Brain

    Graph HacksOct 2026

    Every repository has files only one person understands. Repo Brain reads a repo's git history into a FalkorDB graph — who wrote which file, how much of it, and what changes together — and then prescribes the fix. Its headline command runs max-flow/min-cut over that graph to compute the minimal set of code-review assignments that reduces bus-factor risk, subject to an expertise floor and a per-reviewer budget. The min cut is a certificate: it proves no assignment within the same budgets covers more files, and it names whether the binding constraint is reviewer bandwidth (a scheduling problem) or nobody qualified (a hiring problem). On fastify/fastify, 32 files have a single owner holding over half the knowledge. For one module, Repo Brain prescribes 9 reviews across 5 people and projects 10 at-risk files down to 1 — and labels that number a projection, not a measurement, in the CLI, the JSON and the README. It is for engineering leads and staff engineers deciding where review effort actually buys down risk, and for agents: the same four commands are exposed over MCP, so an assistant can ask the graph instead of guessing. We also measured the part that is not novel. Reviewer recommendation was backtested on 30 held-out fastify PRs with history cut at the holdout: hit-rate@1/@3 of 13%/30% against a most-active baseline's 17%/43%. It loses to the trivial baseline, and we publish that rather than hide it.