A persistent, self-learning AI agent system modelled on the human brain. 12 independent OOP agents communicate via async event bus. The brain can search the web, learn new topics, and create its own tools and MCP servers at runtime.
You -> Atlas: /forge a tool that fetches weather from wttr.in for any city
Atlas: Forging tool: a tool that fetches weather from wttr.in for any city
Atlas: Created tool: weather_fetch
You -> Atlas: /forge mcp a server that manages TODO lists in JSON files
Atlas: Created MCP server: mcp_todo_manager (tools: add_todo, list_todos, complete_todo)
You -> Atlas: /learn how to use the Stripe API in Python
Atlas: Learned about 'Stripe API': Stripe provides a Python SDK for...
Key facts: pip install stripe; Use stripe.api_key; Create PaymentIntent...
Tool suggestion: A tool that creates Stripe payment intents
You -> Atlas: /parallel What is Python? | What is Rust? | What is Go?
PARALLEL RESULTS (3 tasks):
[β] p_0 (1.2s): Python is a high-level...
[β] p_1 (1.1s): Rust is a systems programming...
[β] p_2 (0.9s): Go is a statically typed...
| Brain Region | Agent Role | Key Responsibility |
|---|---|---|
| Prefrontal Cortex | Orchestrator | Plans tasks, coordinates all regions |
| Hippocampus | Memory | Vector + SQLite + keyword search, memory graph |
| Amygdala | Safety Filter | Risk evaluation, pattern blocking |
| Cerebellum | Quality + Self-Improve | Reviews, quality trends, recurring issue detection |
| Wernicke's Area | Input Parser | Intent detection, entity extraction |
| Broca's Area | Output Renderer | Terminal formatting, API responses |
| Thalamus | Router + Handoff | Routes messages, agent-to-agent handoff chains |
| Reticular Formation | Scheduler | Priority queue, background task loop |
| Basal Ganglia | Automation | 21 slash commands, skills, macros |
| Anterior Cingulate | Conflict Detector | Detects ambiguity and contradictions |
| Sensory Cortex | Input Processor | Normalizes text, files, URLs |
| Motor Cortex | Tool Executor | Runs all approved tool/plugin calls |
# Docker
docker pull ghcr.io/masterdeepak15/agents:latest
docker run -it -e ANTHROPIC_API_KEY=your_key ghcr.io/masterdeepak15/agents
# Local Python
git clone https://github.com/masterdeepak15/Agents.git
cd Agents
pip install -r requirements.txt
python main.py --provider anthropic| Command | What it does |
|---|---|
/status |
Brain health, all region stats, scheduler, audit, forge |
/plan <goal> |
Create a multi-step execution plan |
/memory |
View memories (vector + SQLite + in-memory) |
/search <query> |
Semantic memory search |
/tools |
List all loaded tools (built-in + plugins + MCP + forged) |
/learn <topic> |
Self-learn from the web |
/learn deep <topic> |
Deep learning with more detail |
/forge <desc> |
Create a new tool at runtime |
/forge mcp <desc> |
Create a new MCP server at runtime |
/parallel t1 | t2 |
Run multiple tasks concurrently |
/reflect |
Brain self-reflection |
/remember <text> |
Store a memory permanently |
/webhook |
View webhook channels |
/schedule |
View scheduled tasks & file watches |
/audit |
View recent audit log |
/quality |
View quality trend + recurring issues |
/export |
Export memories to JSON |
/skills |
List skill library |
/save |
Save memory to disk |
/clear |
Clear working memory |
/quit |
Graceful shutdown |
AgentTerminal/
βββ brain.py β assembles all 12 agents (v2.2)
βββ main.py β CLI entry point
βββ config/brain_config.yaml β all configuration
βββ core/
β βββ base_agent.py β OOP base all agents extend
β βββ context_manager.py β token budget management
β βββ event_bus.py β async pub/sub bus
β βββ providers.py β 7 LLM backends
β βββ mcp_client.py β MCP server connector
β βββ vector_store.py β ChromaDB vector search (v2.1)
β βββ sqlite_store.py β SQLite FTS5 backend (v2.1)
β βββ streaming.py β Token streaming (v2.1)
β βββ scheduler.py β Cron/file watch/tasks (v2.1)
β βββ audit.py β Security audit log (v2.1)
β βββ tool_forge.py β Self-create tools & MCP servers (v2.2)
β βββ self_learn.py β Web search, learn, adapt (v2.2)
β βββ parallel.py β Parallel task pool (v2.2)
β βββ webhook.py β HTTP webhook triggers (v2.2)
βββ agents/ β 12 brain region agents
βββ tools/
β βββ plugin_base.py β BrainPlugin base class
β βββ builtin/skills.py β 10 built-in tools
β βββ plugins/ β auto-discovered plugins
β β βββ browser_tool.py β Playwright browser
β β βββ database_tool.py β SQL queries
β β βββ pdf_tool.py β PDF reader
β β βββ email_tool.py β SMTP/IMAP
β β βββ calendar_tool.py β Calendar events
β β βββ image_gen_tool.py β DALL-E image gen
β βββ mcp_servers/ β Runtime-generated MCP servers (v2.2)
βββ api/
β βββ api_server.py β FastAPI REST (40+ endpoints)
β βββ dashboard.py β Web dashboard + WebSocket
βββ docs/ β documentation
βββ tests/ β unit tests
POST /chat Β· POST /chat/stream Β· POST /plan Β· GET /status Β· POST /reflect
GET /memory Β· GET /memory/search Β· GET /memory/graph/{id} Β· GET /memory/export Β· POST /memory/import Β· POST /memory/decay Β· POST /remember
GET /tools Β· POST /tool/{name} Β· GET /skills Β· POST /skill
POST /forge/tool Β· POST /forge/mcp Β· GET /forge/status
POST /learn Β· POST /learn/url Β· POST /learn/create Β· GET /learn/status
POST /webhook/{channel} Β· POST /webhook Β· GET /webhooks
POST /parallel
GET /scheduler Β· GET /scheduler/tasks Β· POST /scheduler/add Β· POST /scheduler/watch
GET /audit Β· GET /audit/stats Β· POST /auth/token Β· GET /auth/tokens
GET /dashboard Β· WS /ws Β· GET /events
MIT β see LICENSE