Ask why any function exists.
Get the decision that created it.

WhyCode gives AI coding agents persistent memory, bidirectional code provenance, and independent quality verification — automatically, on every session.

Works with Claude Code Cursor Windsurf Any MCP client Windows / macOS / Linux Git and non-git projects

Everything your AI agent is missing

Six independent capabilities that turn any MCP-compatible agent into a grounded, verifiable teammate.

Bidirectional provenance

Forward: decision → commit → AST. Reverse: function → decision. Every function traceable to its rationale.

Active context injection

Relevant decisions injected automatically before every session and file edit. Agent knows your architecture before typing.

Independent quality harness

Five sensors running independently of what the agent reports. Coverage, complexity, drift, density.

Architectural drift detection

Catches import violations against recorded decisions before they compound.

Tautological test detection

Flags tests that validate implementation instead of specification.

Rollback impact planning

Full dependency graph before any revert. See what breaks downstream.

Running in four steps

Zero configuration for the common path. Works in any project directory, git or not.

01

Install once

A single install grabs the backend, frontend assets, and all dependencies.

pip install whycode
02

Init each project

Generates config, vault, CLAUDE.md, and wires up the right change backend.

whycode init
03

Work normally

Agents call MCP tools. Decisions, commits, and drift record automatically.

whycode serve
04

Query anything

Trace any function to the decision and commit that created it.

provenance.reverse(file, fn)

Simple, honest pricing

Free for solo developers forever. Team pricing only activates when we leave open beta.

Solo
Free forever

Everything, unlimited, on your own machine.

Install now
  • All MCP tools
  • Unlimited projects
  • Local-only mode
  • Dashboard included
  • Apache 2.0 source
Enterprise
Custom

Self-hosted, SOC 2, SLA-backed support, private providers.

Contact sales
  • Everything in Team
  • Self-hosted deployment
  • SOC 2 Type II
  • SLA-backed support
  • Private OAuth providers

All features free during open beta. Pricing activates when you are ready.

Your codebase deserves a memory that knows why things exist.

$ npx whycode@latest init-and-serve View on GitHub