Skip to content

Roadmap

Everything expands behind exit criteria: one user, one channel, one workspace first. Phase scope can move; the exit criteria are the contract.

  • Phase 0, Ka interface validation. Every gap G1..G20 in Ka’s public surface marked confirmed, refuted or changed, with reproductions; the KaPort contract and worker protocol fixed; the contract suite green against the pinned Ka version.

  • M1, the core. ka-agent-core (domain, strict config), ka-agent-store (SQLite, migrations, audit chain), ka-agent-port (the boundary), ka-agent-runtime (sessions, durable queue, single-flight, approvals with deny-on-expiry, budgets, supervisor).

  • M2, the channel and the daemon. Telegram (long polling, allowlist, commands, throttled delivery, approval cards), the admin socket, run / status / chat / doctor.

  • M3, memory and history. Git-backed Markdown memory with provenance and a compiled MEMORY.md (6 KB budget), candidate review (/memory review, accept/reject), /remember, /forget, /history FTS search with per-turn view.

  • M4, the MCP bridge and scheduler. The engine spawns ka-agent __mcp as the kagent server: memory_propose plus notes tools; /remind reminders fire through the normal submission path.

  • M5, grants and connectors. Scope grants on the CLI, http_get and GitHub read tools behind them, SSRF guard for private hosts.

  • M6, external writes. Schema v2 with an intents table; GitHub write tools (issue comments, pull reviews) with intent logging; export and purge CLI.

  • M7, the web UI. Loopback-only, server-rendered, one-shot CLI-issued login: dashboard, history, memory editor, approvals with Telegram parity, audit, intents. Hardened and verified: 401 on every unauthenticated page, single-use tokens, POST-only mutations, escaped output, refusal of oversized requests.

  • M8, the plugin ecosystem. Manifest v1, ed25519-signed archives with TOFU pinning, the bubblewrap sandbox (no network, read-only system, declared secrets only), install/enable lifecycle; plugin tools behind the same grants and intents as first-party tools.

  • M9, Phase 6. The Matrix channel (CS API /sync + /send), the Channel trait with a shared command router and MultiSurface fan-out, identity linking, and ADR-0001: one operator per instance, proven by isolation e2e.

  • M10, ops packaging. systemd user units (Restart=always, rate-limited, ProtectSystem=strict), backup/restore with a restore drill in CI, restart over the admin socket, and doctor v2.

  • M11, P0 features. Cron (fixed-interval recurrence, missed-occupation skipping, claim/re-arm races settled), @references (@file, @dir/, @turn:, @https://), the workspace AGENTS.md, and the calendar digest (no_agent jobs: no engine, no LLM).

  • M12, MVP completion. Portability and first-run: the curl installer, the setup wizard (live key check, timezone, pairing, service, verified first reply), the ka-agent.toml writer (config set, comments preserved, live reload), skills (SKILL.md library with enable-driven provisioning), the Telegram file inbox, idle worker reap, and the ka pins moved to released crates.io =0.3.0.

  • v0.3.x to v0.4.x, the agent-standard layout. Everything under ~/.ka-agent ($KA_AGENT_HOME), per-profile trees, a self-migrating pre-0.3 install, setup <section> re-runs, and the private data tree (0700).

  • Profiles. -p/--profile on every command; profile create/use/list/show/rename/remove; per-profile config, data, web port and service units; one bot token per daemon enforced with advisory locks.

  • v1 redesign P1, v0.5.0, useful on day one. Web search (Tavily, Brave, Bing), external MCP servers (mcp add, server__tool wire names), model fallback (≤ 2 hops), an honest first-contact path, a “you’re live” setup card, rendered Markdown everywhere, and a readable CLI.

  • v1 redesign P2, v0.6.0, phone-first. Streaming replies (Telegram drafts), 👀 receipts, voice-note transcription, memory proposals as one-tap cards, Matrix formatted text, a visible memory budget with proposal screening, and the daily briefing.

  • v1 redesign P3, v0.7.0, control and trust. --json for scripts, cron and approvals from the shell, shell completions, quiet hours, the full recurrence grammar (every weekday at 9, day lists, monthly on the Nth), cron run history with preflight and loop refusal, live /mode with a badge, fewer better prompts (session-scoped allows, opt-in auto-review), the calendar digest in the operator’s zone with RRULE expansion, model-side history recall, profile lifecycle, and log rotation.

  • v1 redesign P4, v0.8.x, polish and reach. The redesigned web panel (card layout, live chat, settings form, usage page), ka-agent update (checksum-verified self-update restarting every profile’s service), ka-agent import (hermes, openclaw, claude, codex), and the DNS-rebinding-safe fetch (resolve, reject private IPs, pin the connection).

  • v0.9.0, foundations. The workspace split into the composition root and a platform IPC seam, the store and runtime split into focused modules, one AgentEvent model in sequenced envelopes, one COMMANDS table driving help, menus and routing, the config key registry (schema, suggestions, hot reload), retention (Store::prune keeps state bounded), a leaner cold start, and the ka pin moved to the ka-harness v0.4.1 git line with the opencode shims deleted.

  • v0.10.0, the assistant. A persona that is not a coding agent (persona.md compiled into IDENTITY.md, /persona), every turn opened with one <ctx> line, daemon-hosted tools behind a thin __mcp relay with an approval profile (effects decide what asks) and the self-protection guard, the assistant tools (remind, send_file, calendar_events, skill_propose, memory file targets), engine settings surfaced (effort, background_model, sandbox, live steering), cron zero-token gates and [SILENT], [[hooks]] operator hooks with the notify/ask local triggers, and /memory log with /memory undo.

  • v0.11.0, surfaces. The inline terminal client (raw mode, editor, status line, completion, history search, cards), web settings from the key registry with tool rows, Telegram draft activity labels, file delivery and skill proposal cards, Matrix streaming with typed turns, reactions and attachments both ways, and one /memory log shared by every surface.

  • v0.12.x, Windows and review fixes. Windows x86_64 end to end: the named-pipe admin endpoint, taskkill /T worker kills, the Task Scheduler service, console terminal chat, Windows update assets and swap, and the PowerShell installer; then the review fixes across channels, terminal, config and doctor; the live models.dev registry merged into ka-agent models with a real-request probe (--probe, doctor --online), and the permission modes renamed to the common vocabulary (ask/accept_edits/allow/readonly, old names parse as aliases); and the operator [grants] surface (per-path allow/ask/deny, the install gate, full access with a silencable advisory) with mode = "allow" composing no sandbox so it truly never asks.

  • v0.13.0, every surface picks. The v2 improvement audit, all 59 findings across the TUI (paste-preserving drafts, Tab cycling, Ctrl-Y yank, Ctrl-E tool expansion, Esc stop, /keys, NO_COLOR), Telegram (captions submit a turn, albums answered once, t.me deep-link pairing, inline video, upload actions, unsupported media named), the web panel (the rewritten route table with /events and bearer-only /api/*, AND history search, per-model usage, task snooze, sidebar nav with live badges), config (grant path CLI, mcp test, language, digest retiming, .bak generations, doctor --fix), and /retry on every surface for rate-limit and network errors, never automatic; plus every hosted vendor merged from the live models.dev registry (a recommended default model per vendor, so ka-agent models <vendor> and the setup picker list real models for groq, xai, mistral, cerebras, moonshot, qwen, together, fireworks, nvidia and zai-plan); and interactive /model, /mode, /effort pickers: bare /model lists providers, /model <provider> its models, /model <n> picks, the terminal completes selectors on Tab (vendors first, the recommended model flagged), and the phone answers the bare commands with inline-keyboard cards.

  • v0.14.0, private conversations and Telegram resilience. /new private on every surface: an incognito conversation records usage but no content (no turn text, no episodes, refused memory/skill/notes proposals and scheduling), media stays in an ephemeral .private-<short-id>/ directory, and the worker runs on a scratch engine home destroyed when the conversation ends and swept at boot (secure_delete + WAL checkpoint, while usage accounting and the audit chain persist); 🕶 marks it in the TUI status line, /status and the web composer. Schema v10 adds sessions.private. Then the phone hardening: the staged turn watchdog (turn_watchdog.silent_secs/abort_secs: one “still working” notice, then an abort like /stop), structured error cards with the engine’s own retryable flag driving every retry affordance (no hard-coded class list), tracked error/notice messages with /cleanup and successful-turn auto-delete, 429-tolerant sends with outbox requeue of undeliverable final chunks, five more picker cards (/approvals, /queue, /forget, /skills, /history), and /update [check] from any channel with the turn-in-flight and writable-install guards.

  • v0.14.0, roles and the web admin. In-process RBAC (ADR-0002, superseding ADR-0001 for multi-subject use): [[role]] entries with a mode ceiling, a per-turn allowlist or disable specs, workspace, USD budget, grants and a command floor; [tools] disable as the profile-wide engine baseline; identity-to-role binding (schema v11) with session-per-role and disjoint memory/notes/workspace/engine-home roots; approvals decided by the admin only; crons fire as their creator role with tools re-clamped; a removed role fails closed (read-only, engine-muted). The web panel became the full admin: profiles and roles created/edited/deleted, identity link/unlink and web pairing (ka-agent pair web --role), MCP add/remove, the tools baseline, keys and secrets, doctor with safe fixes, task create/pause/resume/run, memory review/remember/undo, a theme toggle and live queue badges; ka-agent setup web (bind + public_url) for a TLS relay, with per-role chat-only sessions.

  • v0.14.0, the team edition. One daemon serves one organization (ADR-0003 and ADR-0004, scoped by the research-backed team roadmap docs/design/team-edition-roadmap.md): schema v12 adds users, groups, web sessions, invites, knowledge bases and shared agents, with every identity now resolving identity to user to role and the partition trees moving from roles/ to users/ (the operator keeps the profile root); the multi-session runtime runs one live engine per user under runtime.max_workers (default 8) with LRU idle eviction and per-user crash isolation; approval routing becomes policy-based (self-scope within the user’s grants and quota, admin queue for shared resources, over-quota and escalate hits, re-authorization at execute time with approval.stale); web accounts replace pairing (argon2id /login and /invite, admin-minted invites, ka-agent pair web removed; Telegram and Matrix pairing unchanged); groups carry the model policy (models_allow, models_default) and per-user quotas override role caps; knowledge bases arrive with per-group access, FTS5 search, @kb: references, the kagent__kb_search tool and Notion, Dropbox and git sync; shared agents (viewer/editor/owner) run with /agent <name> while run state stays per user; the Slack (Socket Mode) and Discord (gateway) workplace channels land with DMs as private sessions, mention-gated shared channels under a read-only per-channel account, native approval buttons, files both ways and a shared rate limiter; share-time provenance checks turn_sources before posting to a shared channel (provenance.blocked); and retention knobs (retention.turns_days, retention.attachments_days, 0 keeps forever) join per-user usage views and CSV export. The ka pin moved to the ka-harness v0.7.0 line (247e99e; the duplicate-mcp meta hand fixed upstream, its hide retired), and a member’s session /model pick now applies on submit and queue drain.

  • v0.14.1 through v0.14.4, the November postmortems. Durable delivery inside a prompt cycle: each engine turn’s finish rewrites the queued outbox rows from the whole buffered text, so the answer is durable from the first finish and redelivered after a crash; a refused send marks its row failed and the poll loop retries in-run with 1 s pacing. A reasoning-only reply is never silent: an empty final records the stop word empty, every fresh prompt that finishes empty earns one automatic re-ask (a nudge turn never nudges again), and the give-up notice rides the hardened chunk pipeline, quoting the model’s last reasoning notes. An orphan ask no longer parks the session after an abort: the turn-finish handler denies orphan asks on the turn’s boundary, steer only runs against a live reply, and everything else queues with a queued (#n) notice.

  • v0.14.5, the postmortems as asserts. A cross-machine invariant checker at the four boundary events (ask, turn finished, idle, engine closed): no terminal turn with pending asks, no busy session without a live worker, no claimed turn without a store row, no delivered-empty outbox chunk, no memory/store session-status skew. Always on in debug, opt-in for release via KA_CHECK_INVARIANTS=1; violations surface as internal errors while the daemon keeps serving. Golden edge matrices pin every legal (from, to) pair of the Session, Turn, Approval and Task machines.

  • v0.14.x+ main, the v4 harness-adoption waves (2026-11-19). Planned as the research-backed v4 catalog (docs/design/v4-features.md) and shipped as features 1 to 18: durable allow-rules (/y <id> always with tested shapes, mode-scoped, closing gap G12; ka-agent grant rule check|list|rm), shadow-git checkpoints with code-only /rewind (schema v13 and v14), @turn:/@session: partition checks at expansion plus the new @session: reference, memory candidates as bullet diffs with a dry-run compile impact and rollback-on-failure acceptance, scheduled turns excluded from personal memory (an automation compile keeps machine facts only) with budget, rate-limit and warm-up proposal gates, skill triggers:/paths: frontmatter with turn-scoped tool binding and /skill-doctor usage counts (schema v15), the queue manager (/queue rm|edit|top|up|down|now with a Telegram ↑ row and web routes), bare-interrupt keywords (interrupts), /preset model+mode+effort slots (schema v16), /archive with a partition-safe undo (schema v17), the plan artifact with an operator-armed verify gate and bounded repairs (/plan …, the plan_update tool, schema v18), the webhook ingress with per-trigger secrets, event-id idempotency, caps, a regex filter and a no-memory preflight gate (ADR-0005, schema v19), the opt-in read-only scout child, the committed config JSON Schema with a drift test (config schema --json-schema), doctor --bundle diagnostics, agent commit attribution ([git] identity in the sanitized worker env), cron snapshot-at-creation, the true Ctrl-L repaint, and the rate-limit status badge. The v3 catalog leaders (/watch, vision inbound, context transparency, voice out, /history summarize) and the staged follow-ups (typed grant language, hooks with hash-trust, the full addressable-agent machinery, MCP elicitation) remain unimplemented.

cargo test --workspace is green on Linux and macOS (CI); CI also builds the release binary on Windows. Release tags cut signed-checksum tarballs for four targets (both darwin architectures from one macOS job) plus a Windows zip, each with a Sigstore build-provenance attestation.

After v0.13.0, upstream replaced the shipped v1/v2 design docs with a research-backed v3 feature catalog (docs/design/v3-features.md): two vygr research runs plus first-hand extracts scored eleven candidates, each with a research basis, a concrete adaptation naming files and symbols, and acceptance criteria. Nothing in it is implemented yet. (The successor v4 catalog, docs/design/v4-features.md, is implemented: its features 1 to 18 shipped in November 2026; see Done above.) The leaders:

  • Event-driven watchers (/watch), P0: zero-token checkers that only speak when something changed, built on the cron gate machinery.
  • Vision inbound, P1: photos go to vision-capable models as native image input, no auxiliary-vision detour.
  • Context transparency, P1: compaction counts, a nearly-full warning, and a next-turn cost preview.
  • Voice out (TTS), P1: spoken replies through the existing local-provider plumbing.
  • /history summarize, P1: months of history answered in one turn without polluting stable memory. Separately upstream, a Level 2 state-machine proposal (docs/proposals/cycle-state.md) would consolidate the cycle boundary (admit prompt, work, ask, abort, settle, drain) into one CycleState enum whose Settling entry-actions absorb the v0.14.x fixes (orphan sweep, outbox flush), with SessionStatus becoming its persisted projection. Not implemented; review is requested before events.rs changes.

Rejected on research or policy grounds: a skill marketplace (a demonstrated malware vector), group chats (ADR-0001 fixes one operator per instance), an email connector, Discord/Slack channels, calendar write-back, first-party image generation, and heartbeat-in-chat (isolated crons already fix that pain). Two of those rejections are superseded since: the team roadmap (docs/design/team-edition-roadmap.md §1) revisits the personal-assistant frame for one organization per daemon, and the team edition implements the workplace channels (Slack, Discord) with mention-gated shared channels; the personal-assistant positions still hold for a single operator. Ideas whose essence lives below the KaPort boundary (model wires, strand storage, compaction) went to a ka-harness handoff document, an uncommitted suggestion, not this roadmap.

  • Phase 1 remainder: the 14-day dogfooding window (no stuck session, no duplicated side effect, no unaudited action).
  • Phase 2 remainder: memory retrieval beyond the compiled budget, episode summaries with retention and purge policies, and the labeled recall evaluation (recall@10 at or above 0.8, or the embeddings decision is opened).

First-party connectors beyond HTTP and GitHub (filesystem roots, RSS, more calendar sources); scope refinement and the idempotent intent log under fault injection. A third channel (email, say) now has a proven Channel trait to build on.

Windows x86_64 builds and runs: the admin endpoint is a named pipe, the service is a Task Scheduler entry, the terminal chat uses the console API (line mode where raw mode is unavailable), and logs reads the redirected daemon log. Plugins stay Linux-only (bubblewrap); on macOS everything works except plugins for the same reason.


The authoritative version, with risks and full exit criteria per phase, is SEED.md §10 in the repository.