HARSH KAWATRA

DOSSIER 03

The archaeologist that cites its sources

Paste any public GitHub repository and receive grounded Architecture Decision Records, a codebase you can question in plain English, and an onboarding document — in about sixty seconds.

TypeScript · React · Gemini 2.5 Flash · Vercel Serverless · SSE


The setup

Codebases are full of decisions whose reasoning has evaporated. The person who chose PostgreSQL left; the discussion thread is gone; new engineers spend weeks rediscovering context.

Architecture Decision Records are the known best practice — and almost nobody writes them, because the payoff is delayed and the writing is tedious. ArchDecision recovers them from the one source of truth that never leaves: the code.

Grounded or silent.

The machine

Public GitHub repoREST API, one tree callSignal-file selectionmanifests · CI · entry pointsDependency parsingstructured, not raw textRepoProfiletoken-budgeted compressionGemini 2.5 FlashJSON mode · schema validation · 1 repair retryADRsevidence + confidenceGrounded Q&Afile citationsOnboarding doccommittable markdown
PLATE 03 — The grounding layer. A token-budgeted repo profile — file tree, parsed dependency manifests, selected signal files — is the only input the model ever sees. Structured output is schema-validated with one repair retry.

The hard parts

On the record

The engineering bet is the grounding layer. Rather than feeding the model raw repository text, ingestion assembles a compact RepoProfile: the full file tree, dependency manifests parsed into structure, and a token-budgeted selection of signal files — Dockerfiles, CI configs, entry points 1. The profile is the only thing the model reads.

The generation contract does the rest. Output is JSON-mode with schema validation and one automated repair retry 2. Every generated claim must cite concrete evidence — a dependency, a file, a config — and every record carries a calibrated high, medium or low confidence label. Anything inferred is labelled inferred. The design principle is stated in the product itself: grounded or silent.

The result is auditable rather than authoritative: a draft a human confirms, which is how ADRs should be written anyway. It was built for the Microsoft Build AI Hackathon 2026 and remains deployed; paste a repository like pallets/flask and read what comes back 3.

The numbers

MeasureValueSource
Time to artifacts~60 seconds per repolive deployment
Groundingprofile-only input, never raw repoapi/_lib/profile
Calibrationhigh / medium / low on every ADRgeneration schema
Cost of entryno login, no setup, no databaseserverless + GitHub REST

Errata & Failures

Inference is not history

ADRs recovered from code are hypotheses about intent, not records of it. The confidence labels and the inferred marker exist precisely because the system cannot know what a vanished Slack thread said. Treating the output as a draft is a feature, stated in the interface.

■ References

Live ↗

Repository ↗