Before you delete that line, know its story.

Exit Interview reads the commits, pull requests and issues behind any line of code, tells you why it was written, and warns you before a change removes somebody's bug fix. Every sentence cites its source.

Sam smiling at a laptop in warm lamp light, small points of light above it

Sam's first week

Six scenes, one line of real code. Everything Sam sees on screen is what Exit Interview actually returned for expressjs/cors.

  1. Sam at a desk in a dim office at dusk, looking up at a tangled knot of grey cables

    Sam's first ticket: fix the CORS bug before Friday.

    The code is thirteen years old. The person who wrote this part left long ago, and nobody on the team has touched the file since.

  2. Sam squinting at a strip of blue light that loops back into a dead end

    Everything leads to one line.

    Why does optionsSuccessStatus default to 204? git blame points at a commit that only reformatted the file. A dead end.

    lib/index.jsgit blame
    11 preflightContinue: false,
    12 optionsSuccessStatus: 204
    13 };
    00ce63abuild: eslint@2.13.1only reformatted it
  3. Sam resting their chin on one hand late at night, a faded figure walking away in a speech bubble

    Sam asks the team. Nobody remembers.

    Three coffees later, the only person who knew the answer is a greyed-out name in the commit log.

    #backend11:42 PM

    SSam Does anyone know why the preflight reply is 204?

    PPriya No idea, that's from before my time.

    DDev The person who wrote it left years ago.

  4. Amber threads running from Sam's laptop into the knot, one point of it glowing

    So Sam asks the history instead.

    Paste the repository, click line 12. Exit Interview walks back through every commit that touched it, skips the reformat, and stops at the one that actually wrote the line.

    Every commit that changed line 12newest first
    00ce63abuild: eslint@2.13.1skipped
    5dae6d8fix #66 #73; publish as 2.8.0wrote this line
    f4dcdf2Allow CORS module to pass the preflight request to the next() handlerApr 2015
    165f35e#30: use the vary moduleNov 2014
  5. The knot turned into a neat amber constellation while Sam smiles at dawn

    The tangle turns into a story.

    A plain answer, built from the pull request, the review thread and the issue. Every sentence links to its source, so Sam can check it.

    Written by Troy Goode, Aug 2016 · 5 sources

    Troy Goode wrote this line in Aug 2016 in a commit titled "fix #66 #73; publish as 2.8.0", to settle issue #73: "Preflight success statusCode should be configurable". E20E14

    In Jan 2016, Romsters opened pull request #66: "bug with handling preflight requests in Internet Explorer 11". E13

  6. Sam stretching with a big smile in golden morning light, a ticked sticky note on the laptop

    Sam ships the fix, and leaves the answer for the next person.

    One click copies the answer into the pull request. The next new hire starts from the answer, not from zero.

    Fix CORS preflight for Safaripull request

    S Sam commented

    Why lib/index.js:12 exists

    Troy Goode wrote this line in Aug 2016 in a commit titled "fix #66 #73; publish as 2.8.0", to settle issue #73: "Preflight success statusCode should be configurable". E20E14

    Copied from Exit Interview with one click

    Try a real repositoryOpen Sam's line 12

Now you try. Pick a line.

Real history from expressjs/cors. Exit Interview rewinds through every commit that touched the line, skips the ones that only reformatted it, and stops at the one that actually wrote it.

History of line 12 · newest first
12optionsSuccessStatus: 204

Rewinding through 10 commits that touched this line…

Written in Aug 2016 by Troy Goode

fix #66 #73; publish as 2.8.0

  1. Troy Goode wrote this line in Aug 2016 in a commit titled "fix #66 #73; publish as 2.8.0", to settle issue #73: "Preflight success statusCode should be configurable". E20E14
  2. In Jan 2016, Romsters opened pull request #66: "bug with handling preflight requests in Internet Explorer 11". E13
  3. In Apr 2016, Sharaal wrote in the discussion: "Would be also solved by always response the status code 200 like its mentioned in the already existing pull request: https://github.com/expressjs/cors/pull/66". E15
  4. In May 2016, Sharaal wrote in the discussion: "+1, also some Smart TVs expect 200." E16

5 sources, quoted from public history. Every sentence links to its source.

That strange line was somebody's bug fix.

Clean-ups are where old bugs come back. Before a change lands, Exit Interview traces every line it removes or rewrites, and warns you about the ones history says were written on purpose, with the issue they settled. Try it: delete a line.

  • In Kiro, as you saveAn agent hook checks your edit.
  • On a pull requestPaste the link, copy the warnings into the review.
  • From any MCP clientThe check_change tool.
