-
Notifications
You must be signed in to change notification settings - Fork 2
Command Init
name: agent-brain-init description: Initialize Agent Brain for the current project parameters: [] skills:
- configuring-agent-brain
Initializes the current project for Agent Brain by creating the necessary configuration directory and files. This sets up per-project isolation, allowing each project to have its own Agent Brain instance with separate configuration and data.
/agent-brain-init
agent-brain initThis creates the .claude/agent-brain/ directory structure in the current project.
ls -la .claude/agent-brain/Agent Brain Initialization
==========================
Initializing Agent Brain for current project...
Running: agent-brain init
Created directory structure:
.claude/agent-brain/
config.json - Project configuration
chroma_db/ - Vector store (created on first index)
bm25_index/ - Keyword index (created on first index)
Project initialized successfully!
Configuration file: .claude/agent-brain/config.json
{
"project_name": "my-project",
"created_at": "2025-01-31T12:00:00Z",
"mode": "project"
}
Next steps:
1. Start server: agent-brain start --daemon
2. Index documents: agent-brain index ./docs
3. Search: agent-brain query "your query"
The initialization creates the following structure:
.claude/
agent-brain/
config.json # Project configuration
runtime.json # Server state (created on start)
chroma_db/ # ChromaDB vector store (created on index)
bm25_index/ # BM25 keyword index (created on index)
Contains project-specific settings:
{
"project_name": "my-project",
"created_at": "2025-01-31T12:00:00Z",
"mode": "project",
"settings": {
"embedding_model": "text-embedding-3-large",
"chunk_size": 512,
"chunk_overlap": 50
}
}Created when server starts, contains:
{
"port": 49321,
"pid": 12345,
"started_at": "2025-01-31T12:00:00Z",
"state_dir": ".claude/agent-brain"
}Project already initialized.
Existing configuration found at: .claude/agent-brain/config.json
Options:
- Continue using existing configuration
- Reset with: rm -rf .claude/agent-brain && agent-brain init
- Check status: agent-brain status
Error: Cannot create directory .claude/agent-brain/
Permission denied.
Solutions:
1. Check directory permissions: ls -la .
2. Ensure write access to current directory
3. Create manually: mkdir -p .claude/agent-brain
4. Check if .claude exists and is writable
Warning: No git repository or project markers found.
Agent Brain will initialize here, but consider:
1. Navigate to your project root first
2. Initialize git: git init
3. Then run: agent-brain init
Error: Cannot create .claude directory
The parent directory may not exist or is not writable.
Check:
1. Current directory exists: pwd
2. You have write permissions: ls -la .
3. Disk is not full: df -h .
To completely reset a project's Agent Brain configuration:
# Stop server if running
agent-brain stop
# Remove existing configuration
rm -rf .claude/agent-brain
# Re-initialize
agent-brain initWarning: This deletes all indexed documents. You will need to re-index after re-initialization.
Each project should be initialized separately. Agent Brain uses the .claude/agent-brain/ directory to isolate:
- Configuration settings
- Vector store data
- BM25 index data
- Server runtime state
This allows running multiple Agent Brain instances for different projects simultaneously, each on its own port.
- Design-Architecture-Overview
- Design-Query-Architecture
- Design-Storage-Architecture
- Design-Class-Diagrams
- GraphRAG-Guide
- Agent-Skill-Hybrid-Search-Guide
- Agent-Skill-Graph-Search-Guide
- Agent-Skill-Vector-Search-Guide
- Agent-Skill-BM25-Search-Guide
Search
Server
Setup
- Pluggable-Providers-Spec
- GraphRAG-Integration-Spec
- Agent-Brain-Plugin-Spec
- Multi-Instance-Architecture-Spec