ka agent
ka-agent v0.14.5Resident daemon on KaRust, MIT

Always awake.Never unsupervised.

Terminal coding agents vanish when you close the lid. ka agent is the living resident daemon that stays on your machine: holding git-backed memory, running schedules, and reaching you on Telegram, Matrix, Slack, or Discord while supervising unmodified Ka engines on demand.

AKH · LIVE
git memory · 6 KB
fail-closed approvals
6 surfaces
KaPort workers

A day with a resident daemon

Switch the clock to see what you touch and what stays underneath.

Click any hour or decision button
Surface: Telegram (paired)awaiting approval
Draft the v0.3 release notes from commits since v0.2 and run the workspace tests.
approval #4c8 (bash)expires in 14:52

$ cargo test --workspace

Decide this card. Silence on expiry denies automatically.

Underneath in ka-agent daemon

WORKER SUPERVISIONka worker pid 4812 · mode=ask · isolated HOME
SAFETY NETpending ask #4c8 · shadow-git arms on Allow
AUDIT & STORE (SQLITE V19)sess_8f3 · strand s91c · hash chain verified
uptime 6d 14h1 daemon = full continuity

Anatomy of a living agent

One mind, supervised hands.

Instead of bloating a coding tool into a background server, ka agent splits the soul cleanly. Egyptian mythology gives the boundary its names:

Bathe mobile personality

The resident daemon. Holds identity, git-backed memory, schedules, and six surfaces. Moves between your phone and your desk while laptops sleep.

KaPort seam (1 crate, CI-gated)
Ka
the vital essence

The unmodified coding engine. Spawned per session in an isolated HOME with a security overlay, reaped when idle, and never given daemon code.

AkhBa + live Ka = continuity

The living union: persistent memory and presence bound to supervised engines, acting in the world only under your explicit approvals.

Workspace architecture9 Rust crates · zero unsafe
Surfaces→ka-agent daemon→KaPort→Ka worker

Daemon capabilities return to the engine as kagent__* MCP tools under the same grants and audit chain.

apps/ka-agentCLI binary: setup, chat, run, dashboard, pair, model, cron, grant, user, kb, plugin, service, doctor
ka-agent-coreDomain types, state machines, strict ka-agent.toml config (no I/O)
ka-agent-portKaPort trait and worker protocol: the only crate allowed to import ka-*
ka-agent-storeSQLite schema v19: sessions, users, groups, rules, checkpoints, plans, triggers, audit chain
ka-agent-runtimePer-user sessions, bounded worker pool, queue, approvals, budgets, supervisor, scheduler
ka-agent-memoryGit-backed Markdown memory, persona, and compiled MEMORY.md (6 KB budget)
ka-agent-channelsTelegram, Matrix, Slack, Discord, MCP bridge, grants, secrets, KB sync
ka-agent-pluginsManifest v1, ed25519 + TOFU verification, bubblewrap sandbox per call (Linux)
ka-agent-webLoopback-only HTML panel (127.0.0.1:8480), argon2 accounts, live SSE chat
CI gate check-ka-deps.sh enforces the seam.Read architecture contracts

Trust, memory, and reach

Engineered to stay on without asking for blind trust.

Every claim below is live in the repository today: fail-closed approvals, shadow-git rewind, git-backed Markdown memory, zero-token schedules, and team isolation.

Interactive boundary probeclick an action to inspect
Approval card + shadow-git checkpointlayer: runtime approvals

In ask mode, bash execution raises a TTL card on every surface. Silence denies. Allowing it snapshots the workspace first so /rewind can undo it.

audit: approval.decide + checkpoint.saved

Forwarded via KaPort

prompt · answer · abort · set_mode · set_model · set_name · set_effort · steer · undo_file · compact

Never reachable from channels

shell · set_feature · set_sandbox · save_api_key · save_settings · engine-side "always"

Memory ledger (git)4.1 / 6.0 KB
compiled MEMORY.md budget68% used

$ ka-agent memory log

a83e1f memory: accept mem_1a2b (preferences.md)

9c4d02 memory: forget mem_0e11 (facts.md)

4b12e0 memory: accept mem_0d9a (conventions.md)

Nothing enters stable memory without your act. Model proposals wait as diffs in /memory review, /memory undo reverts the last commit, and /new private wipes incognito sessions with SQLite secure_delete.

Skills (SKILL.md) stay plain text with triggers: and paths:, never code.

01 · Surfaces and voice

Six surfaces, one stream

Inline terminal client with Tab completion and live cards; Telegram with streaming drafts, voice transcription, and file inbox; Matrix; Slack and Discord; plus a loopback web panel at 127.0.0.1:8480.

02 · Time and autonomy

Quiet until something changes

Natural-language /remind and /cron with zero-token --if gates, 0-token ICS calendar digests, webhook ingress with preflight triage, /plan verify loops, and opt-in read-only scout.

03 · Solo to 15-person team

One binary, real hygiene

Team edition (v0.14.0) adds argon2 accounts, roles, per-group model policies, and Notion, Dropbox, or git knowledge bases. Linux plugins run ed25519-signed inside per-call bubblewrap sandboxes. service install, nightly backups, and doctor --bundle ship built in.

Wake your daemon

Up and answering in three minutes.

Prebuilt binaries for Linux, macOS, and Windows x86_64. Nothing is written until you confirm in the wizard.

  1. 01 · Drop the binary

    Installs ka-agent to ~/.local/bin with pinned Ka engine crates.

  2. 02 · Live key check and pairing

    Verifies your model key live, detects your timezone, and pairs Telegram or Matrix via one-time code.

  3. 03 · Background service + first reply

    Installs systemd, launchd, or Task Scheduler and verifies a real first turn.

$ curl -fsSL https://ka-agent.com/install.sh | sh

$ ka-agent # guided first-run wizard

$ ka-agent dashboard # loopback control panel (127.0.0.1:8480)

Switching from Hermes, OpenClaw, Claude, or Codex?

Imported memories arrive as reviewable candidates, never silently trusted.

ka-agent import claude --dry-run

Installer knobs: KA_AGENT_INSTALL_DIR, KA_AGENT_NO_SETUP=1, KA_AGENT_INSTALL_FROM. Full installation guide.

Release ledger

Past the MVP, before 1.0.

Currently v0.14.5 in active development. CI builds and tests Linux and macOS, and cuts signed Windows x86_64 zips (plugins stay Linux-only).

Read full roadmap and exit criteria

Shipped today

  • Durable SQLite queue (v19), single-flight turns, backoff supervisor, idle worker reap
  • Expiring approvals, deny-on-expiry, durable allow-rules, shadow-git /rewind, __guard
  • Telegram, Matrix, Slack, Discord, inline terminal TUI, loopback web control panel
  • Git-backed Markdown memory (6 KB budget), /memory review & undo, /history FTS5, /new private
  • Natural-language /remind and /cron, zero-token --if gates, 0-token ICS digest, webhooks + preflight
  • Team edition (v0.14.0): users, roles, groups, Notion/Dropbox/git KBs, Linux bubblewrap plugins

Upcoming (v3 catalog)

  • Event-driven /watch checkers that only speak when state changes
  • Memory retrieval beyond the 6 KB compiled budget
  • Native vision inbound, voice out (TTS), and context transparency
  • More first-party connectors (RSS, calendar sources, filesystem roots)