Meet the latest kid on the block. An agentic framework designed to survive — and do the job.
abTARS is an autonomous AI agent that runs 24/7 on your hardware. It talks to you via Telegram, Discord, or IRC. It remembers everything. It recovers from failures without intervention. It coordinates with peer instances across machines. Your hardware, your rules, zero cloud dependency.
Each layer builds on the one below it — lower layers work without the higher ones. Body boots, connects, and protects itself with nothing else running. Tribe — the social layer — needs all four below it.
┌─────────────────────────────────────────────┐
│ Tribe Peer transport, Gossip, A2A, │
│ Agent API, Agent Swarm │
├─────────────────────────────────────────────┤
│ Soul abmind, Soul bundle, Sleep, │
│ Memory IPC, Context assembly │
├─────────────────────────────────────────────┤
│ Brain Model transport, Pipeline, Spin, │
│ Sessions, Tools, Skills, Kanban, │
│ Self-Healer, Pi integration │
├─────────────────────────────────────────────┤
│ Heart Heartbeat, Cron queue, │
│ Health monitoring │
├─────────────────────────────────────────────┤
│ Body Platforms (Telegram, Discord, │
│ IRC), Dashboard, CLI, │
│ Security/Trust, ActionGate, │
│ Doctor, Watchdog, Boot, Config │
└─────────────────────────────────────────────┘
The same three security pillars are enforced at every layer, top to bottom:
- NATO-style memory classification (Soul) — 4 tiers (UNCLASSIFIED → SECRET), role-gated access
- Encryption at rest (Soul) — AES-256 on memory database, derived key from master passphrase
- Secrets vault (Body) — isolated directory, 600 perms, never exposed to model context
- Signed peer comms (Tribe) — Ed25519 digital signatures on inter-agent channels
- Injection scanning (Tribe) — untrusted peer payloads scanned before execution
- Peer trust levels (Tribe) — trust=0 (full scan + sandbox) to trust=3 (direct execution)
- Memory contradiction detection (Soul) — old facts auto-expire when corrected
- Atomic state (Body/Heart) — crash-safe writes, self-healing lock files, no corrupt state survives
- Doctor (Body) — validates PIDs, DB integrity, FTS health, permissions, TLS identity across all five layers
- Single source of truth (Body) — unified bridge.lock, never deleted, always consistent
- 3-legged supervision (Body) — watchdog → bridge, OS supervisor → watchdog, circuit breaker → rollback
- Auto-rollback (Body) — bad deploy detected in ~30s, previous version restored automatically
- Self-healing (Brain) — corrupt/missing state files recreated, bridge respawned without intervention
- Stress-tested — kill watchdog, kill bridge, corrupt state, deploy garbage — recovers every time
- Darkwake-aware (Heart) — no false kills during sleep, correct resume classification
One agent is useful. A swarm is unstoppable. abTARS instances discover each other via signed gossip, delegate work by capability and load, transfer artifacts, and deliver results via callbacks — no master, no single point of failure.
- Multi-instance — abTARS instances discover each other, delegate work, share results
- Gossip health — UDP broadcast (HMAC-signed), load-based routing
- Capability discovery — auto-detect what each peer can do, route accordingly
- Artifact transfer — files flow between peers inline or via S3
- Async delegation — fire tasks at peers, get callbacks when done
- Orc/Worker delegation — a coordinating agent breaks work down and fans it out across the swarm
abTARS integrates Pi as a symbiotic peer, not a dependency — each runs standalone, runtime discovery bridges them. Additive and reversible: if a Pi package breaks or is absent, abTARS keeps working unchanged.
- Provider engine (L1 motor) — Pi's
pi-aiunlocks ~36 model providers and prompt caching on thepi-airoute - Terminal face — Pi's TUI gives abTARS a terminal interface (
abtars tui) - Supervised coding agent — Pi's coding agent runs complex coding tasks as a supervised subprocess (
/pi run) - Zero coupling — no npm dependency either direction; emergency execution is a separate ACP hailMary path owned by #1468
You (Telegram / Discord / IRC / API client)
│
▼
abTARS (bridge)
├── abmind (Soul — memory, in-process, multi-layer recall, encrypted)
├── Skills (core + self-authored during sleep + downloadable)
├── Tools (browse, bash, MCP, peer_ask)
├── Tasks (cron scheduler + retry + DoD checks)
├── Agent Swarm (Tribe — async background sessions, Orc/Worker delegation)
│
├── kiro-cli → Claude, DeepSeek, MiniMax, Qwen (free tier)
├── gemini-cli → Gemini 2.5 Pro/Flash (free tier)
├── pi-ai route → ollama, OpenRouter, any OpenAI-compatible, Pi's pi-ai (~36 providers)
├── Pi → TUI face, supervised coding agent
│
└── Peer Network (Tribe — gossip + HTTP delegation + callbacks)
| Transport | Providers |
|---|---|
| ACP (recommended) | kiro-cli, gemini-cli |
| pi-ai route | ollama, OpenRouter, any OpenAI-compatible endpoint, Pi's pi-ai (~36 providers) |
| Hooks (standalone) | abmind lifecycle hooks on any CLI agent |
- Node.js 22+
- A Telegram bot token (Discord/IRC optional)
- At least one model provider
Optional: ollama + nomic-embed-text for memory embeddings.
- Installation
- Configuration
- CLI Reference
- Memory System (abmind)
- Skills & Extensions
- Pi Integration
- Deployment & Supervision
- Resilience & Stress Tests
Full docs: aksika.github.io/abtars
- 2762 tests (abtars) + 1149 tests (abmind)
- 8 stress-tested failure scenarios with verified auto-recovery
- 5 agent types (professor, dreamy, browsie, coding, cron)
- 5 architectural layers (Body, Heart, Brain, Soul, Tribe)
- ~36 model providers available via Pi's
pi-aiengine, on top of the always-available hand-rolled floor - 3-legged supervision stack (watchdog, OS supervisor, circuit breaker)
- 3 platform adapters + OpenAI-compatible API
- 12-step nightly memory maintenance
git clone https://github.com/aksika/abtars.git
cd abtars && npm install && npm run build
npm test- Discord: Join
- GitHub: aksika/abtars · aksika/abmind
Apache-2.0