🌐 US-Proxy
id="body-softwares" class="foundation-grid action-show controller-softwares engine-home">

Try it: https://ex-7569636f425d49daa35fdd8065c51b10.ecs.us-east-1.on.aws (no sign-up; any public GitHub repository)

Inspiration

Every developer has opened a file, found a line that looks wrong, and had no one to ask. The person who wrote it moved teams or left years ago. The reason usually still exists: it's in a commit message, a review thread, or the issue that started it. Nobody has time to dig through all of that. Exit Interview does the digging.

What it does

Pick any line in a public GitHub repository and ask why it exists.

  1. Trace. git log -L follows that one line through every commit that touched it. Commits that only reformatted, renamed or bumped it are skipped as noise, so the commit that actually wrote it surfaces.
  2. Gather. It reads the pull requests that contain those commits, their reviews and discussions, and every issue they reference, and numbers each source E1, E2, …
  3. Answer. The answer is built only from those sources. Every sentence carries a citation.
  4. Verify. A verifier removes any sentence without a valid citation, with a citation to a source that was never provided, or with a quote that doesn't appear word for word in its source. If nothing survives, it says plainly that the history doesn't explain the line.

Before you merge turns it around. Clean-ups are where old bugs come back: a line looks pointless, someone tidies it away, and the bug it fixed returns. Give Exit Interview a pull request, or just save a file in Kiro, and it traces every line the change removes or rewrites back to the commit that wrote it. It warns about the ones history says were written on purpose, with the issue they settled. It runs as a Kiro agent hook on save, as a view in the web app, as the check_change MCP tool, and as a GitHub Action that comments on each pull request. On expressjs/cors#35, a performance clean-up, it flags the rewritten lines that fixed issue #33 ("library no longer supports non-express applications") and the Vary header added in #30.

Still unsure? Under every answer you can ask one more thing about the same lines: the whole discussion, what the code looked like before, who reviewed it, what happened earlier, or your own question. Suggested follow-ups are answered straight from the history with no model. Every reply keeps the first answer's source numbers and goes through the same verifier, and if the history doesn't answer your question it says so instead of guessing. A conversation stops after five follow-ups.

Open straight from GitHub. Put the app's address in front of any github.com file, pull request or compare link, and it opens there with the line already selected.

It also shows knowledge at risk: files that only one person understands (bus factor 1) or that were written mostly by people who have left. You can then ask questions while someone can still answer them.

Example from expressjs/cors: line 12 sets optionsSuccessStatus: 204. Exit Interview reports that Troy Goode wrote it in August 2016 to settle issue #73 ("Preflight success statusCode should be configurable"). It also surfaces the pull request about preflight requests failing in Internet Explorer 11, and the comment that some Smart TVs expect a 200. Every point links back to GitHub.

Why Frankenstein

Six parts that were never meant to meet, stitched into one tool: git line history, the GitHub API, an optional language model, a citation verifier, a noise filter, and an MCP server that brings all of it into Kiro.

And it fits Kiroween: every codebase is haunted by developers who left. Exit Interview lets you interview them, using only what they actually wrote.

How I built it

  • Engine (packages/core): TypeScript. Runs git through execFile with timeouts and path guards. Parses git log -L with control-character separators so commit messages can't break parsing. Classifies noise commits, builds the evidence bundle with a cached GitHub client, and verifies citations.
  • Web (apps/web): Next.js. A landing page that tells the story of Sam, a new developer, next to real answers, and a three-pane explain app. Contributor emails never reach the browser.
  • Change check (packages/core/src/change.ts, diff.ts): reads removed lines from git diff -U0, groups them with git blame -w, traces each group at the base revision, and keeps the ones whose writing commit links an issue or explains itself. The diff parser is property-tested against real git diff output.
  • MCP server (packages/mcp) with seven tools: explain_line, follow_up, check_change, trace_line, files_at_risk, list_contributors, handover_note. It's packaged as a Kiro power with four skills: review a change, explain a line, knowledge at risk, and a cited handover note for someone who is leaving.
  • Kiro hook Before you delete it: on every save of a source file, Kiro calls check_change on the workspace and warns in chat only when the edit removes a line written on purpose.
  • GitHub Action: the same check as one sticky comment on each pull request.
  • Terminal: npm run why -- expressjs/cors lib/index.js 12, with --more and --ask for follow-ups.
  • Deployment (AWS): one container on Amazon ECS Express Mode (Fargate behind an HTTPS load balancer), built by AWS CodeBuild, stored in ECR with scan on push. The GitHub token is a no-permission fine-grained token in Systems Manager Parameter Store, readable only by the app's role.
  • Security: shared input validation, per-client rate limits and a cap on concurrent git work, a content security policy, clones that can't plant hooks or symlinks, secrets redacted from quoted code, and repository text escaped wherever Markdown is built. The app runs as an unprivileged user.
  • Media: films and renders generated with Google Flow.

How I used Kiro

I used the Kiro IDE. Kiro shaped the project in two ways: how I built it, and what the product became, because Exit Interview runs inside Kiro too.

