An open-source MCP server that facilitates structured lessons-learned retrospectives on software projects by analyzing git repositories.
The Weaver helps developers improve their skills, understand project decisions, and build institutional knowledge by reflecting on their own development history — through genuine dialogue, not checklists.
# Add to Claude Code (one command)
claude mcp add the-weaver -- npx -y the-weaver
# Or install globally
npm install -g the-weaverThen in your AI coding tool, use the /start_retrospective prompt to begin.
The Weaver analyzes your git repository and facilitates a structured retrospective conversation — then helps you track what you learned across projects over time:
- Analyzes commit history, branches, dependencies, file changes, commit messages, and branch names
- Identifies patterns from 11 SDLC perspectives — deduplicated across perspectives, with evidence cited inline
- Facilitates one-question-at-a-time dialogue about each finding
- Captures lessons learned as actionable insights (to the project or your personal journal)
- Generates a chronological narrative evolution log — the story of the project, not a stats dump
- Tracks your evolution across projects through an optional personal learning journal — intentions, concepts, cross-project patterns, ready-to-paste prompts for mentor/tutor/future-self conversations
The Weaver is a methodology delivery system, not a standalone AI. It works through your existing AI coding tool (Claude Code, Cursor, VS Code). The host AI provides the intelligence; The Weaver provides structure.
| Type | What It Does |
|---|---|
| Tools (13) | Mechanical operations: analyze repos, identify findings, dialogue, save lessons, manage journal + intentions |
| Prompts (5) | Methodology templates that appear as slash commands |
| Resources | Knowledge base: perspectives, methodology, best practices, session state |
| Prompt | Purpose |
|---|---|
start_retrospective |
Full facilitated session |
quick_scan |
Rapid analysis without dialogue |
investigate |
Deep dive on a specific pattern |
debate |
Two perspectives discuss a finding |
generate_report |
Produce final narrative |
Each perspective is a markdown file — community-contributable, no TypeScript needed:
- Planning & Requirements
- Architecture & Design
- Development & Coding
- Testing & Quality
- Security
- Deployment & Infrastructure
- Project Management
- Human-AI Collaboration
- Documentation
- Tool & Technology Selection
- Learning & Growth
Separate from the per-project .weave/ directory, you can point The Weaver at a personal journal — a dedicated directory (optionally its own git repo, optionally pushed to a private GitHub remote) where your own evolution across projects accumulates.
# Initialize a journal once, anywhere
export WEAVER_JOURNAL_PATH="$HOME/dev-journal"
# Then ask your AI: "Initialize my Weaver journal"The journal contains:
intentions.json— things you want future-you to remember, with kept/abandoned statuscurrent-state.md— rolling snapshot regenerated after every sessionsessions/— one retrospective narrative per project, per runconcepts/— a growing glossary of what you've learnedinsights/— cross-project patterns you name yourselfvault/— private entries never included in exports without re-consentprompts/ask-a-mentor.md,tutor-me.md,future-self.md— ready-to-paste conversation seeds auto-regenerated from current journal state
Nothing leaves your machine unless you push it yourself. The journal is plain markdown and JSON — readable without The Weaver if the tool ever goes away.
The Weaver is built on principles from military after-action reviews (Blue Angels, Army AAR, Navy lessons learned):
- No Blame — We identify improvements, not fault
- Facts First — What happened before why it happened
- Safety First — Safe words (STOP, PAUSE, BREAK, EXIT) work instantly
- Privacy by Default — Everything stays local, ephemeral unless you save it
- Anti-Performance Theater — No metrics that can be gamed, no surveillance
"The moment reflection becomes compliance is the moment learning dies."
claude mcp add the-weaver -- npx -y the-weaver{
"mcpServers": {
"the-weaver": {
"command": "npx",
"args": ["-y", "the-weaver"]
}
}
}Commit .mcp.json to your repo so everyone gets The Weaver:
{
"mcpServers": {
"the-weaver": {
"command": "npx",
"args": ["-y", "the-weaver"]
}
}
}The easiest way to contribute is adding a new perspective — it's just a markdown file with YAML frontmatter. See perspectives/README.md for the format and CONTRIBUTING.md for guidelines.
git clone https://github.com/PatrickRutledge/the-weave.git
cd the-weave
npm install
npm run build
npm testMIT — see LICENSE