Check expressjs/cors#35 yourself
lib/index.js · expressjs/corspress a bin
  1. (function () {
  2. 'use strict';
  3. var assign = require('object-assign');
  4. var vary = require('vary');
  5. var defaults = {
  6. origin: '*',
  7. methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
  8. preflightContinue: false,
  9. optionsSuccessStatus: 204
  10. };
  11. function isString(s) {
  12. return typeof s === 'string' || s instanceof String;
  13. }
  14. function isOriginAllowed(origin, allowedOrigin) {
  15. if (Array.isArray(allowedOrigin)) {
  16. for (var i = 0; i < allowedOrigin.length; ++i) {
  17. if (isOriginAllowed(origin, allowedOrigin[i])) {
  18. return true;
  19. }
  20. }
  21. return false;
  22. } else if (isString(allowedOrigin)) {
  23. return origin === allowedOrigin;
  24. } else if (allowedOrigin instanceof RegExp) {
  25. return allowedOrigin.test(origin);
  26. } else {
  27. return !!allowedOrigin;
  28. }
  29. }
  30. function configureOrigin(options, req) {
  31. var requestOrigin = req.headers.origin,
  32. headers = [],
  33. isAllowed;
  34. if (!options.origin || options.origin === '*') {
  35. // allow any origin
  36. headers.push([{
  37. key: 'Access-Control-Allow-Origin',
  38. value: '*'
  39. }]);
  40. } else if (isString(options.origin)) {
  41. // fixed origin
  42. headers.push([{
  43. key: 'Access-Control-Allow-Origin',
  44. value: options.origin
  45. }]);
  46. headers.push([{
  47. key: 'Vary',
  48. value: 'Origin'
  49. }]);
  50. } else {
  51. isAllowed = isOriginAllowed(requestOrigin, options.origin);
  52. // reflect origin
  53. headers.push([{
  54. key: 'Access-Control-Allow-Origin',
  55. value: isAllowed ? requestOrigin : false
  56. }]);
  57. headers.push([{
  58. key: 'Vary',
  59. value: 'Origin'
  60. }]);
  61. }
  62. return headers;
  63. }
  64. function configureMethods(options) {
  65. var methods = options.methods;
  66. if (methods.join) {
  67. methods = options.methods.join(','); // .methods is an array, so turn it into a string
  68. }
  69. return {
  70. key: 'Access-Control-Allow-Methods',
  71. value: methods

Pick a line that looks unnecessary and press its bin. Try line 12, or the RegExp check on line 29.

Other tools summarise history. Exit Interview cites it.

Before you see an answer, a verifier checks every sentence against the numbered evidence it was built from. Anything without a real source is removed, not softened.

  • No citationThe sentence is removed.
  • A source that was never readThe citation is dropped.
  • A misquoteThe sentence is removed.
  • Nothing explains the lineIt says so, instead of guessing.

The rules are pinned down with property-based tests, so they hold for inputs nobody thought to write by hand.

Line 6 · var vary = require('vary');

Troy Goode wrote this line in Nov 2014 in a commit titled "#30: use the vary module", to settle pull request #30: "add vary origin header for specifc origins". E8E6

In Nov 2014, dougwilson wrote in the discussion: "This will remove any previously-set Vary header value now, no? Why not use the vary module :)?" E9

The vary module was chosen because it was faster.Removed: no source says this

See which files only one person ever understood.

Before someone leaves, or long after they have. Exit Interview counts who wrote every line that is still in the code, and shows where the knowledge walked out of the door.

In expressjs/cors, 7 of the 10 people who wrote the most code no longer commit.

See the full report
Knowledge at risk · expressjs/corswritten by inactive contributors
  1. test/test.js100%1 person
  2. lib/index.js100%1 person
  3. test/example-app.js100%1 person
  4. test/issue-2.js100%1 person
  5. test/error-response.js100%1 person
  6. .github/workflows/scorecard.yml100%1 person

Ask without leaving the editor.

The MCP server gives Kiro six tools: check_change, explain_line, trace_line, files_at_risk, list_contributors and handover_note. They work on the repository you already have open, private ones included.

{
  "mcpServers": {
    "exit-interview": {
      "command": "npx",
      "args": ["tsx", "packages/mcp/src/server.ts"]
    }
  }
}
Kiro · lib/index.js
24 }
25 }
26 return false;
27 } else if (isString(allowedOrigin)) {
28 return origin === allowedOrigin;
29 } else if (allowedOrigin instanceof RegExp) {
30 return allowedOrigin.test(origin);
31 } else {
32 return !!allowedOrigin;
33 }
34 }

Why can line 30 take a regular expression?

explain_line · 8 sources read

Troy Goode wrote this line in May 2015 in a commit titled "#42: now passing all tests again", to settle issue #42: "allow 'options.origin' to be a regexp". E4E1

Six parts that were never meant to meet.

Built for the Kiroween 2026 Frankenstein category: separate technologies stitched into one tool.

Questions engineers ask first

How do I know the answer is right?

Every sentence links to the commit, pull request, review or issue it came from, and a verifier removes anything without a real source. When the history does not explain a line, Exit Interview says so instead of guessing.

Does “no warning” mean a change is safe?

No. It means history gives no documented reason to stop: no linked issue, pull request or explanation behind the lines you remove. Every warning has a priority and an evidence label from fixed, published rules, and says what history can't tell you. Warnings are advice, not predictions.

Does my code leave my machine?

Repositories are cloned into a local cache. Only the evidence for one question is sent to the model you configure. With no model configured, answers quote the history directly.

Which model does it use?

Any endpoint that speaks the OpenAI-compatible chat API, set with three environment variables. The model only sees the numbered evidence.

Does it work on private repositories?

Inside Kiro, yes: the MCP server reads the repository you have open. The hosted app is for public GitHub repositories.

How does it decide someone is inactive?

A contributor counts as inactive when their last commit is more than 180 days older than the repository's newest commit. That says nothing about whether they left the project; it only means history can't show them answering questions. The threshold is configurable.

Who is Sam?

A made-up new developer, animated with Google Flow for this page. Sam's code, commits and answers are real: they come from the public history of expressjs/cors.

Every team has a Sam. Give them the answers.

Open any public repository, click a line, and read why it exists, with a source for every sentence.