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 unified search and knowledge tool for AI agents and developers. Braids together your code, a knowledge base of markdown files, and your Claude Code chat history into one searchable system.

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 knowledge base
agentkb kb 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
  • Knowledge Base — plain markdown files you and your agents write. Hard-won lessons, project context, accumulated knowledge.
  • Chat History — Claude Code conversations exported as readable markdown, fully searchable

Search

agentkb search "retry logic with backoff"              # semantic search (default: code)
agentkb search -s kb "why did we choose JWT"            # search knowledge base
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

Documentation

Full docs at isaacflath.com/plait.

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.1.tar.gz (177.4 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.1-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentkb-0.1.1.tar.gz
  • Upload date:
  • Size: 177.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for agentkb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3b204976bd50b2a4d11253f27059d0c697c13422eb14ccb6b31284942b42ab5a
MD5 d5c679b618e00544a373d52a32ef0a83
BLAKE2b-256 2d7f43418790a6ab76d8133a1762a90ef27d89d4cdaa9c633854bf13290f8f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentkb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for agentkb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a1e674f3b899da12a8543ce9531f092a94d4610d7349c0c029118c3d6aeb36
MD5 aeb18f0473f4cc3859bfc9a284f5404d
BLAKE2b-256 0b432c705245d26038dd5a55b1609f68b256018950ef25da0d50af16793601d4

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