By technomensch
Capture architecture decisions, lessons learned, and project knowledge into a structured knowledge graph that persists across Claude Code sessions. Auto-search past decisions before making recommendations, enforce documentation rules before commits, and generate session handoff summaries to maintain continuity.
Initialize and manage meta-issue tracking for complex, multi-attempt problems that evolve understanding over time.
Caller sets these variables before invoking this module:
| Parameter | Description |
Add a new category to the active knowledge graph with optional custom prefix and git strategy.
**Version:** 2.0 (Updated: 2026-03-27)
Captures a single lesson from the live session into the active knowledge graph using the `kg_capture` MCP tool. Handles new lessons and updates to existing ones.
You are a specialized agent focused on reviewing knowledge graph entries for quality, completeness, and structural integrity.
**Role:** Parse large chat history files, lesson documents, and session logs to extract structured insights and relationships for the knowledge graph. Prevents the main context window from being consumed by 2000+ line source files. Also handles the full KG entry extraction pipeline when delegated from `update-graph`.
Creates a new Architecture Decision Record (ADR) through an interactive wizard. Handles numbering, git metadata, user prompts, template population, and index management.
**Role:** Auto-configuration specialist for MCP server registration. When a `kg_*` tool call fails due to missing MCP registration, this agent detects the user's IDE environment and writes appropriate configuration without requiring manual setup.
Auto-surface ADR creation when user makes architectural decisions or chooses between technical approaches
Auto-invoke knowledge graph search when user asks about project history, past decisions, or previously solved problems
Ensure the knowledge graph is consulted before any recommendation is made
Route capture-that / remember-that requests to the correct destination via auto-detection
Intercept explicit doc-update requests and route to the correct command
Admin access level
Server config contains admin-level keywords
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Modifies files
Hook triggers on file write and edit operations
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
Structured knowledge capture, lesson-learned documentation, and cross-session memory for Claude Code projects.
Version: 0.6.10 Status: Actively developed and in daily use
Documentation: https://kmgraph.stayinginsync.info
Buy me a coffee if you find this useful - https://buymeacoffee.com/technomensch
This is a platform-agnostic knowledge graph that was developed entirely using Gemini and Claude, leveraging very specific context and detailed natural language prompting.
It is designed to take chat sessions with large language models (LLMs) and turn them into a searchable, institutional knowledge library.
The cool thing is, it helps users grab the important stuff (lessons learned, architecture decisions, recurring patterns, etc...) inside the development workflow without having to stop chatting.
Then, users can easily look up that information not only in their current chat, but also in any other chat session, even if they switch to a totally different LLM!
The key lies in the simple approach of embedding the knowledge directly within the project itself. This ensures the knowledge is always immediately available whenever and wherever the project is opened. Should the library become excessively large, users have the option to transfer it to an external third-party via MCP servers.
A Claude Code plugin that provides:
Paste INSTALL.md into any AI assistant for automated setup on any platform — Claude Code, Codex CLI, Cursor, Windsurf, Continue.dev, JetBrains, VS Code, Aider, or local LLMs.
Claude Code users: Run claude plugin install kmgraph or load with claude --plugin-dir /path/to/knowledge-graph, then run /kmgraph:kmg-init.
Codex CLI users: Run codex plugin marketplace add technomensch/knowledge-graph then codex plugin add kmgraph@knowledge-management-graph.
See the Quickstart for prerequisites and troubleshooting.
Pull the latest version and run /kmgraph:kmg-init in any project that uses it. The upgrade wizard checks what has changed, previews any updates to existing files, and asks for confirmation before writing, or changing, anything. Existing knowledge graph content is never overwritten.
Quick Reference: See CHEAT-SHEET.md for one-page quick reference guide Detailed Guide: See Command Guide for comprehensive command documentation with learning paths
/kmgraph:kmg-init — Initialize new knowledge graph with wizard-based setup/kmgraph:kmg-capture-lesson — Document lessons learned with git metadata tracking/kmgraph:kmg-create-adr — Create an Architecture Decision Record with automatic implementation commit capture/kmgraph:kmg-status — View active knowledge graph info and quick reference/kmgraph:kmg-recall — Search across all memory systems (lessons, decisions, knowledge)/kmgraph:kmg-update-graph — Extract knowledge graph entries from lessons/kmgraph:kmg-add-category — Add a new category to existing knowledge graph/kmgraph:kmg-session-summary — Create summary of current chat session/kmgraph:kmg-list — Display all configured knowledge graphs/kmgraph:kmg-switch — Change active knowledge graph/kmgraph:kmg-check-sensitive — Scan knowledge graph for potentially sensitive information/kmgraph:kmg-config-sanitization — Interactive wizard for pre-commit hook setup/kmgraph:kmg-extract-chat — Extract chat history from Claude, Gemini, and Codex CLI logs (--source codex for Codex sessions)/kmgraph:kmg-update-doc — Update plugin/project documentation (--user-facing) or KG content/kmgraph:kmg-init-personal-kg — Initialize a personal knowledge graph at ~/.kmgraph/ shared across all projectsnpx claudepluginhub technomensch/knowledge-graph --plugin kmgraphClaude + Obsidian knowledge companion. Sets up a persistent, compounding wiki vault (Karpathy's LLM Wiki pattern). v1.7 "Compound Vault" + v1.8 methodology modes close 5 of 5 priority gaps from the May 2026 compass artifact. Ships: substrate alignment with kepano/obsidian-skills, default Obsidian CLI transport, hybrid retrieval (contextual prefix + BM25 + cosine rerank per Anthropic's Sept 2024 research), per-file advisory locking for multi-writer safety, pre-commit verifier agent, AND methodology modes (LYT / PARA / Zettelkasten / Generic) for first-class organizational support no other Claude+Obsidian competitor offers. v1.7.x audit closure: every BLOCKER + HIGH + MEDIUM + LOW finding from the v1.7.0 audit is CLOSED or DEFERRED-with-rationale. Optional DragonScale Memory extension (log folds, deterministic addresses, semantic tiling lint, boundary-first autoresearch).
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Complete AI coding workflow system. Self-correcting memory + persistent FTS5-indexed research wikis + auto-research loop + multi-LLM council on a single SQLite store. 33 skills, 8 agents, 22 commands, 37 hook scripts across 24 events. Cross-agent via SkillKit.
AI-powered wiki generator for code repositories. Generates comprehensive, Mermaid-rich documentation with dark-mode VitePress sites, onboarding guides, deep research, and source citations. Inspired by OpenDeepWiki and deepwiki-open.
Comprehensive C4 architecture documentation workflow with bottom-up code analysis, component synthesis, container mapping, and context diagram generation
Access official Microsoft documentation, API references, and code samples for Azure, .NET, Windows, and more.