gitwtfhub

wtf is keep-the-why?

oliver-zehentleitner/keep-the-why — explained in plain English

Analysis updated 2026-05-18

4HTMLAudience · developerSetup · easy

TL;DR

A tool that saves the reasoning behind code changes, not just the changes themselves, so future developers or AI agents understand why decisions were made.

Mindmap

mindmap
  root((repo))
    What it does
      Saves reasoning
      Not just changes
      Context files
    Modes
      Continuous capture
      Retrospective recovery
      Interview mode
      Maintenance
    Tech stack
      SKILL.md
      Markdown
      Git history
    Use cases
      Onboarding
      Legacy recovery
      Knowledge transfer
    Audience
      Developers
      Maintainers
      AI agents

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Record why an architecture decision was made so future maintainers do not repeat rejected approaches.

REASON 2

Reconstruct missing context in an older codebase by analyzing git history and issues.

REASON 3

Interview a departing team member and turn their knowledge into searchable notes.

REASON 4

Give an AI coding agent enough background to make safer changes in an unfamiliar repo.

What's in the stack?

SKILL.mdMarkdownGit

How it stacks up

oliver-zehentleitner/keep-the-whyasabeneh/speaksuomibmschmidt/bookwormblog
Stars444
LanguageHTMLHTMLHTML
Last pushed2026-05-292015-05-22
MaintenanceMaintainedDormant
Setup difficultyeasyeasymoderate
Complexity1/53/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires an agent that supports the SKILL.md format, such as Claude Code or Codex CLI.

Wtf does this do

Keep the Why is an agent skill that saves the reasoning behind decisions made in a codebase, not just the code itself. A changelog tells you what changed. This project tries to capture why it changed: the architecture choices, the alternatives that got rejected, the workarounds, and the lessons learned from past incidents that code comments usually never mention. It works as a SKILL.md file, a shared format that many AI coding agents can read, including Claude Code, Codex CLI, Gemini CLI, and Cursor. Once installed, it runs in four modes. Continuous capture watches ongoing development and writes down rationale as it comes up in conversation. Retrospective recovery is aimed at an existing or older codebase, reading through git history and issues to reconstruct as much reasoning as it can, while being honest about what it could not figure out. Knowledge transfer interview mode is meant for situations where a maintainer is about to leave a project or change teams: the agent studies the code first, then either asks specific questions about the parts the code could not explain, or simply listens if that person prefers to talk freely. A maintenance mode keeps the saved notes current over time, resolving contradictions and splitting files that get too large. The first time it runs in a project, it asks a short set of setup questions instead of guessing, such as where the notes should be stored and whether it should capture rationale automatically or only when asked. Installation is meant to go through either the skills CLI tool or the GitHub CLI, both of which install just the skill folder rather than the whole repository. A manual clone option exists as a fallback for people who cannot use either tool. The stated goal is to make projects easier to hand off between developers, whether that is a new hire or an AI agent seeing the code for the first time, so nobody has to track down the original author just to understand a decision.

Yoink these prompts

Prompt 1
Install the keep-the-why skill in this project and set it up for continuous capture mode.
Prompt 2
Use keep-the-why to reconstruct the reasoning behind this legacy codebase from its git history.
Prompt 3
Walk me through running a knowledge transfer interview with keep-the-why before I hand off this project.
Prompt 4
Show me how keep-the-why records a decision when I explain why I changed the retry logic.

Frequently asked questions

wtf is keep-the-why?

A tool that saves the reasoning behind code changes, not just the changes themselves, so future developers or AI agents understand why decisions were made.

What language is keep-the-why written in?

Mainly HTML. The stack also includes SKILL.md, Markdown, Git.

How hard is keep-the-why to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is keep-the-why for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.