Spec-driven development. Every feature started as a spec in .kiro/specs/ before any code: requirements written as numbered acceptance criteria, a design, and a task list. There are 11 specs, from line tracing and contributors to the change check, model answers and follow-up questions. In Kiro I opened the model-answers spec and ran its tasks with Start task: the tests for the model path, a /api/status endpoint, the answer-mode chip in the app and the npm run why terminal command. For each task I read Kiro's plan and diff before accepting, ran the tests in Kiro's terminal and committed. Working from a spec meant each task had a clear "done": the acceptance criteria and the tests, rather than a feeling that it worked. Requirement numbers also ended up in code comments and test names, so it is easy to trace a line of code back to the reason it exists, which is fitting for this project.

Steering. Four steering files keep Kiro consistent: product.md, tech.md, structure.md, and the one that matters most, citations.md. It writes down the project's core rule (every sentence in an answer needs a citation, and a sentence that can't be backed up is removed, never softened), together with how to treat repository text as untrusted evidence. With that in steering I didn't have to repeat the rule in every prompt.

Agent hooks. Four hooks in .kiro/hooks/:

  • Run core tests on save runs the core test suite whenever an engine file is saved, so a broken verifier shows up within seconds.
  • Citation guard reviews edits to the prompt and verifier code against the citation rules.
  • Build diary adds an entry to docs/build-diary.md when a spec task is ticked.
  • Before you delete it is the product's own feature as a hook. When you save a file, Kiro calls the check_change MCP tool on your edit. When I deleted line 12 of lib/index.js in a copy of expressjs/cors and saved, Kiro warned in chat that Troy Goode wrote that line in August 2016 to settle issue #73.

MCP. I wrote an MCP server for Exit Interview (packages/mcp) with seven tools: explain_line, follow_up, check_change, trace_line, files_at_risk, list_contributors and handover_note. Connected to Kiro, it means I can ask in chat "Why does line 12 of lib/index.js exist?" and get the cited answer, with numbered sources and GitHub links, without leaving the editor. It also gives the hook something real to call. Without MCP, the hook could only guess from the diff; with it, Kiro reads the actual history behind the line.

Property-based testing. The engine's riskiest rules are tested with fast-check, not just examples: the verifier never lets an uncited or misquoted sentence through, the diff parser matches real git diff output on random edits, noise detection, secret redaction, and Markdown escaping of repository text. Random inputs found a bug that unit tests had missed: a URL anchor like /page#12 was being read as a reference to issue #12.

Kiro power. The MCP server is packaged as a Kiro power (power/exit-interview) with skills for explaining a line, reviewing a change, knowledge at risk and writing a cited handover note for someone who is leaving.

I didn't use the Kiro CLI, Web or Crew for this project.

Challenges I ran into

  • Telling intent from noise. My first real-repo test showed quote-style and lint commits being treated as the reason for a line. I added rules for formatting-only changes and made answers lead with the commit that wrote the current version.
  • A bug that only random inputs found. A property-based test caught a URL anchor (/page#12) being read as a reference to issue #12.
  • Answers that read like logs. Without a model, the first answers were lists of dated quotes. They were accurate but hard to read. I rewrote them to lead with one plain summary sentence, still built only from verified quotes.
  • Deploying safely. Behind AWS's load balancer, my rate limits were reading the first X-Forwarded-For address, which the visitor can write. I switched to the address the load balancer adds and added tests that a client can't escape its limit by inventing addresses. The registry scan of my first image also flagged high-severity issues in the Debian 12 system packages, so I moved to Debian 13 with updates applied at build time.
  • Scroll effects. overflow-x: hidden on the body silently broke every sticky section; overflow-x: clip fixed it.

Accomplishments that I'm proud of

  • An answer can't contain a sentence without a source, and property-based tests prove the verifier holds that rule.
  • It works on real repositories with no model at all, and gets better with one.
  • The same engine runs in the browser, in Kiro through MCP and a hook, as a Kiro power, in the terminal and as a GitHub Action.
  • A benchmark of 30 labelled scenarios runs in CI, including a gate that every follow-up reply cites real sources and quotes them exactly.

What I learned

Building this alone in a month taught me more than any course this year. I learned a whole stack I had only read about: Next.js and React on the front end, git internals like git log -L and git blame, the GitHub API, the Model Context Protocol, property-based testing, and getting a container running on AWS.

The bigger lesson was how to approach a problem. My first idea was "an AI that explains code", which already exists and can make things up. Turning it around, so that the history is the source and the AI is only allowed to repeat what it can cite, made the project both more honest and more interesting. Writing the spec before the code forced me to decide what "correct" meant before I built anything, and that saved me from a lot of rework.

I also learned that the last 10% is real work: security, accessibility, layouts that hold at every screen size, and deploying something that strangers can use without breaking it. Being solo meant every decision was mine, so I learned to keep a written plan and to cut scope when it mattered.

What's next for Exit Interview

  • Private repositories through a GitHub App, with history that never leaves the company's machines.
  • GitLab and Bitbucket.
  • Before you merge as an installable GitHub App, so teams get the comment without adding a workflow.

Built With

Share this project:

Updates

Submission history