Hacker

Nikhil R

@nikhilr0

Joined Nov 2026Student at Bangalore Institute Of TechnologyIndia

Projects

  • FlagGrad

    Flagsmith Experimentation HackathonNov 2026

    As AI agents take on more of the experimentation loop — running A/B tests, adjusting rollouts, iterating on variants — the cleanup step becomes the most dangerous part of the pipeline. A human reviewing one stale flag is manageable. At hundreds of concurrent agent-led experiments, manual graduation breaks: SRM failures go unnoticed, staging and production drift apart, variation keys get conflated with their served values, and tests break silently after the code change. FlagGrad is a deterministic experiment graduation engine for Flagsmith — the safety infrastructure between experiment finished and flag gone. It reads Flagsmith's live statistics (SRM p-value, Bayesian lift, is_final, per-environment state), generates a signed, time-bounded migration plan, applies TypeScript/JavaScript AST codemods atomically with automatic file restore if tests fail, and archives the flag only after deployment is confirmed. It never guesses winners, never writes LLM-generated code, and never archives without a human checkpoint — making it safe to run at agent scale. Who: Engineering teams adopting agent-led experimentation — where AI agents design, run, and iterate on A/B tests at a velocity no manual review process can match. FlagGrad is the graduation infrastructure that lets that pipeline scale safely. How: A CLI (flaggrad) wraps the official flagsmith CLI v2.0.0 as its sole Flagsmith process gateway. An agent (or a developer) runs: doctor → experiment inspect → snapshot (captures SRM evidence before Flagsmith resets it post-completion) → candidates → graduate --dry-run → graduate --out plan.json → plan apply --verify "npm test" → archive --confirm-deployed. Every step outputs compact --json sized for agent token budgets. The two hard human checkpoints — before code is modified and before the flag is archived — exist precisely because graduation affects production.

  • Open Source Contributions

    Flip the Switch HackathonNov 2026

    Switch's Factory Droid integration (PR #1669) brings Factory Droid into the existing Switch ecosystem through the Agent Client Protocol (ACP), allowing developers to use it alongside other supported agents through a unified interface. PR #1473 : When someone edits a message that is still queued for an agent (waiting behind an in-progress turn), the edit was historically ignored because bridge adapters dropped platform edit events. Consequently, the agent would start and execute using the stale, uncorrected prompt, wasting a turn, model tokens, and confusing users who had corrected typos, clarifications, or workflow parameters. This is solved in this PR.