Hacker

Pranav Tripathi

@prnv

Joined Oct 2026AI Engineer at Tractus LabsIndia

Elsewhere

Stack

  • TypeScript
  • Python
  • Go
  • Keystone

    Graph HacksOct 2026

    Keystone is a triage agent for open-source maintainers. It loads an org's public GitHub history into a FalkorDB graph, and when a new issue is opened it routes the issue, acts on it in a sandbox repo, and shows the graph path and Cypher behind every claim it makes. The problem: triage runs on memory. Who knows this code, who is already overloaded, and whether the team already decided this are spread across PRs, reviews and old threads. CODEOWNERS goes stale (FalkorDB's covers only /build/ and /.github/). Vector search finds similar text, but not who knows the code or why a choice was made. What happens when an issue is opened: 1. A signed GitHub webhook reaches the API. It checks the HMAC on the raw body, drops duplicates and bot events, and queues the job for one worker. 2. A hand-written agent loop (no agent framework) calls its own MCP graph tools. It finds affected modules (vector search, then issue -> fixing PRs -> files -> modules), ranks reviewers by authored and reviewed work divided by open review load, surfaces past decisions, and flags bus-factor risk. 3. Code checks every claim: each citation must be a key a tool returned as evidence, and claims without one are dropped. 4. The run is stored in the graph as an AgentRun. Keystone then labels, assigns and comments on the sandbox repo under its own bot account, and posts to Slack. Writes go only to the sandbox, enforced in code; the public apply route is always a dry run. 5. A maintainer replies "/keystone reject <login> <reason>". That writes Feedback and an avoid Rule into the graph, and the next ranking query zeroes that person, with no LLM involved. "/keystone why <login>" replies with the evidence path. Live triage takes 20 to 40 s end to end. The graph queries take milliseconds; the rest is the LLM writing the triage. Company brain: 210 decisions were extracted from PR threads and design docs, each kept only if its quote appears verbatim in the source. Ask answers questions over them with citations to graph keys. Proof, reported as measured: on 50 held-out closed issues, where each method sees only history from before the issue was opened: - Module hit@1: graph 0.54 vs CODEOWNERS 0.10 vs vector-only 0.56 - Module hit@3: 0.70 / 0.56 / 0.70 - Reviewer hit@3: 0.68 / 0.74 / 0.72 - Label precision@2: 0.34 / 0.32 / 0.43 The graph beats CODEOWNERS on modules (5.4x at hit@1), ties vector search on modules, and trails on reviewers and labels; we publish that too. What it adds over vector search is not raw accuracy but evidence: every answer carries its path and Cypher, feedback becomes rules that change the next ranking, and bus factor flags ownership risk. Try it in 10 seconds: the six read-only graph tools are served over MCP at https://35-244-53-175.sslip.io/mcp (no auth; public data; 30 calls a minute per IP). Stack: FalkorDB, FastAPI, fastmcp, local all-MiniLM-L6-v2 embeddings, Gemini with Groq fallback (at most 5 LLM calls per triage, enforced in code, plus a no-LLM fallback pipeline), Next.js on Vercel, Docker Compose and Caddy on a GCP VM. Built by two developers over four days (339 commits, 40 reviewed PRs). We used Claude Code and OpenCode as assistants; every change was directed, reviewed and merged by us.

    Serendipity@ishaan2053