Skip to content

Introduction

ka agent is a resident assistant on the Ka coding engine: one always-on daemon per operator that keeps working across sessions and channels, with durable memory, scheduled tasks, approvals, Telegram and Matrix. All model reasoning and tool execution stay in Ka engines that ka agent starts, watches, and stops.

Status: v0.14.5, early development. The MVP is done and the v1 redesign through v0.13.0 is implemented: useful on day one, phone-first, control and trust, polish and reach (v0.5.0 through v0.8.x), then foundations, the assistant, surfaces, Windows, and interactive pickers on every surface (v0.9.0 through v0.13.0). v0.14.0 adds the team edition (one daemon, one organization), and v0.14.1 through v0.14.5 harden the turn cycle: durable answer delivery, empty-final recovery, and invariant checks. Features, commands, config, and behavior may still change without notice. Not ready for production use.

Ka lives for one terminal session. When the session ends, nothing keeps working on your behalf: nothing remembers you across projects, answers from your phone, runs at 07:00, or waits for your approval while you are away.

ka agent is the missing layer: continuity with control. An assistant that persists and acts across time and channels, whose memory, permissions and external actions you can inspect, edit and veto.

  • Ka stays lightweight. ka agent never adds code, crates, features or dependencies to the Ka repository. Ka enforces this on its side with a dependency allowlist gate.
  • ka agent is optional. Ka keeps working exactly as it does without ka agent installed; ka agent works against unmodified, released Ka versions.
  • You control memory, permissions and actions. Stable memory is plain Markdown you can read and edit. Every grant is explicit and revocable. Every action with external effects is approved, logged and auditable. Nothing leaves the machine except model API calls and the channels you configure.
  • Fail closed and boring. Unanswered approvals deny. Unknown state is reported, never guessed. Interrupted work is never auto-replayed.
  • Small and verifiable first. One user, one channel, one workspace, then expand only behind exit criteria.
Ka (engine) ka agent (resident layer)
What Turn engine, tools, permissions, providers, strands; CLI/TUI Daemon, channels, memory, scheduler, approvals
Lifetime One engine per session, while a surface holds it Always on; engines are started and stopped by ka agent
State Strand files (append-only JSONL) State database, memory files, channel bindings
Ships as ka binary + crates Separate repository and binary (ka-agent)

Everything an operator touches day to day: install and a guided first run, chat on the console as a live terminal client (status line, Tab completion including model selectors, history search, editor, y/n/s approval cards), interactive /model · /mode · /effort pickers on every surface (bare commands on the phone answer with inline-keyboard cards), Telegram and Matrix (one-time-code pairing, file inbox, streaming replies, voice notes), durable sessions with resume and private conversations (/new private: usage recorded, no content kept), roles for linked identities (several people, one bot; ADR-0002), expiring approvals with an audit chain, git-backed Markdown memory with proposal cards, a candidates review, and /memory undo, /history search (for you and for the model), reminders and cron in your own words with zero-token gates and quiet hours, daily briefing, calendar digests, @references, skills with one-tap proposals, a persona of its own, /effort, a background model, /steer live steering, and /retry after a failed or interrupted turn (never automatic), web search, external MCP servers, model fallback, a live model registry merged from models.dev with a real-request probe, kagent__* connector tools behind grants (daemon-hosted behind a __mcp relay, plus remind, send_file, calendar_events, skill_propose), [[hooks]] operator hooks and the notify/ask local triggers, profiles, a loopback web control panel with live chat, sandboxed third-party plugins, a background service with backups, a support-grade doctor, and self-update with ka-agent import to switch in from other agents. Windows x86_64 builds and runs (named-pipe admin endpoint, Task Scheduler service, console terminal chat); plugins stay Linux-only.

Shipped in v0.14.0: the team edition, one daemon for one organization: users and groups with argon2 panel accounts, concurrent per-user sessions, policy-routed approvals, knowledge bases with Notion, Dropbox or git sync, shared agents, and the Slack and Discord channels.

Coming next: memory retrieval beyond the compiled budget, more first-party connectors, and the research-backed v3 catalog (event-driven watchers, vision inbound, context transparency, voice out, /history summarize; nothing implemented yet). See the roadmap.

Install

The curl installer, the setup wizard, and building from source.

Quickstart

Your first resident session: local console chat, then Telegram.

Architecture

The crates, the KaPort boundary, and the worker supervision model.

Approvals

TTLs, deny-on-expiry, the audit chain, and budgets.