By gal-Tab
Knowledge base agent: compiles PDFs, markdown, and repos into a structured wiki, and compounds the agent's own work-lessons (corrections, playbooks, insights, patterns) across projects
Capture work-lessons (corrections, playbooks, insights, patterns) from this session into the compound-learnings store so future sessions start smarter. Project-scoped by default; global promotion is opt-in.
Compile new or updated source files from raw/ into structured wiki pages. Dispatches background agents for extraction, then batch-resolves entities/concepts via code dedup + single LLM pass.
Initialize a knowledge base in the current project. Creates raw/, wiki/, wiki-schema.md, and extraction tools.
Use when the user asks what was learned before, references past mistakes/lessons/playbooks ("have we hit this before", "what did we learn about X", "lessons learned", "did I already solve this"), or when you want to consult the agent's own compound learnings before acting. Reads the compound-learnings store (project .compound/ + the global store), index-first.
Use when planning or brainstorming a non-trivial task and you want a thorough, one-shot sweep of the agent's past learnings before committing to an approach — best run as a dispatched subagent so the scan happens in its own token budget and returns only a synthesized, cited brief. Read-only. For quick interactive lookups during a conversation, use learn-recall instead.
Use when user asks domain questions and a wiki/ directory exists in the project, when user references "my research" or "what I've read," when user asks about topics that could be in their knowledge base, or when user asks to compare entities from ingested sources
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.
A Claude Code plugin that gives your agent persistent, structured memory. Drop PDFs, markdown files, or git repos into a folder — the agent extracts, compiles, and maintains a structured wiki. Ask domain questions and get answers grounded in your sources, with cross-references and citations.
Prerequisites: Claude Code installed and working.
# 1. Register the marketplace (one-time, no manual clone needed)
claude plugin marketplace add https://github.com/gal-Tab/agent_knowledgebase
# 2. Install the plugin
claude plugin install llm-wiki-agent
# 3. In any project, initialize a knowledge base
/wiki-init
Optional dependencies (checked by /wiki-init):
pymupdf4llm — for PDF ingestion: pip3 install --user pymupdf4llmrepomix — for repo ingestion: npm install -g repomix (npx fallback available)Two human actions. Everything else is automatic.
raw/cp ~/papers/interesting-paper.pdf raw/
cp ~/notes/meeting-notes.md raw/
claude
# Agent detects new files automatically on session start
# Say "compile" or use /wiki-compile to process them
Ask domain questions — the agent consults the wiki first, citing your sources:
"What does the paper say about scaling laws?" "Compare the architectures described in these two papers" "What do we know about OpenAI's approach to training?"
The agent reads the wiki index, identifies relevant pages, and synthesizes answers with source citations.
After running /wiki-init, your project gets:
project/
├── raw/ # Drop files here
│ ├── .manifest.json # Pipeline state (auto-managed)
│ └── .extracted/ # Extracted markdown (auto-generated)
├── wiki/ # Compiled wiki (auto-managed)
│ ├── index.md # Content catalog
│ ├── sources/ # One summary per raw source
│ ├── entities/ # People, orgs, products, tools
│ ├── concepts/ # Ideas, frameworks, definitions
│ └── comparisons/ # Cross-source analysis
├── tools/
│ ├── extract-pdf.py # PDF → markdown
│ └── extract-repo.sh # Repo → markdown
├── wiki-schema.md # Domain rules (customize this!)
└── HANDOFF.md # Session persistence
Each project has its own isolated knowledge base. The plugin provides the engine; your project owns the data.
Two-phase process:
wiki/sources/{slug}.md with structured summary, and lists candidate entities/conceptswiki-schema.md. Index is updated, git commits track everything.Thresholds (configurable in wiki-schema.md):
Edit wiki-schema.md after running /wiki-init. The most important part is the Domain Description — it tells the agent what counts as "common knowledge" vs worth a dedicated page.
Example for ML research:
## Domain Description
Machine learning research. Covers model architectures, training techniques,
scaling laws, and benchmark results.
You can also customize entity types, page sections, creation thresholds, and compilation rules.
| Command | What it does |
|---|---|
/wiki-init | Initialize a knowledge base in the current project |
/wiki-compile | Compile new or updated files from raw/ into wiki pages |
/learn-capture | Capture work-lessons (corrections, playbooks, insights, patterns) into the compound-learnings store |
The wiki-query skill auto-invokes when you ask domain questions — no command needed.
Commands, skills, and hooks follow one scheme so the surface stays predictable as it grows:
npx claudepluginhub gal-tab/agent_knowledgebase --plugin llm-wiki-agentCompile scattered markdown knowledge files into a topic-based wiki. Non-destructive, Obsidian-compatible, with staged adoption.
Build and maintain an LLM-curated personal knowledge base in your project — Andrej Karpathy's LLM Wiki pattern, designed to scale to thousands of pages without becoming a context bottleneck. Now with an optional compiled graph layer for typed, provenance-backed relationships.
A persistent LLM-maintained wiki for your knowledge base. Ingest sources, query your knowledge, and lint for consistency.
Build and maintain LLM-powered knowledge bases as Obsidian wikis with compile, query, lint, and evolve workflows
LLM-maintained knowledge base skill — structured wiki with Obsidian, milestone-based source clustering, proactive write-back, and autonomous lint
Personal LLM-managed wiki: ingest sources, cross-reference pages, query with citations, and lint your markdown knowledge base