cd /news/ai-agents/keep-the-why-puts-project-rationale-… · home › topics › ai-agents › article
[ARTICLE · art-148896] src=promptcube3.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Keep the Why puts project rationale in Git so coding agents stop re-litigating settled decisions

A developer released Keep the Why, an open-source tool that stores project rationale as Markdown files under a `context/` directory in Git so coding agents consult prior decisions before proposing changes. In a controlled experiment, multiple agents accepted a seeded bad refactor without the context files, while every tested session rejected it once the documented rejection and its reasoning were present; the evaluation suite ships with more than 100 cases, including negative tests. The spec is open and the repo is FOSS at github.com/oliver-zehentleitner/keep-the-why, with a read-only dashboard rendering the rationale graph and timeline derived entirely from the Markdown.

by read2 min views1 publishedOct 10, 2026
Keep the Why puts project rationale in Git so coding agents stop re-litigating settled decisions
Image: Promptcube3 (auto-discovered)

Coding agents have gotten scary good at reading code, but they still walk into the same trap: a repository shows what shipped, not why the alternatives died. The author of Keep the Why frames it as a memory layer that lives inside the repo itself — Markdown files under context/ with an index the agent consults before proposing changes. No database, no daemon, no hosted service. The same Git history that versions your source now versions the reasoning behind it.

The mechanism is deliberately small. An agent gets a skill (a few hundred lines of prompt + tool definitions) that teaches it when to read the index, when to follow a reference, and when to write a new rationale entry. Because the context is just files, any agent that can run shell commands or read the workspace can use it — Codex, Claude Code, Cursor, or a local Llama wrapper all see the same durable memory. The evaluation suite ships with more than a hundred cases, including negative tests where the agent must not create or modify entries. Across the matrix the author tested, virtually every combination inspected the index before making a decision that could conflict with prior rationale.

A controlled experiment makes the point concrete: the author seeded a repo with a documented rejection of a tempting but wrong refactor. Without the context, multiple agents accepted the bad change in repeated runs. With the rejection and its reasoning present in context/, every tested session rejected it. None of the agents knew the history without that file.

The project has grown a read-only dashboard that renders the rationale graph and timeline, linking decisions to earlier decisions, related repos, and external issues. It’s derived entirely from the Markdown — no second source of truth. The spec is open and the repo is FOSS at github.com/oliver-zehentleitner/keep-the-why.

A few questions the author is genuinely curious about, and that matter if you run agents on long-lived codebases:

  • Where do you keep this rationale today — ADR folders, Notion, GitHub wiki, commit messages?
  • Do your agents actually consult those sources reliably, or do they hallucinate "we decided X" because it sounds plausible?
  • At what scale does a plain index break and demand semantic search?
  • Is "durable project memory" even the right metaphor, or is this just another knowledge layer the repo should have had all along?
If you’ve wired persistent context into Codex or another agent on a repo that’s survived multiple contributors and model upgrades, the author would love technical criticism — especially on the spec and the evaluation harness.

[Next Deno runtime s while celld takes over the engine →](https://promptcube3.com/en/threads/9922/)

All Replies (0) #

Want a live back-and-forth? Join the global AI chat room — login to talk. No replies yet — be the first!

── more in #ai-agents 4 stories · sorted by recency
── more on @keep the why 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/keep-the-why-puts-pr…] indexed:0 read:2min 2026-10-10 · —