Kb

•
1
•

Provides a local, fetch-once knowledge base for AI agents, ensuring data consistency and preventing re-fetching or fabrication.

Kb addresses common issues with AI agents, such as repeated information fetching, forgetting learned content, and fabricating details. It establishes a local discipline layer for agents, guiding them through a clear loop: search the existing library first, and only fetch externally if the information is missing. After an external fetch, the content is saved, preventing future re-fetches. This system minimizes duplicate documents through three-layer deduplication, maintains metadata integrity by never fabricating, and offers local SQLite FTS5 search for English and CJK languages without relying on embeddings, API keys, or vector databases. It provides a lightweight, local-first solution for robust agent memory.

主な機能

01Implements three-layer deduplication with merge-on-conflict for efficient storage.
02Integrates with AI agents via six dedicated MCP tools for searching, saving, and retrieving documents.
03Offers local SQLite FTS5 search for English and CJK languages (trigram + short-query fallback).
040 GitHub stars
05Enforces a 'fetch-once' discipline for AI agents using explicit search and existence checks.
06Operates without embeddings, API keys, or vector databases, using a single local SQLite file.

ユースケース

01Integrating a disciplined, local knowledge base into AI agent workflows (e.g., Claude Code, Claude Desktop).
02Preventing AI agents from repeatedly downloading or fabricating information.
03Managing a local, searchable repository of research documents for automated systems.