Who it is forA researcher or analyst with a folder of PDFs, DOCX files, or notes who wants a searchable, source-backed knowledge base that an agent can read.
The problemRaw documents are hard to reuse. Summaries get lost, and agents cannot tell what came from which source.
The outcomeA workspace with inbox/, catalog.md, categories, and per-document full.md, summary.md, and the original attachment, checked before filing.
What you need first
- Python 3.10+
- Node.js 20+
- Pandoc 3+
- An authenticated Claude Code or Codex CLI for model-assisted processing
- A downloaded or cloned copy of the knowledge-base-kit repository
Steps
- git clone https://github.com/Sixian-Li/knowledge-base-kit.git && cd Knowledge Base Kit (inferred, check the README)
python3 -m venv .venvsource .venv/bin/activatepython -m pip install -r requirements.txtpython scripts/init_workspace.py ../my-kb --backend codex --with-examplecd ../my-kbthenpython kb.py check --backend codex
Prompt for your agent
In the knowledge-base-kit repo, initialize a Codex workspace at <workspace-path>. Then open that workspace in Codex and use the local process_docs skill with the Codex backend on <document-path>, and show the proposed category and changed files before filing. Verify that the workspace passes `python kb.py check --backend codex`.
Caveat. Validators cannot prove factual accuracy or perfect coverage, so you still need to review the full text and summary the agent writes.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Sixian-Li/knowledge-base-kit and "Build a source-backed knowledge base from your documents"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer