Skip to content

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 ​

CapabilityWhat it provides
HotskillsLive-reload skill files, dependency preparation, and eligibility gating via requires frontmatter
SleepSleep-cycle dispatch + resume, daemon progress protocol

Adding a capability ​

  1. Create src/capabilities/<name>/capability.json:

    json
    { "name": "my-feature", "description": "What it does" }
  2. Create src/capabilities/<name>/index.ts:

    typescript
    import { CapabilityApi } from '../capability';
    
    export function register(api: CapabilityApi): void {
      // Register commands, heartbeat tasks, services
      api.registerHeartbeatTask('my-task', async () => { /* ... */ });
    }
  3. Restart bridge — auto-discovered, no wiring needed.

CapabilityApi ​

What a capability can register:

MethodPurpose
registerHeartbeatTask(name, fn)Runs every heartbeat tick (60s)
registerCommand(name, handler)Chat command
registerService(name, service)Background service with start/stop lifecycle
runtimeAccess to SubagentRuntime for spawning agents

Disabling capabilities ​

bash
# ~/.abtars/config/.env
DISABLED_CAPABILITIES=hotskills

Comma-separated names. Disabled capabilities are skipped at discovery — zero overhead.