Kb
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.