Capabilities
Self-contained subsystems that register themselves at startup. Add features without touching core bridge code.
How it works
On boot, capabilities register from a generated registry (built at bundle time from each capability's capability.json manifest plus its register(api) entrypoint). The parallel boot graph starts them once their dependencies resolve.
Built-in capabilities
| Capability | What it provides |
|---|---|
| Hotskills | Live-reload skill files, dependency preparation, and eligibility gating via requires frontmatter |
| Sleep | Sleep-cycle dispatch + resume, daemon progress protocol |
Adding a capability
Create
src/capabilities/<name>/capability.json:json{ "name": "my-feature", "description": "What it does" }Create
src/capabilities/<name>/index.ts:typescriptimport { CapabilityApi } from '../capability'; export function register(api: CapabilityApi): void { // Register commands, heartbeat tasks, services api.registerHeartbeatTask('my-task', async () => { /* ... */ }); }Restart bridge — auto-discovered, no wiring needed.
CapabilityApi
What a capability can register:
| Method | Purpose |
|---|---|
registerHeartbeatTask(name, fn) | Runs every heartbeat tick (60s) |
registerCommand(name, handler) | Chat command |
registerService(name, service) | Background service with start/stop lifecycle |
runtime | Access to SubagentRuntime for spawning agents |
Disabling capabilities
bash
# ~/.abtars/config/.env
DISABLED_CAPABILITIES=hotskillsComma-separated names. Disabled capabilities are skipped at discovery — zero overhead.