Skip to main content

A unified search and knowledge tool for AI agents and developers

Project description

AgentKB

Pre-alpha. This is under active development. APIs, CLI commands, and storage formats may change without notice and will likely break frequently. Use at your own risk.

A knowledge tool that makes AI agents smarter over time. Braids together your code, a wiki of markdown files, and your Claude Code chat history into one searchable system.

The power is in the cross-intersection: code tells you what exists, chat history tells you what was tried, what failed, and what was learned, and the wiki captures the distilled lessons so the agent doesn't repeat mistakes. Each source fills gaps the others can't — code alone doesn't capture why a decision was made, chats alone are noisy and unsearchable, and a wiki alone goes stale without activity to drive updates.

Your data stays local, in universal formats (source files, markdown, JSONL), on your machine. Back everything up with agentkb sync push and restore on a new machine with agentkb sync pull.

Install

pip install agentkb

Quick Start

# Index your code
agentkb code index

# Search semantically
agentkb search "database connection pooling"

# Initialize a wiki
agentkb wiki init

# Index your Claude Code chat history
agentkb chats index

# Search across everything
agentkb search -s all "authentication flow"

Stores

AgentKB has three store types:

  • Code — source files parsed with tree-sitter (Python, JS, TS, Rust, Go, Java, C, Ruby), searchable by meaning
  • Wiki — plain markdown files you and your agents write. Hard-won lessons, techniques, taste, people, tools, domain knowledge — anything that helps the agent do better work next time.
  • Chat History — Claude Code conversations exported as readable markdown, fully searchable. The raw material that feeds the wiki.

Search

agentkb search "retry logic with backoff"              # semantic search (default: code)
agentkb search -s wiki "why did we choose JWT"         # search wiki
agentkb search -s chats "how did I fix the auth bug"   # search chat history
agentkb search -s all "authentication"                 # search everything
agentkb search -e "async def" "error handling"         # regex + semantic
agentkb search --include="*.py" "config parsing"       # filter by file type
agentkb search --json "query"                          # JSON output for scripts

Consolidation

Turn your git activity and chat history into wiki knowledge:

agentkb consolidate                   # what's happened in the last 7 days vs. wiki state
agentkb consolidate --since 30d       # last 30 days

This cross-references what changed in code, what was discussed in chats, and what's already in the wiki. It produces a report with every session in the time range, paths to read them, and instructions for extracting reusable knowledge. The agent reads the sessions, extracts lessons (mistakes, techniques, taste decisions, people knowledge, domain expertise), and writes or updates wiki pages.

Agent Integration

agentkb hooks install                 # install Claude Code hooks

Hooks tell the agent about your wiki at session start and remind it about semantic search when it reaches for Grep/Glob.

Documentation

Full docs at isaacflath.com/agentkb.

How It Works

Hybrid search: ColBERT multi-vector embeddings (semantic) + SQLite FTS5 (keyword), fused with reciprocal rank fusion. Indexes are incremental — only changed files are re-encoded.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentkb-0.1.3.tar.gz (183.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentkb-0.1.3-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file agentkb-0.1.3.tar.gz.

File metadata

  • Download URL: agentkb-0.1.3.tar.gz
  • Upload date:
  • Size: 183.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for agentkb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bcbc771d92cbea764b2f5823e7c7180a98c05c9ec506e1bd232436f660a55ca5
MD5 8967b7e67659c42ce5fc125b21c7b5f0
BLAKE2b-256 dc68e8e87b8a187aab660a829e0a547aac3c75b0bce69494e6f5df7f22fb09d1

See more details on using hashes here.

File details

Details for the file agentkb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: agentkb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for agentkb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf92ae01a5647617011df4f700767134e5cf7586a2d4a15bf47f0278e35498bd
MD5 a6f1be913dacdba6b695fcc0ba369fe6
BLAKE2b-256 e20451c0256032224aaf4a9ebb89ddbbc119403bd15cab0842cea4b0129fca68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page