-
Notifications
You must be signed in to change notification settings - Fork 3
Command Setup
name: agent-brain-setup description: Complete guided setup for Agent Brain (install, config, init, verify) parameters: [] skills:
- configuring-agent-brain
Runs a complete guided setup flow for Agent Brain, taking the user from zero to a fully working installation. This command orchestrates installation, configuration, initialization, and verification steps.
/agent-brain-setup
Run each step in sequence, proceeding only if the previous step succeeds.
agent-brain --version 2>/dev/null || echo "NOT_INSTALLED"If not installed, run /agent-brain-install first.
Check for required environment variables:
echo "OpenAI: ${OPENAI_API_KEY:+SET}"
echo "Anthropic: ${ANTHROPIC_API_KEY:+SET}"If OPENAI_API_KEY is not set, run /agent-brain-config.
agent-brain initCreates .claude/agent-brain/ directory with configuration files.
agent-brain start --daemonStarts the server in background mode.
agent-brain statusConfirm server is healthy and ready.
Display progress through each step with clear status indicators:
Agent Brain Setup
=================
[1/5] Checking installation...
agent-brain-cli: 1.2.0 [OK]
agent-brain-rag: 1.2.0 [OK]
[2/5] Checking API keys...
OPENAI_API_KEY: SET [OK]
ANTHROPIC_API_KEY: SET [OK]
[3/5] Initializing project...
Created: .claude/agent-brain/config.json [OK]
[4/5] Starting server...
Server started on port 49321 [OK]
[5/5] Verifying setup...
Health: healthy [OK]
Documents: 0 (ready to index)
Setup Complete!
===============
Agent Brain is ready to use.
Next steps:
1. Index documents: /agent-brain-index <path>
2. Search: /agent-brain-search "your query"
Quick start:
agent-brain index ./docs
agent-brain query "authentication"
[1/5] Checking installation... FAILED
Agent Brain is not installed.
Running installation...
[Invoke /agent-brain-install]
[2/5] Checking API keys... INCOMPLETE
OPENAI_API_KEY is not set. This is required for search.
Running configuration...
[Invoke /agent-brain-config]
[3/5] Initializing project... FAILED
Error: Permission denied creating .claude/agent-brain/
Solutions:
1. Check directory permissions
2. Ensure you have write access to current directory
3. Try: mkdir -p .claude/agent-brain
[4/5] Starting server... FAILED
Error: Port already in use
Solutions:
1. Check for running instance: agent-brain list
2. Stop existing server: agent-brain stop
3. Clean state: rm -f .claude/agent-brain/runtime.json
4. Retry: agent-brain start --daemon
[5/5] Verifying setup... FAILED
Server started but health check failed.
Diagnostics:
1. Check logs: Check server output
2. Verify API key: Test OpenAI connection
3. Restart: agent-brain stop && agent-brain start --daemon
If setup is interrupted, running /agent-brain-setup again will:
- Skip already-completed steps
- Resume from the failed step
- Complete remaining steps
The setup is idempotent and safe to run multiple times.
- 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