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.

A local-first knowledge system for agents. Today its core is persistent wiki pages + searchable agent chat history, with skills as a git-synced filesystem sidecar.

The power is in the intersection:

  • Wiki captures distilled, durable knowledge
  • Chat history captures what was tried, what failed, and what was learned
  • Skills capture repeatable procedures

Your data stays local in universal formats: markdown, JSONL, and normal files on disk. Indexes are ephemeral caches rebuilt from source data.

Built-in code indexing was removed in April 2026. For code search in the current project, use colgrep or normal file tools.

Install

Install as a uv tool so agentkb is available globally:

uv tool install agentkb

Or install from source for development:

uv tool install --editable --python 3.13 ~/path/to/agentkb

To upgrade:

uv tool upgrade agentkb

Quick Start

# Initialize your wiki
agentkb wiki init

# Export + index coding-agent chat history (Claude Code + Pi)
agentkb chats index

# Search the wiki (default scope)
agentkb search "DaVinci Resolve scripting gotchas"

# Search chat history
agentkb search -s chats "how did I fix the auth bug"

# Search wiki + chats together
agentkb search -s all "authentication"

# Check what exists
agentkb status

For code search inside the current repo:

colgrep "error handling logic"

Stores

AgentKB currently has three store types:

  • Wiki: plain markdown pages you and your agents write. Hard-won lessons, techniques, taste, people, tools, domain knowledge.
  • Chat History: coding-agent conversations exported as readable markdown, fully searchable. Built-in sources currently include Claude Code and Pi.
  • Skills: agent skill directories (SKILL.md + scripts + references) managed by git. Not indexed or searched.

Search

agentkb search "retry logic with backoff"              # semantic search (default: wiki)
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 wiki + chats
agentkb search -e "error" "deployment issues"         # regex + semantic
agentkb search --json "query"                          # JSON output for scripts

Consolidation

Turn recent chat activity into wiki knowledge:

agentkb consolidate
agentkb consolidate --since "30 days"

This exports recent chat history, prints the relevant local paths, and prints consolidation instructions the agent can act on. The agent reads the sessions, extracts reusable lessons, and writes or updates wiki pages.

Skills

Manage agent skills with git sync:

agentkb settings set skills_remote "git@github.com:user/my-skills.git"
agentkb sync pull
agentkb skills list

Sync

Back up your wiki, chat history, and skills to git remotes:

agentkb settings set wiki_remote "git@github.com:user/agentkb-wiki.git"
agentkb settings set chats_remote "git@github.com:user/agentkb-chats.git"
agentkb settings set skills_remote "git@github.com:user/my-skills.git"

agentkb sync push
agentkb sync pull
agentkb sync status

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.2.0.tar.gz (203.2 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.2.0-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentkb-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a760766b114a58af309ed6056a73ec836345988cff6171a32df944598cecb0d6
MD5 85f2755aa7ac3475d84d1a6d9998dfdc
BLAKE2b-256 c03cc5a3502a896b583e49823073c38925a156846a53a0c0b5d5f08f1bbe9b8a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agentkb-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 848777a675d116dfc075da9e7ef3dfc7e70b4d6f958a64915d3d6e1328fd2d3b
MD5 ada7a5713b9c1037de2cdfef703ae792
BLAKE2b-256 814395aad2621b2b67cdb0f2b29cb1a620c7fbb3fb3d53a478b27b88de75e552

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