Skip to main content

Agent Brain CLI

Command-line interface for managing AI agent memory and knowledge retrieval with the Agent Brain RAG server.

Agent Brain (formerly doc-serve) is an intelligent document indexing and semantic search system designed to give AI agents long-term memory. This CLI provides a convenient way to manage your Agent Brain server and knowledge base.

PyPI version Python 3.10+ License: MIT

Why Agent Brain?

AI agents need persistent memory to be truly useful. Agent Brain provides the retrieval infrastructure that enables context-aware, knowledge-grounded AI interactions.

Search Capabilities

Search Type Description Best For
Semantic Search Natural language queries using OpenAI embeddings Conceptual questions, related content
Keyword Search (BM25) Traditional keyword matching with TF-IDF ranking Exact matches, technical terms
Hybrid Search Combines vector + BM25 approaches General-purpose queries
GraphRAG Knowledge graph retrieval Understanding relationships

Installation

pip install agent-brain-cli

Quick Start

agent-brain init          # Initialize project
agent-brain start         # Start server
agent-brain index ./docs  # Index documents
agent-brain query "search term"

Note: The legacy command doc-svr-ctl is still available but deprecated. Please use agent-brain for new installations.

Development Installation

cd agent-brain-cli
poetry install

Usage

# Check server status
agent-brain status

# Search documents
agent-brain query "how to use python"

# Index documents from a folder
agent-brain index ./docs

# Reset/clear the index
agent-brain reset --yes

Configuration

Set the server URL via environment variable:

export AGENT_BRAIN_URL=http://localhost:8000

Or use the --url flag:

agent-brain --url http://localhost:8000 status

Note: The legacy environment variable DOC_SERVE_URL is still supported for backwards compatibility.

Commands

Server Management

Command Description
init Initialize project for Agent Brain (creates .claude/agent-brain/)
start Start the Agent Brain server for current project
stop Stop the running server
list List all running Agent Brain instances
status Check server health and indexing status

Data Management

Command Description
query Search indexed documents
index Start indexing documents from a folder
reset Clear all indexed documents

Options

All commands support:

  • --url - Server URL (or AGENT_BRAIN_URL / DOC_SERVE_URL env var)
  • --json - Output as JSON for scripting

Example Workflow

# 1. Initialize a new project
cd my-project
agent-brain init

# 2. Start the server
agent-brain start

# 3. Index your documentation
agent-brain index ./docs ./src

# 4. Query your knowledge base
agent-brain query "How does authentication work?"

# 5. Stop when done
agent-brain stop

Documentation

Release Information

Related Packages

License

MIT

Download files

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

Source Distribution

agent_brain_cli-10.6.0.tar.gz (99.6 kB view details)

Uploaded Source

Built Distribution

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

agent_brain_cli-10.6.0-py3-none-any.whl (127.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_brain_cli-10.6.0.tar.gz.

File metadata

  • Download URL: agent_brain_cli-10.6.0.tar.gz
  • Upload date:
  • Size: 99.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_brain_cli-10.6.0.tar.gz
Algorithm Hash digest
SHA256 25435987d7fbe8d30d875c06574df3814449ca1efdbd025f3f1aff2f96858863
MD5 49f3ec7d965a75b2a7ad72754623c7e7
BLAKE2b-256 17fc156c297ab92b083b5e34093b77f039e7fe3e6c4bef5d6b71e17cb0d201f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_brain_cli-10.6.0.tar.gz:

Publisher: publish-to-pypi.yml on SpillwaveSolutions/agent-brain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_brain_cli-10.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_brain_cli-10.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e719e2c69ac4f59a4bef1fc9edfffe252a99a991110f2e227a7a9efaa4af375
MD5 0812f0c29dd352a097d983bca4768b6c
BLAKE2b-256 c328e10a00fe752d4767bf1e59e4aad7712dde681bddf5a0b272c2de00980b37

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_brain_cli-10.6.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on SpillwaveSolutions/agent-brain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

10.7.0

2 files

This release

10.6.0 This release

2 files

10.5.1

2 files

10.5.0

2 files

10.4.0

2 files

10.3.2

2 files

10.3.1

2 files

10.3.0

2 files

10.2.1

2 files

10.2.0

2 files

10.1.2

2 files

10.0.7

2 files

10.0.6

2 files

10.0.5

2 files

10.0.4

2 files

10.0.3

2 files

10.0.2

2 files

10.0.1

2 files

10.0.0

2 files

9.6.0

2 files

9.5.0

2 files

9.4.1

2 files

9.4.0

2 files

9.3.0

2 files

9.2.0

2 files

9.0.0

2 files

8.0.0

2 files

7.0.0

2 files

6.0.3

2 files

6.0.1

2 files

6.0.0

2 files

5.0.0

2 files

4.0.0

2 files

3.0.0

2 files

2.0.0

2 files

1.2.0

2 files

1.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page