AAnvio
Changelog

Changelog

Release history for Anvio.

83 min read

Full release history for Anvio, condensed from CHANGELOG.md in the source repository. The format follows Keep a Changelog and the project uses Semantic Versioning. Newest release first.

Current version

Anvio is currently at v2.11.0 (2026-10-26).

Unreleased

v2.11.0 — 2026-10-26

Hardening release: code-quality remediation, end-to-end verification with 18 regression fixes, and documentation rewritten around Anvio as an extensible multi-agent platform.

Security

  • Learned skills are no longer published automatically (#112) — a successful tool call could turn raw tool output (e.g. a fetched web page carrying prompt injection) into a live skill under skills/. Tool-use drafts now stay in skills/_drafts/ unless the soul sets evolution.requireApproval: false; an agent with no soul never auto-publishes. The model-less fallback quotes tool output as untrusted data instead of copying it into instructions.
  • Saving a soul no longer drops its policy (#112) — SoulService.create / importFromMarkdown rewrote SOUL.md without its frontmatter or the sections soul-gate reads, which turned learning back on (allowAutoUpdate, requireApproval) and removed ## Approvers / ## Mandate. Frontmatter and unrecognised sections are now kept.
  • JWT auth refuses to start without JWT_SECRET (#117) — the hard-coded dev-secret fallback is gone; HS256 is pinned.
  • Egress guard for model-chosen URLs (#117) — network tools block loopback, private and metadata addresses, re-check redirects and cap response size. tools/gateway.yaml gains an optional network block (allowHosts, allowPrivateNetwork).
  • Sandboxed code no longer sees host secrets (#117) — environment allow-list, process-group kill and output caps. Opt back in per variable with ANVIO_SANDBOX_ENV_PASSTHROUGH.
  • Skill conditions use a restricted evaluator (#117) instead of new Function; the in-process execute_code fallback is removed. Path traversal fixed in storage, tool builtins, /draft /discard /promote and the skill catalog.
  • An invalid anvio.yaml no longer falls back to defaults (#118) — a typo used to boot the platform with default settings, auth disabled included. Boot now fails with the file path and reason; a missing file still uses defaults.
  • cronjob create YAML injection (#118) — the tool built automation YAML by string templating, so model-supplied text could rewrite the trigger. It now validates the slug, cron expression and agent and serialises a parsed definition.
  • HTTP gateway input limits (#118) — request bodies are capped at 1 MB (413), malformed JSON returns 400 instead of hanging, and messages without content are rejected.
  • pnpm audit --prod: 2 critical / 12 high → 0 critical / 1 high (zod 3, deferred per ADR-0012); CI now runs an audit gate (#117).

Fixed

  • Duplicate learned facts (#112) — the learning loop runs after every turn with the whole transcript and re-stored every fact each time. Facts are now deduplicated against what is already stored, text shaped like a tool result is ignored, and facts render in the soul prompt once, labelled as unverified notes.
  • One channel could take the gateway down (#112) — ChannelHub.startAll used Promise.all, so one adapter failing to start (e.g. an expired token) failed the whole boot. Failures are now logged and returned as ChannelStartFailure[]; the other channels keep running.
  • A bad socket frame could kill the process (#112) — Slack, Discord and Mattermost socket handlers left rejections unhandled, and Node exits on those. Handlers are now guarded, and the gateway, worker, API and CLI log unhandled rejections instead of exiting.
  • Session-end learning ignored the agent's soul (#112) — it read only defaultSoul, so an agent with evolution.allowAutoUpdate: false still had facts and drafts captured. Both learning hooks now use the agent's soul, then the default.
  • Unbounded recursive delegation (#118) — an agent delegating to an agent that delegates again created thousands of nested sessions. Delegation depth is now limited (default 3, ANVIO_MAX_DELEGATION_DEPTH) and mixture_of_agents fans out to at most 8 agents.
  • MCP stdio did not work with official MCP servers (#118) — the client used Content-Length framing; the MCP stdio transport is newline-delimited JSON. Now NDJSON, still accepting Content-Length frames. A missing MCP binary no longer raises an unhandled spawn ENOENT, request timers no longer keep the process alive, and MCP server processes are stopped on platform.shutdown().
  • POST /api/sessions/:id/messages waited for the whole turn (#118) before returning 202; it now returns immediately. WebSocket messages likewise no longer block the socket.
  • Lost or stuck turns (#118) — an agent with broken frontmatter made its turn vanish with no reply; the run now fails visibly (failed status, AGENT_RUN_FAILED, a "Task Failed" notice). Sessions left in calling_model by a crash are marked failed with metadata.interruptedAt on the next start.
  • Cron schedules ignored timezone (#118) and ran in host-local time. One failing automation no longer aborts the rest of a tick, and one malformed automation file no longer aborts boot.
  • Skill parse errors reported as "Skill not found" (#118) — the real YAML error is now kept (VALIDATION_ERROR).
  • Every channel message read every session file (#118) — thread lookup is now indexed; at 500 sessions throughput rose from 69.6 to 89.9 turns/s and p50 latency fell from 6.97 s to 4.35 s (scripted model, Level 1).
  • Concurrent turns on one session overwrote each other's history (#117) — turns are now serialised per session and capped globally (ANVIO_MAX_CONCURRENT_RUNS, default 8); Telegram no longer blocks across chats.
  • Approval resume re-ran executed tools (#117) — checkpoints keep executed tool results (validated v2 checkpoints; v1 still readable). Cancellation now reaches providers and tools, and a model idle timeout ends hung calls (ANVIO_MODEL_IDLE_TIMEOUT_MS, default 300 s).
  • Slack and Discord reconnect lifecycle (#117) — no reconnect after stop, backoff, event dedupe, Discord RESUME and Slack apps.connections.open. Not yet verified against live workspaces.
  • Shutdown (#117) — ordered, time-boxed shutdown on SIGINT/SIGTERM; atomic file writes.
  • Workspace trash (#113) keeps both entries when a slug is trashed twice in the same millisecond.

Changed

  • Behavior change: (#112) evolution.requireApproval now defaults to true. Souls that relied on auto-published tool-use skills must set requireApproval: false.
  • Behavior change: JWT auth fails boot without JWT_SECRET; network tools refuse private targets unless listed in network.allowHosts; an invalid tools/gateway.yaml or anvio.yaml fails boot; sandboxed code no longer inherits the host environment (#117, #118).
  • Documentation rewritten (#119) — new root README describing Anvio as an extensible multi-agent platform (ADR-0038); docs/README.md index, consolidated docs/ROADMAP.md, ADR index with reconciled statuses; obsolete plans and gap registers moved to docs/_detached/ and excluded from AI coding-agent context; the vNext plan of record moved to docs/plans/.
  • CLI split (#117) — apps/cli/src/main.ts 2,883 → 262 lines; lint runs on every package; CI tests Node 22 and 24.

Added

  • Phase 2 audit — docs/audit/phase-2/ (11 reports, Indonesian): reconciliation of Phase 1 findings, soul and identity, planning, learning loop, skill lifecycle, channel inventory and error handling, and a unified backlog (T-001…T-045).
  • Audits — phase 3 (A2A and plugin system) and phase 4 (slaude comparison) (#113); code-quality audit (#116) with its remediation reports (#117); post-refactoring verification and production-readiness reports (#118).
  • End-to-end suite tests/integration/e2e/ (#118) — 43 tests against the real platform with a scripted model: workflows, gateway HTTP/WebSocket, an official-SDK MCP server over stdio with approval, scheduler, failure injection and load (ANVIO_LOAD_* profiles).
  • ADR-0038 (positioning) and ADR-0039 (in-house MCP client, proposed) (#119).

Known issues

  • MCP stdio servers and hook scripts inherit the full process environment (ROADMAP T-047).
  • The A2A client does not send configured remote credentials, and A2A cancel does not stop the run (T-048, T-051).
  • Shutdown does not drain in-flight turns; messages queued behind the concurrency cap are lost (R-01).

v2.10.0 — 2026-10-23

Agent provider precedence fixed, routing is now opt-in, Codex CLI bundled.

Fixed

  • Failed turns wiped session history (#111) — the local runtime overwrote short-term memory with only the new user message at the start of every turn, so a provider error, stop, approval pause or aborted stream left the session with one message. Prior history plus the user message is now kept when a turn does not complete; completed turns are stored as before.
  • Message keywords overrode the agent's provider (#111) — words like "implement", "review", "pr" or "analyze" picked a route whose preferred provider replaced spec.model.provider, while still sending the agent's model id (e.g. a claude-* id to OpenAI). The agent's provider now wins unless the agent sets model.routing or a skill declares a routing hint; a route that lands on another provider sends no model id, so that provider uses its default.
  • spec.model.routing was silently dropped (#111) — the schema stripped the field documented in docs/36-provider-routing.md. It is now accepted (coding | review | chat | research | default).

Changed

  • Behavior change: routing is opt-in (#111) — agents that relied on message-based provider switching must add model.routing: <route> to their frontmatter. providers/routing.yaml routing is unchanged.
  • SDKs updated (#109) — @anthropic-ai/claude-agent-sdk 0.3.288, @anthropic-ai/sdk 0.131.0, @a2a-js/sdk 1.3.0, @opentelemetry/sdk-node 0.222.0.
  • Codex CLI bundled (#109) — @openai/codex ships with @anvio/runtimes; the codex runtime and anvio setup-token --codex no longer need a global install. An explicit binary override still wins; codex on PATH is the fallback.

Added

  • Agent core audit (#111) — docs/audit/ (13 reports, Indonesian): agent loop, model integration and routing, ACP compatibility, MCP and tools, multi-agent, security and reliability, gap register, roadmap and validation scorecard. Notable finding: packages/acp is a custom HTTP/SSE API, not the Agent Client Protocol.

v2.9.0 — 2026-10-04

Hermes Agent / agentskills.io skills drop straight into Anvio: load skill folders, import them from a path or git repo.

Added

  • anvio skill import <dir|git-url> (#107) — imports agentskills.io / Hermes-style skill folders. Git sources are shallow-cloned to a temp dir that is always removed. A source with a top-level SKILL.md imports one skill; otherwise every nested skill folder is imported (depth ≤ 4), so a whole Hermes category works: anvio skills import https://github.com/nousresearch/hermes-agent --path skills/research. Flags: --path <subdir> (cannot escape the source), --name <slug> (single skill only), --ref <branch>. anvio skills is now an alias of anvio skill. Logic lives in @anvio/skills (importSkills, findSkillDirs, isGitSource).
  • SkillInstaller.installFromDir (#106) — copies a skill folder (SKILL.md plus scripts/, references/, …) into workspace/skills/<slug>/, recorded in the manifest with source: 'dir'. remove() also deletes the folder.

Changed

  • Vendor skill tags are kept (#106) — parseSkillMd merges metadata.<vendor>.tags (e.g. metadata.hermes.tags) with top-level tags, deduplicated.
  • Folder skills know where their files are (#106) — skills/<slug>/SKILL.md gets a workspace-relative directory hint prepended to its instructions so scripts/... references resolve. Flat skills/<slug>.md skills are unchanged.

Known limitations

  • Imported skills may ship scripts/ the agent can run; there is no content scan or signature check yet. Import only from sources you trust.
  • Hermes frontmatter author, license, platforms and related_skills are ignored (no schema slot yet).

v2.8.1 — 2026-10-03

Persona and soul now reach the Claude Code runtime, Node 24 works, and unset SOUL.md env vars are no longer silent.

Fixed

  • claude-code runtime ignored persona/soul (#104, #102) — vendor runtimes received \{ session, agent, input \} with no system prompt, so personas/*.md, skills and soul context never reached the model, which behaved like an interactive CLI (e.g. pointing users at claude mcp add). RuntimeRequest gains an optional systemPrompt, filled by the routing runtime for non-local runtimes. The claude_code preset now appends an Anvio preamble (not an interactive CLI; tools are mcp__anvio__anvio_tools__<name> / mcp__anvio__anvio_channel__<name>), the persona prompt, then the tool instructions.
  • Gateway crash on Node 24 (#98, #97) — better-sqlite3 11.x had no Node 24 support (ABI mismatch, then a RemoveEnvironmentCleanupHook abort during GC). Upgraded to ^12.11.1 (Node 20–26). better-sqlite3 is listed in pnpm.onlyBuiltDependencies so pnpm install / pnpm rebuild actually build it. Added .nvmrc (22).
  • SOUL.md approvers vanished silently (#103, #101) — an unset $\{VAR\} expanded to an empty string and its approver was dropped, so approvals hung until timeout. Unset or empty variables are now logged at load time. YAML souls (spec.extensions.policy) now expand $\{VAR\} like SOUL.md.

Dependencies

  • ip-address 10.7.3 (#95), fast-uri 4.2.1 (#87), hono 4.13.12 (#62), next 15.5.24 (#61).

Known limitations

  • Sessions that already replayed refusals via <conversation_history> keep them until /reset.
  • Cursor, Codex and Antigravity runtimes do not read request.systemPrompt yet.

v2.8.0 — 2026-10-03

Agents can extend themselves: create skills, install MCP servers (local or remote), no restart. Recorded as ADRs 0036–0037.

Added

  • skill_manage create (#99, ADR 0036) — an agent can author a new skill. It lands in workspace/skills/_drafts like learning-loop output; promote is still the only way to make it live.
  • mcp_manage tool (#99, ADR 0036) — list | add | remove MCP servers at runtime. New tools are available on the next turn without a gateway restart (McpToolPort.setCatalog). servers.yaml is edited as raw YAML, so $\{ENV\} secrets of other servers are never written back expanded.
  • Remote MCP servers over HTTP (#100, ADR 0037) — transport: http with url and headers ($\{VAR\} placeholders allowed). Speaks Streamable HTTP (JSON or SSE replies, Mcp-Session-Id) and falls back to the legacy HTTP+SSE transport. mcp_manage add accepts a url, so "add this MCP: <link>" works for hosted servers.

Fixed

  • Telegram replies cut down to one-liners (#99) — in harness strict mode (suppressRawOutput: true) only the text passed to anvio_channel__reply reached the user, and models filled it with a summary. The tool and instructions now ask for the complete answer, and a turn that never calls reply delivers its raw output instead of dropping it.
  • CI red on main after #99 (#100) — the built-in tool-count assertion still expected 75 keys.

Security

  • skill_manage and mcp_manage are disabled by default. Local add is restricted to mcp/servers.yaml spec.agentAllowedCommands (default npx, uvx, node, python3, docker). That restricts the launcher, not the package: npx -y <anything> is still arbitrary code. Remote urls must be https (plain http only for localhost). First-call approval still gates every new MCP tool.

Known limitations

  • Remote MCP servers that require the OAuth browser flow are not supported; only static headers work.
  • Server-initiated MCP requests (sampling, elicitation) and resumable streams are not handled.
  • The legacy SSE fallback is covered by unit tests only; Streamable HTTP was verified against a live public server.

v2.7.0 — 2026-10-02

gbrain memory, a persistent /1on1 thread lock, an end-to-end simulator, and /remote tool execution on your own machine. Gap analysis against slaude recorded as ADRs 0032–0035.

Added

  • gbrain memory provider (#88) — memory.provider: gbrain keeps sessions on the filesystem and syncs durable facts (fact, preference, summary) to a gbrain brain over its MEMORY_VERBS v1 MCP surface (remember, recall, forget). Best-effort: when gbrain is unavailable the filesystem keeps working and healthCheck reports why. anvio soul and anvio learning use the same wiring as the platform.
  • gbrain episodic timeline + consolidation (#94, ADR 0035) — memory.gbrain.episodic: true (off by default) writes each session's user/assistant turns to anvio/sessions/<id> as timeline entries; replays after restart are no-ops. anvio learning consolidate [--since YYYY-MM-DD] summarizes recent timelines into gbrain facts, honouring the soul's evolution.allowAutoUpdate.
  • Persistent engagement + /1on1 thread lock (#91, ADR 0032) — engaged threads now survive gateway restarts (workspace/harness/engagement/). /1on1 [on|off|status] locks a thread to one user: the owner is always heard, everyone else is ignored, and only the owner can release it. Rejected on channels without stable user ids (sms, email, cli, rest).
  • End-to-end gateway simulator (#92, ADR 0033) — full agent turns (harness gate → runtime → tools → approvals → channel formatting) with no channel credentials and no API key: ScriptedModelProvider, SimulatedChannel, createPlatform(\{ simulation \}), YAML scenarios under tests/simulation/, and anvio harness simulate --scenario <file...>.
  • Remote tool execution over a tailnet (#93, ADR 0034) — with execution.remote.enabled: true (off by default), /remote key | <address> <dir> | off | status runs file_read, file_write, list_dir, edit_file, run_shell and foreground terminal on the binding user's machine over SSH (tailcat / Tailscale). Model loop, credentials and memory stay on the host. Only the binding user can use or release the binding; host-filesystem tools are refused while bound instead of silently running on the host.

Fixed

  • Slack never engaged on mention (#91) — the Slack adapter did not report mentionedBot / mentionedOther / isDm, so engageOn: mention could never engage a Slack thread. Mentions are now detected from <@U…> using the bot id from auth.test.
  • Broken lockfile failed every CI install (#90) — pnpm-lock.yaml pinned jose@6.2.8 with no package entry after a dependabot merge (ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY since 2026-09-16).
  • Claude Code WebFetch flooded the context (#84) — the SDK's uncapped WebFetch is denied in favour of anvio_tools__web_fetch / web_extract; size-capped Anvio built-in tools are auto-approved.

Known limitations

  • Slash commands from the Slack client — Slack intercepts unregistered /commands and the adapter does not yet handle Socket Mode slash_commands envelopes, so /1on1, /remote and other Anvio commands do not reach Anvio from Slack. Works on Telegram, Discord, Teams, Mattermost and other channels that deliver /text as messages.
  • Mention detection exists only for Slack and Telegram; engageOn: mention cannot engage on other channels yet (a /1on1 owner is unaffected).
  • /remote stores its ed25519 private key as a 0600 file under workspace/connections/remote/ (gitignored), not in the encrypted connection broker. Not yet verified against a real tailcat / Tailscale SSH host.
  • gbrain episodic memory scopes per session by slug only (gbrain sources are bound to the MCP client's grant). Not yet verified against a real gbrain.

v2.6.4 — 2026-09-14

Approval hardening.

Fixed

  • allowedTools was broader than its rationale (#78) — every Anvio-provided tool was placed in allowedTools, so canUseTool was never invoked for any of them. Mutating tools like anvio_mcp__github__create_issue and anvio_tools__http_request bypassed the SOUL.md approver policy entirely. Narrowed to channel tools only (anvio_channel__*), which are the ones where prompting would deadlock.
  • SOUL.md $\{VAR\} placeholders were not expanded (#80) — loadSoulPolicy read the file raw without expandEnvString, so telegram:$\{TELEGRAM_OWNER_USER_ID\} became a literal id that could never match. Now expanded before parsing; unexpanded placeholders in extracted ids are rejected with a warning.
  • Unauthorized approval tap discarded silently (#81) — tapping Approve when not an authorized approver returned void with no feedback anywhere. ApprovalGate.resolve now returns a typed outcome (resolved | not_authorized | not_found | already_resolved | expired), and the Telegram adapter shows an alert toast for each failure case. Unauthorized attempts are logged.
  • Gateway restart orphaned pending approvals (#82) — ApprovalGate kept pending approvals and timers in memory only; nothing rehydrated them on restart. Added rehydrate() which loads persisted pendingApproval records on startup, re-arms timers from expiresAt, and immediately expires past-due entries. /reset now clears pendingApproval and returns status to idle.

v2.6.3 — 2026-09-14

Channel delivery hardening and native progress indicators.

Fixed

  • A channel failure no longer kills the agent run (#71) — a Telegram 400 can't parse entities threw out of the adapter, the hub, the worker's stream loop and LocalEventBus.dispatch, rejecting the publish() that started the run and skipping every handler behind it. The reply was persisted before the send was attempted, so the answer existed but never arrived. Handlers are now isolated on the bus, the worker's outbound sends log and continue, and Telegram retries a Markdown-rejected send as plain text.
  • splitMessage corrupted text at the boundary (#72) — splitting at a raw offset cut surrogate pairs in half and left Markdown entities unbalanced across the seam. Replaced with one shared splitter that breaks on line, then word, then a code-point-safe cut, and closes and reopens code fences across chunks.
  • Leaked chunk buffer, stray session, dropped poll updates (#73) — a failed turn never sends done, so its buffered partial was never released; a stale Approve button called resolveOrCreate and fabricated a session to resolve against; and one failing poll update discarded every sibling in its batch.
  • Slack and Mattermost never split long replies (#74) — neither had any length handling, so an over-limit reply was rejected and aborted the run. Both now chunk through the shared splitter; Mattermost's server-configurable MaxPostSize is settable via a new maxPostSize option.
  • High-traffic adapters bypassed fetchWithRetry (#75) — the adapters that actually meet rate limits were the ones calling bare fetch. Retry is now opt-out via the base class, and the helper honours the server's own Retry-After / retry_after instead of discarding it for a fixed schedule capped at 5s.

Changed

  • BaseChannelAdapter owns delivery, not just dispatch (#76) — stream buffering, message chunking, retrying transport and the typing-indicator lifecycle moved into the base class, so an adapter declares maxMessageLength, supportsNativeTyping and typingRefreshMs instead of reimplementing the machinery. Removes five copies of the delta buffer and three of splitMessage.

Added

  • Native progress indicators on every channel that has one (#76) — Telegram sendChatAction, Discord POST /channels/\{id\}/typing, Mattermost user_typing over its WebSocket, Matrix PUT /rooms/\{roomId\}/typing/\{userId\} (when the bot user id is configured), Teams Bot Framework typing activity, and WhatsApp typing_indicator (which attaches to a specific inbound message, so the adapter now records the inbound message id). Slack has no typing API a normal bot can use, so its progress is silent; the 🔄 phase text fallback is now restricted to non-chat surfaces, where a bubble per phase does not bury the reply.

v2.6.2 — 2026-09-14

Harness approvals reach the user, and actually gate the default runtime.

Fixed

  • Approval requests render without action buttons (#68) — the gateway worker delivered approval_required through sendNotification (plain text), so the ✅/❌ inline controls every adapter already implements were never shown. It now calls sendApprovalRequest, and registers the runtime's request id with ApprovalGate so the button callback resolves an id the gate actually knows.
  • claude-code runtime bypassed harness approvals (#69) — the vendor runtime never received the harness tool surface and had no permission hook, so Soul-Gate approvers were inert on the default runtime. The tool port is now served to the Agent SDK as an in-process MCP server (anvio_channel__reply, anvio_channel__request_approval), its instructions are appended to the system prompt, and the SDK's canUseTool prompts route through the new RuntimeApprovalPort — which blocks on a real channel approval and fails closed.
  • Telegram gave no progress feedback during a turn (#70) — sendChatAction was never implemented, so a buffered reply arrived after total silence. Adapters can now implement setTyping; Telegram keeps a 4s "typing…" keepalive per session (forum-topic aware) that the worker starts and stops around every run, and renders run progress as the chat action instead of a text bubble.

Known limitations

  • anvio approve <sessionId> <requestId> does not unblock an approval a runtime is waiting on inline. The CLI runs in a separate process from the in-memory approval gate, and the APPROVAL_DECIDED event carries no userId, so the SOUL.md approver policy cannot be checked. The request falls through to its timeout, which denies — fail closed. Channel approvals (Telegram buttons and equivalents) are unaffected.

v2.6.1 — 2026-09-13

Bugfixes for vendor runtime context and learning loop spam.

Fixed

  • Vendor runtime conversation context (#66) — vendor runtimes (claude-code, codex, cursor, antigravity) now preserve conversation history across turns. claude-code uses native session_id resume via vendorSessions metadata; others get a buildPromptWithHistory() transcript prelude budgeted from the tail. First turns remain byte-identical to previous behavior.
  • Learning loop skill draft spam (#67) — auto-capture fired per agent run (per turn), not per session, creating stacked drafts. Now dedupes per session (later turns overwrite earlier draft), defaults captureOn to mention instead of always, and requires minimum 4 messages before auto-drafting. SOUL.md frontmatter evolution field now honored instead of hardcoded. Soul scaffold template fixed from invalid captureOn: never to manual.

v2.6.0 — 2026-09-13

A2A Phase P11a — platform wiring, delegation tool, and integration tests.

Added

  • packages/platform/src/a2a-bootstrap.ts — bootstrap helper wires anvio.yaml A2A config into a running A2AServer (agent discovery, session creation, tool-loop bridging)
  • packages/tools/src/builtins/a2a-delegate.ts — new a2a_delegate built-in tool lets agents delegate tasks to remote A2A peers by alias
  • packages/a2a/src/server/anvio-user-builder.ts — maps A2A request context into Anvio user identity for session ownership
  • tests/integration/a2a.integration.spec.ts — end-to-end integration tests for A2A server bootstrap, agent card, task send/receive
  • packages/core workspace schema — A2AConfig Zod schema added (a2a.enabled, a2a.agents, a2a.remotes[] with alias/url/auth)
  • packages/core tool-gateway schema — a2a_delegate registered in tool gateway schema
  • packages/tools tool registry — a2a_delegate wired into built-in tool descriptions, schemas, and gateway index

Changed

  • packages/platform/src/gateway-http.ts — mounts A2A routes when config enabled
  • packages/platform/src/index.ts — exports bootstrapA2A and integrates into platform boot sequence
  • packages/platform/src/platform-context.ts — a2aServer added to platform context interface
  • packages/a2a/src/server/a2a-server.ts — accepts userBuilder config, passes to executor
  • packages/a2a/src/index.ts — re-exports AnvioUserBuilder
  • ADR-0027 through ADR-0031 — status updated from proposed to accepted
  • tests/integration/phase-p11a.integration.spec.ts — updated with platform wiring assertions

v2.5.0 — 2026-09-09

A2A package refactored to official @a2a-js/sdk v1.1.0 — replaces hand-written protocol code.

Changed

  • packages/a2a — migrated to official A2A JS SDK (@a2a-js/sdk v1.1.0)
    • Server: A2AServer now wraps SDK's DefaultRequestHandler + Express transport handlers (jsonRpcHandler, restHandler, agentCardHandler) instead of hand-written JSON-RPC/REST routing
    • AnvioAgentExecutor: implements SDK's AgentExecutor interface, bridges to Anvio runtime via RequestContext + ExecutionEventBus
    • Client: A2AClient wraps SDK's ClientFactory with JsonRpcTransportFactory + RestTransportFactory
    • Types: all A2A types now re-exported from @a2a-js/sdk — protobuf-generated with $case discriminated unions for Part.content, numeric enums for TaskState/Role
    • Mapping layer: updated to SDK enums (TaskState.TASK_STATE_WORKING, Role.ROLE_AGENT) instead of string literals

Removed

  • Hand-written types (packages/a2a/src/types/) — replaced by SDK re-exports
  • TaskManager — replaced by SDK's InMemoryTaskStore
  • SseStream — replaced by SDK streaming transport
  • PushNotifier — replaced by SDK's DefaultPushNotificationSender
  • AgentDiscovery — replaced by SDK's ClientFactory.createFromUrl()

Added

  • @a2a-js/sdk v1.1.0 and express as dependencies (SDK transport handlers use Express middleware)
  • @types/express as devDependency

v2.4.0 — 2026-09-08

A2A Protocol v1.0 implementation — agent-to-agent interoperability.

Added

  • packages/a2a — full A2A protocol implementation (ADR-0026)
    • A2A Server: JSON-RPC 2.0 + REST bindings, SSE streaming, push notifications, in-memory task store with state machine lifecycle
    • A2A Client: A2AClient with sendMessage/sendStreamingMessage/getTask/cancelTask, AgentDiscovery with TTL cache
    • A2A Tool: A2ATool wraps any external A2A agent as an Anvio tool for delegation
    • Mapping layer: bidirectional conversion — AgentRunStatus ↔ TaskState, ChatMessage ↔ A2A Message, AgentStreamEvent → A2A StreamEvent
    • Agent Card builder: generates /.well-known/agent.json from Anvio AgentDefinition frontmatter
    • 31 unit tests covering task lifecycle, Agent Card generation, message mapping, and full server HTTP routes
  • Gateway A2A routing — Unified Gateway (gateway-http.ts) routes /a2a/* and /.well-known/agent.json to platform.a2aServer when enabled
  • PlatformContext.a2aServer — duck-typed optional interface; no hard dependency from platform to @anvio/a2a
  • Documentation: docs/78-a2a-protocol.md — integration guide with quick start, streaming, push notifications, state mapping, architecture diagrams

v2.3.1 — 2026-09-08

Telegram command sanitization fix + A2A protocol ADR.

Fixed

  • Telegram setMyCommands batch failure (issue #59) — command names containing -, ., uppercase, or whitespace caused the Telegram Bot API to reject the entire batch. New buildTelegramCommandList() sanitises names to [a-z0-9_]\{1,32\}, deduplicates, and skips non-syncable entries. Comprehensive test suite added.
  • /providers-test folded into /providers test subcommand — the hyphenated name was one of the entries breaking Telegram's command picker. The standalone registration is removed; /providers test <route> [prompt] provides identical functionality.
  • /confirm and /cancel marked syncable: false — these commands require an inline token the native picker cannot supply; hiding them from the auto-generated menu prevents misleading entries.

Added

  • SlashCommand.syncable field (packages/core) — when false, channel adapters skip the command in native client pickers (Telegram, Discord, Slack) while the router still dispatches it.
  • ADR-0026: A2A Protocol Integration — proposes packages/a2a implementing the A2A v1.0 open standard for agent-to-agent interoperability (Agent Cards, Tasks, JSON-RPC + REST, SSE streaming, push notifications). Two surfaces: A2A Server (expose Anvio agents) and A2A Client (delegate to external agents as tools).

v2.3.0 — 2026-09-01

Mutation surface + session forking (ADR-0025). The chat surface can now scaffold, edit, and soft-delete every workspace primitive; sessions can fork and rewind; batch, worktree, and connections have live mutation subcommands. All destructive filesystem writes go through workspace/_trash/ with an append-only audit log at workspace/audit/mutations.jsonl.

Added

  • Session forking — /branch <label> clones the current session (parent seeded up to agentRunCheckpoint.messages), /resume reopens the last failed session in this (channel, threadId) and republishes AGENT_RUN_REQUESTED (rewinds to the checkpoint when present), and /history --branch renders the ancestor + descendant tree rooted at the current session.
  • Mutation surface — /new <primitive> <slug>, /edit <primitive> <slug> ```<body>``` , and /rm <primitive> <slug> [reason] post a preview and stash a pending mutation under a 12-hex confirm token; /confirm <token> applies it, /cancel <token> drops it, /pending lists the session's live tokens. Tokens live in-process, expire after 5 minutes, and carry into the audit record as the approvalId field so the track-3 formal-approver upgrade is drop-in. Primitives covered: agent, persona, soul, skill, workflow, goal, blueprint, automation, hook, mcp, knowledge.
  • Workspace trash + audit foundation — new @anvio/workspace/mutations (scaffoldPrimitive, editPrimitive, removePrimitive, resolvePrimitivePath, appendMutationAudit, readMutationAudit) and @anvio/workspace/trash (moveToTrash, restoreFromTrash, listTrash, pruneTrash). Layout: workspace/_trash/<primitive>/<slug>-<UTC-timestamp>.<ext>. Audit records track \{ts, actor, primitive, slug, action, hashBefore, hashAfter, approvalId, channel, sessionId, reason\}.
  • CLI: anvio trash list|rm|restore|prune — --older-than N, --dry-run, --force. Pruning is the only path that calls fs.unlink; every other path preserves the file.
  • /worktree new <sessionId> / /worktree rm <sessionId> — mutation subcommands on top of the read-only listing shipped in v2.2.1.
  • /connections revoke <channel> <userId> <service> — mutation subcommand alongside /connections list, backed by ConnectionBroker.revokeConnection.
  • /batch [list|status <id>|stop <id>|enqueue <blueprint>] — chat-native subset of anvio batch, wired through a shared BatchEngine composed from the workspace filesystem storage and the platform's BlueprintExecutor. Enqueue is fire-and-forget with a 250ms first-tick race so the operator gets the new jobId back before the run completes.
  • /providers-test <route> [prompt] — probes a routing entry via the platform's ModelRouter.chat and reports \{selectedProvider, latency, sample\}. New probeModelRoute closure on ExtrasOptions.
  • /setup-token <vendor> — chat handler prints the exact anvio setup-token --<vendor> invocation for the operator to run locally; the vendor CLIs open a real browser and can't run inside a bot process. Full chat-native OAuth + QR attachment path stays queued for track 3.

Changed

  • ADR-0025 → Accepted (partial). Track 1 (session forking + trash foundation) and track 2 (mutation surface, batch, worktree/connections mutations, /setup-token pointer, /providers-test) ship in this release. Track 3 will formalize the harness-approver bridge and full setup-token chat flow.
  • @anvio/batch is now a workspace dep of @anvio/platform.

Deferred (documented, not shipped)

  • Two-turn /edit with a specialist-agent swap. The ADR's specialist rewrite requires per-primitive agent selection (documenter for prose, tech-lead for structure) — the current /edit accepts the full body inline in a fenced block. Specialist swap becomes an ADR-0026 conversation.
  • /providers add|remove mutations against providers/routing.yaml. The routing schema is route-based, not provider-list-based, so ADR-0025's add|remove shape doesn't map cleanly — this is a schema-design conversation for track 3, not a wiring gap.

v2.2.1 — 2026-09-01

Read-shaped commands from ADR-0024's deferred list. Every remaining introspection surface that only needs a getter is now reachable from /. Mutation, session forking, and the batch/setup-token flows are designed in the new ADR-0025 (draft) and land in v2.3.0.

Added

  • /audit [--last <n>] — last N events from workspace/audit/tokens.jsonl + aggregated input/output/cost totals and the top-5 agents by spend. Uses readTokenUsageAudit + aggregateTokenUsage from @anvio/platform.
  • /memory <query> — search the workspace memory scoped to the current user via MemoryProvider.search. Reports up to 8 hits.
  • /knowledge [<slug>] — list knowledge bases (workspace/knowledge/*) or the last 20 raw entries under one. Backed by KnowledgeBaseStore. New @anvio/knowledge workspace dep on @anvio/platform.
  • /artifacts [--session <id>\|--global] — recent artifacts from FilesystemArtifactStore.list(). Defaults to the current session's artifacts.
  • /harness — HarnessDefaults (enabled, soul, suppressRawOutput, idleMinutes) + the effective channel profile for the current thread.
  • /connections — connection-broker entries via ConnectionBroker.listConnections(). Payloads are never printed; only channel, user, service, and expiry.
  • /worktree — git worktrees created for isolated sessions via WorkspaceManager.worktrees.list().

Docs

  • New (draft) ADR — docs/adr/0025-mutation-and-forking-surface.md designs the /new / /edit / /rm mutation surface, /branch / /resume session forking, batch / worktree / connections mutations, /setup-token, and /providers add|remove|test for v2.3.0. Includes the approver gate, soft-delete to workspace/_trash/, and the two-turn /edit UX with a specialist-agent-scoped rewrite.
  • docs/10-channels.md — Slash commands table extended with the seven new entries.

Notes

  • @anvio/knowledge is now a workspace dep of @anvio/platform. No API change to KnowledgeBaseStore itself.
  • The /audit handler reads through workspace.storage; it does not require the TokenUsageAudit service — the writer is a separate concern and lives where it always has.

v2.2.0 — 2026-09-01

Complete the slash-command surface — introspection, session control, per-thread overrides.

Minor version because the operator surface grows. Every workspace noun the CLI covers is now reachable from / on every chat adapter, session state is inspectable and controllable in-chat, and the model provider / model id / runtime for a single conversation can be flipped without editing a YAML file.

See ADR-0024 for the shape and what was deliberately deferred to ADR-0025 (full /new, /edit, /rm mutation surface + /resume / /branch session forking).

Added — per-thread overrides (the headline)

  • /provider <slug>, /model <id>, /runtime <slug> — set the model provider, model id, or runtime for this session only. Writes to session.metadata.providerOverride / modelOverride / runtimeOverride.
  • /routing — dump the effective \{provider, model, runtime\} after overrides are applied.
  • /providers — list known model providers with the active override marked.
  • Wiring: RuntimeRoutingAgentRuntime.run/stream call applySessionOverrides(agent, session) before dispatch. The overrides fold into the agent's spec.model / spec.runtime.provider on a shallow-cloned agent; the original definition is untouched and thread B never sees thread A's override.

Added — introspection

  • /personas, /persona <slug> — from workspace/personas/*.md via PersonaService.
  • /workflows, /workflow <slug> — from WorkflowRegistry; /workflow renders the node list.
  • /blueprints, /blueprint <slug> — from BlueprintCatalogRegistry.
  • /kanban — boards + column labels via KanbanEngine.listBoards().
  • /tools — ToolGateway.listTools().
  • /hooks — workspace/hooks/hooks.yaml entries via new HookEngine.list().
  • /skill <slug> — pair with existing /skills; frontmatter + first ~1.8KB of instructions.
  • /session <id> — pair with existing /sessions; agent, channel, status, and last three turns.

Added — session control

  • /status — active agent, message count, pending approval, override state.
  • /history [n] — last N turns of this session (default 10, capped at 50).
  • /stop — publish AGENT_RUN_STOP_REQUESTED for the current run.
  • /detach — flip session.detached = true so the run continues in the background.
  • /checkpoint [label] — persist session.metadata.agentRunCheckpoint with an optional human label.

Added — debug + feedback

  • /version — Anvio version, workspace name, Node version.
  • /settings — effective config for the current session (runtime default, events, storage, soul, status, detached).
  • /thumbsup, /thumbsdown [reason] — append to workspace/memory/feedback/<sessionId>.jsonl tagged by turn timestamp.

Changed

  • HookEngine.list() — new public method returning the loaded hook registry.
  • SlashCommandRegistry.register(command) — port doc'd register() from v2.1.2 is now heavily used.

Deferred to ADR-0025

  • Uniform /new, /edit, /rm mutation surface across every primitive (agent/persona/soul/skill/workflow/goal/blueprint/automation/hook/mcp/knowledge). The /edit flow needs a specialist-agent-scoped rewrite + approver gate + _trash/ restore path — larger than a router expansion.
  • /resume, /branch — need parent_session_id chain design.
  • /batch, /worktree, /connections, /setup-token, /providers add|remove|test.
  • /audit, /memory, /knowledge, /artifacts, /harness — read-shaped but need more subsystem surface work; queued as v2.2.1.

Tests

  • packages/platform/src/session-overrides.spec.ts — 5 tests covering no-op passthrough, provider override, model override, runtime override, and non-string metadata being ignored. 562 total (+5).

v2.1.2 — 2026-08-31

Slash-command coverage for the rest of the workspace. v2.1.0 shipped the router and v2.1.1 completed the learning-loop lifecycle; this fills in the remaining workspace nouns so / on a chat channel reaches every subsystem the CLI already covers, matching the surface of comparable bots (Hermes, openclaw).

Added

  • /commands — alias for /help so the picker responds to whichever name the user's muscle memory picks (Hermes/openclaw parity).
  • /souls, /soul <slug> — list souls and show one from workspace/souls/*.md. /soul renders name, role, description, values, and the evolution config (allowAutoUpdate + captureOn).
  • /goals [--status active|completed|paused], /goal <slug> — list and inspect goals. Goal engine is resolved through a getter so the registry's early binding tolerates the goal-engine ↔ workflow-executor construction cycle.
  • /mcp [list|health] — list configured MCP servers or dump the bridge's health report. Backed by the integration registry that was already loaded during boot.
  • /sessions — recent 10 sessions from the session store (id / agent / channel / status / message count).
  • /channels — live channel adapter health probe rendered as a one-line summary.
  • /automations — cron/automation engine's registered jobs with slug + enable state + trigger type.
  • SlashCommandRegistry.register(command) — the port now guarantees late registration. Splitting out slash-commands-extras.ts in the platform lets subsystems constructed after the initial registry (automation, sessions, channels) attach commands without a second registry factory.

Docs

  • docs/10-channels.md — Slash commands table expanded with every new command and the register() note.

Tests

  • packages/platform/src/slash-commands.spec.ts grows by 2 tests: /commands matches /help, and register() late attach dispatches correctly. 555 total (unchanged headline — three tests replaced two).

v2.1.1 — 2026-08-31

Skill-promotion surface, completed. v2.1.0 shipped the router and the pieces of #56 that fit inside a minor version; this closes the rest.

Added

  • /draft <slug>, /discard <slug>, /capture slash commands. /draft renders the frontmatter + body (truncated at 2KB for chat surfaces), /discard soft-deletes to workspace/skills/_drafts/_discarded/ so an accidental discard is recoverable, /capture force-extracts a draft from the current session bypassing SkillEvolutionSummarizer.shouldCreate.
  • Post-run channel notification when a session produces a draft. The bot announces 📝 Skill draft captured: <slug> with /draft, /promote, and /discard prefilled — no CLI trip required. Chat channels only (telegram, discord, slack, whatsapp, web-chat, cli, matrix, teams, mattermost).
  • soul.spec.evolution.captureOn — always (default, matches prior behavior) / mention (only when session contains /capture) / manual (never auto-draft; only --force / /capture produce drafts). allowAutoUpdate: false still wins.
  • anvio learning promote-session <sid> [--force] — force-extract a draft from a specific session id, bypassing the auto-gate. --force also skips the "shouldCreate=false" refusal from the LLM.
  • anvio learning capture --messages <path> --agent <slug> — extract a skill from an offline transcript ([\{ role, content \}, …] JSON) without a running Anvio session.
  • anvio learning drafts prune [--older-than 7d] — housekeeping for _drafts/ (accepts s/m/h/d suffix; default 7d).
  • anvio learning draft <slug>, anvio learning discard <slug> and matching anvio skill … aliases so every draft-lifecycle verb is reachable from both nouns.

Changed

  • Diff-mode promotion. SkillEvolutionWriter.promoteDraft now returns \{ path, alreadyExisted, diff? \}. When the target skill already exists and its content would change, the write is refused and diff carries the change so the caller can surface it. --force (CLI) / --force arg (slash command) applies. Backward-incompatible signature but only surfaced through platform + CLI wrappers, which are updated together.
  • SkillEvolutionSummarizer.fromSession(input, \{ force \}) — the force path bypasses the 40-char / assistant-required gate and the LLM's shouldCreate=false refusal, so /capture on a short session still produces something.

Fixed

  • Force-captured drafts get the captured tag so a reviewer can filter for "human explicitly asked for this" versus the auto path.

Tests

  • New packages/learning/src/skill-evolution.spec.ts — 6 tests covering lineage frontmatter, slug shape, soft-delete, getDraft, pruneDrafts with backdated mtime, and diff-mode promotion refuse-then-force. 555 total (+6).

v2.1.0 — 2026-08-31

Cross-channel slash commands + skill-promotion lineage.

A minor version because the operator surface grows: workspace/agents/* and workspace/skills/* become the source of truth for what the picker on every chat channel shows, and a new port makes wiring the next adapter (Discord / Slack / Mattermost) a follow-up rather than a rewrite.

Added

  • SlashCommandRegistry port and platform-side factory (#55, ADR-0023). New SlashCommand / SlashCommandContext / SlashCommandResult / SlashCommandRegistry in @anvio/core. createSlashCommandRegistry in @anvio/platform composes the registry from workspace.loader.listAgents/listSkills plus the learning engine's draft list, plus built-ins: /help, /whoami, /agents, /agent <slug>, /skills, /reset, /drafts, /promote <slug>. createInboundHandler in @anvio/channels dispatches through the registry before the harness gate, so a DM's /help on a workspace whose default profile would drop it as restricted_zone still gets a reply.
  • /agent <slug> and /reset are real behavior, not stubs. /agent validates against the workspace catalog and writes session.agentName through the session store. /reset clears messages and metadata.agentRunCheckpoint on the current session.
  • Telegram picker syncs from the registry at setMyCommands. The old hardcoded set only survives as a fallback when no registry is passed. TelegramChannelOptions.slashCommands is optional so tests and third-party callers stay working.
  • Fall-through slash escape at the channel layer. Unknown /foo is prefixed with U+200B before being published to AGENT_RUN_REQUESTED, so the Claude Agent SDK does not intercept it as its own CLI slash-command (belt-and-suspenders alongside the runtime-side escape from v2.0.2).
  • anvio skill drafts / anvio skill promote aliases (#56 (a)). The learning-loop surface is now discoverable under the noun users grep for. anvio learning drafts/promote still works.

Changed

  • Draft slug carries the source session id (#56 (c)). Was <agent>-draft-<ms>, now <agent>-<sessionShort>-<ms> so a reviewer can trace a draft back to its run without opening the file. Legacy slugs still promote. Promotion regex updated to strip either shape.
  • Draft frontmatter carries lineage under a source: key (#56 (d)) — sessionId, agentId, channel, userId, messages (count), and capturedAt. Survives the skill parser (which ignores unknown top-level keys) and stays grepable.
  • SessionLearningInput.channel — LearningEngine.onSessionCompleted now takes the session's channel and forwards it into the draft, so lineage records the chat surface the session ran on.

Docs

  • New ADR — docs/adr/0023-workspace-slash-commands.md records the port shape, dispatch order, and per-adapter picker-sync plan.
  • docs/10-channels.md — new "Slash commands" section describing the built-in set, dispatch order, and the Telegram sync path.
  • docs/05-skills.md — learning-loop section updated with the new slug shape, lineage frontmatter, and the /drafts / /promote chat commands.

Follow-up

  • Discord Application Commands and Slack slash_commands picker sync (ADR-0024, not written yet). The router already accepts their inbound /foo traffic — only the client-side picker generation is deferred.
  • Workspace-defined commands (workspace/commands/*.md bound to skills) and per-agent scoping (filter list by spec.skills). Recorded in ADR-0023's alternatives.

v2.0.2 — 2026-08-31

Telegram bug sweep — four defects that combined to make the bot look completely dead even when every subsystem reported healthy.

Fixed

  • Adapter never set mentionedBot; default profile required a mention (#51). The shipped telegram-like profile was engageOn: mention, but nothing populated the flag, so every message disengaged and was dropped. Now parses mention / text_mention / bot_command entities against the bot's own getMe().username. The shipped default flips to engageOn: always because private chats have no other participant for mention to match against.
  • Every DM dropped by canAccessRestrictedZone; gate emitted no log (#52). Adapter now sets metadata.isDm from chat.type, and HarnessGateway.handleInbound emits a one-line drop reason gated by ANVIO_HARNESS_DEBUG. Silent drops behind a "healthy" status were the worst possible failure mode.
  • setMyCommands never called; no slash-command dispatcher (#53). Registered a default set (/help, /agents, /skills, /reset, /whoami) on start() and added a dispatcher — Telegram-only in this release. v2.1.0's ADR-0023 promotes both to a cross-channel registry.
  • Task Completed spam + SDK slash swallow (#54). Chat channels no longer receive the completion notification (non-streaming surfaces still do). Adapter + ClaudeCodeRuntime both prefix a / prompt with U+200B so the SDK treats it as user text, not a CLI command.

v2.0.1 — 2026-08-31

Bugfix sweep on v2.0.0.

Fixed

  • $\{VAR\} never expanded in MCP + workspace YAML (#47). Placeholders reached child processes verbatim, so every server configured that way crashed at spawn (Invalid URL, env var required, …). Adds expandEnvDeep to @anvio/core — shell-shaped $\{NAME\} / $\{NAME:-default\} / $\{NAME:?message\}, $$\{ to escape — applied at IntegrationRegistry.load() and Workspace config reads.
  • anvio run / anvio chat leaked Telegram pollers (#48). One-shot CLI runs started a second long-poller against the same bot the gateway was already polling; whichever won consumed the update and acked it, so the bot silently dropped messages. Adds PlatformOptions.startChannels (default true, preserves gateway/worker/api behavior) and PlatformContext.shutdown(). CLI opts out of inbound and tears down on beforeExit / SIGINT / SIGTERM.
  • claude-code runtime forwarded spec.model.model as its Anthropic model id (#49). Same field also configured the local fallback's model provider, so a deepseek-chat id landed at the Anthropic SDK and every run failed with "It may not exist or you may not have access to it." Adds runtime.model to the agent runtime binding for the vendor's own id; schema rejects the misconfiguration at parse time.
  • anvio gateway start (no --foreground) always failed with "Cannot locate gateway binary" (#50). Daemon path assumed a monorepo layout; tarball / npm / homebrew installs had no such path. Re-spawns argv[1] with gateway start --foreground instead, logging into workspace/logs/gateway.log.

Tests

  • Boot smoke tests for both HTTP surfaces (#46). ADR-0020 and ADR-0022 both recorded this as an open gap, and it is the gap that mattered: three defects this cycle — two that stopped apps/api starting at all, one that left a webhook answering 404 channel not enabled to an unauthenticated caller — were every one found by running the thing, while the unit suite stayed green. tests/integration/boot.integration.spec.ts boots apps/api from its built dist as a child process and the gateway in-process, then asserts routes answer under the /api prefix and that unverified webhooks are refused.

v2.0.0 — 2026-08-23

Provider audit — the vendor AI SDKs (packages/models), end to end, and a surface for the keys they need.

A major version because five things that worked yesterday need an operator's attention today. Every one of them is a place where the previous behaviour was the defect: an open port, an unverified webhook, a published secret. Nothing here is a rename for its own sake.

⚠️ Breaking changes

Read this section before upgrading. Each item names what changes and what to do about it.

  1. anvio gateway start binds 127.0.0.1 and refuses an insecure binding. It used to default to 0.0.0.0 with no check, which made ADR-0018's hardening of apps/api one command away from irrelevant. To keep a reachable gateway, set ANVIO_GATEWAY_HOST=0.0.0.0 and either enable auth or set ANVIO_API_ALLOW_INSECURE=true. Without one of those the process exits at startup rather than opening the port. (#44, ADR-0022)

  2. Teams and Matrix webhooks return 401 until configured. They previously accepted anything from anyone. Set TEAMS_APP_ID for Bot Framework token validation and MATRIX_AS_TOKEN for the application-service token — the latter is a new variable, deliberately not MATRIX_ACCESS_TOKEN, which is the token Anvio presents when calling out. ANVIO_API_ALLOW_INSECURE=true opts out. (#40, ADR-0021)

  3. WHATSAPP_VERIFY_TOKEN has no default. It used to fall back to 'anvio-verify', a value published in this repository, so an unconfigured deployment could be handshaken by anyone who had read the source. Set it to the same string you enter in Meta's webhook configuration. Also set WHATSAPP_APP_SECRET — POSTs are now signature-checked, not just the one-time GET. (#41, ADR-0021)

  4. Credential pools written under the old default passphrase cannot be read — this is data loss. apps/cli defaulted the encryption passphrase to 'local-dev-passphrase'; the salt is stored beside the ciphertext, so anyone who could read workspace/credentials/encrypted/*.enc.json could decrypt it with a published value. ANVIO_CREDENTIALS_PASSPHRASE is now required, and existing pools must be re-added with anvio credentials add. The data at risk is API keys that still exist at the vendor and can be re-pasted; the protection they had was nil. (#32, ADR-0019)

  5. estimateTokenCostUsd takes provider as its first argument. Exported from packages/platform, so any out-of-tree caller breaks. Deliberate: the old signature could not look up a descriptor and silently returned undefined. (#18, ADR-0016)

Seventeen merged pull requests — #15 through #44 — and nine ADRs, ADR-0014 through ADR-0022. The theme: the provider layer looked finished and was not. Streams swallowed mid-flight failures, every provider hand-rolled its own error mapping, ModelRouter was never on the request path, and the only way to give Anvio a key was an environment variable or a secret in argv.

Fixed

  • Streams no longer end silently on failure (#15). All three adapters — Anthropic, OpenAI-compatible, Gemini — ended a broken stream with a plain done chunk, indistinguishable from success. A truncated answer read as a complete one. StreamChunk gains an error variant carrying \{ error?, retryable? \}, and DefaultAgentRuntime surfaces it instead of returning the partial text as final. The OpenAI-compatible adapter also now checks response.ok before reading the body, and reports a mid-stream transport break rather than treating a closed socket as end-of-message.

  • Cached tokens billed once (#18). inputTokens from every provider is the total prompt size and already includes cacheReadTokens and cacheCreationTokens; TokenUsageAudit added them on top, inflating both the cost figure and the spend ledger for every cache-hitting call. costInputFromUsage (@anvio/models) is now the one place that decomposes usage into billable parts, and the invariant is documented on TokenUsage itself so the next reader does not re-derive it wrong.

  • Partial answers are kept when a stream dies (#29). Failing over mid-answer discarded whatever text had already arrived. The runtime now preserves it and appends the failure, so a long answer that breaks at 90% is still worth 90%.

  • The API bound to 0.0.0.0 with auth off by default (#30). At Level 1 that exposed sessions, agents, and tool execution to the whole LAN. The default host is now 127.0.0.1, and assertSafeBinding refuses to listen() on a non-loopback address with auth disabled unless ANVIO_API_ALLOW_INSECURE=true says so explicitly.

  • ModelRouter was not on the request path (#32). Provider fallback, the circuit breaker, and the credential pools shipped in earlier releases were all real and all unreachable — PlatformContext constructed providers directly. The router is now what the platform hands out, so a pool named on a route actually decides which key a call uses.

  • The default Anthropic model was a deprecated dated snapshot (#37). DEFAULT_MODELS.anthropic was claude-sonnet-4-20250514; it is now claude-sonnet-5. Cost is neutral — both are $3/$15 per 1M at list price — and staying in-tier was the point: an Opus-class default would be 5x the input rate, chosen on the operator's behalf, for workspaces that never asked. The descriptor also records the real limits, 1M context against 200K and 128K max output against 8,192. A dated snapshot is a default with an expiry date on it, so a test now asserts the default does not end in -YYYYMMDD. Closes #25.

  • A credential replaced under the same id kept serving the old secret (#35). ModelRouter cached SDK clients by credential id, so overwriting a leaked key under its own id — the obvious remediation, and since the settings page shipped, a form that invites it — left the old secret going out on the wire until restart, with no error to say so. Each cache entry now carries a salted digest of the credential value; a mismatch rebuilds the client and overwrites the entry, so the new secret is used on the very next request and the stale client is dropped rather than accumulating one per rotation. Closes #33, which ADR-0019 had recorded as a known limit.

  • Two provider-catalog entries could never have worked (#38). huggingface named api-inference.huggingface.co, the legacy serverless Inference API; the OpenAI-compatible surface is the Inference Providers router on a different host, so the entry was a 404 waiting for its first user. cohere's base URL was right but its default model was a generation behind — a default nobody can call fails the same way a wrong URL does. Both are now checked against the vendors' own current documentation, and a new test asserts every catalogued provider composes a well-formed request URL, which is the check whose absence let a wrong host sit unnoticed. Closes #27 and most of #24 — response parsing still has no live-key receipt.

  • API startup and dashboard fetches (#34). Two bootstrap ordering bugs from #30 meant apps/api did not start at all; both are fixed and the correct order (setGlobalPrefix → init() → read auth state → assertSafeBinding → listen()) is recorded in ADR-0020. Separately, apps/web called the API with a relative URL from server components, where Node's fetch rejects it — every dashboard page had been failing behind a bare catch and rendering an empty state.

  • The unified gateway had none of the API's hardening (#44). anvio gateway start — the bundled daemon CLAUDE.md recommends — serves /api/* from a second, hand-rolled implementation, and every decision made in ADR-0018 and ADR-0021 applied only to apps/api. It bound 0.0.0.0 with no assertSafeBinding; its resolveAuth ended return ctx ?? auth.getDefaultContext(), the exact fallback ADR-0018 removed from sessions.controller.ts; and all three channel webhooks dispatched unverified. The shared pieces now live in packages/platform and both surfaces call the same functions rather than equivalent ones. Closes #42. Breaking: anvio gateway start now binds 127.0.0.1 and refuses to start on a reachable address with auth disabled — set ANVIO_GATEWAY_HOST plus either real auth or ANVIO_API_ALLOW_INSECURE=true.

  • WHATSAPP_VERIFY_TOKEN fell back to a published default (#41). 'anvio-verify' sat as the fallback at two sites, so any deployment that never set the variable would complete Meta's webhook handshake for anyone who had read this repository — while looking configured, which is what makes a default secret worse than none. Removed, and verifyWebhook now fails closed on an empty token: the original === would have matched an empty presented token against an empty configured one, swapping a known-secret hole for a no-secret one. The comparison is also constant-time. Separately, anvio channels status --json printed the token's value in its health details; it now reports only whether one is configured. Closes #39. Breaking: a deployment relying on the default now fails its handshake — a deployment whose handshake anyone could already complete.

  • Teams and Matrix webhooks accepted anything from anyone (#40). ADR-0018 marked the three channel webhooks @Public() because Meta, Microsoft, and a Matrix homeserver cannot present a user token — but only WhatsApp verified anything, and only on the one-time GET handshake. A post to the Matrix webhook injected a message attributed to any senderId the caller named, into an agent that read it and spent model credits acting on it. Each provider is now verified by its own mechanism: HMAC-SHA256 over the raw body for Meta, the application-service as_token for Matrix, and a full Bot Framework JWT check for Teams — RS256 against Microsoft's published keys with the algorithm pinned and the audience checked, so neither an alg: none forgery nor a validly signed token minted for a different bot is accepted. Implemented on node:crypto with no new dependency. Closes #31. Breaking: a Teams or Matrix webhook that worked before now returns 401 until TEAMS_APP_ID or MATRIX_AS_TOKEN is set, or the deployment sets ANVIO_API_ALLOW_INSECURE=true.

Added

  • A settings page for provider keys (#34, apps/web/src/app/(dashboard)/settings/providers). Paste a key, have it encrypted at rest, and test that the pool can serve. The page states the thing plainly: most vendors have no way to hand a key to another application, so there is nothing to sign in to. It posts through Next server actions, which keeps both ANVIO_API_TOKEN and the pasted key out of the browser bundle and out of any request the browser composes.
  • Credential endpoints (#34, apps/api/src/credentials.controller.ts). List pools, add a credential, test a pool — behind the guard from #30. Responses are built field by field rather than spread from the stored pool, so no secret can ride out through a field nobody remembered to strip. Adding a key echoes \{ slug, id \}: not a masked value, not a prefix.
  • anvio credentials add --value - and --value-env NAME (#34). Inline --value <secret> put the key in argv, readable by ps and saved to shell history. It still works — and now warns, naming both alternatives.
  • Streaming failover across providers (#19). ModelRouter.stream() primes the first chunk before committing to a provider, so a target that fails on connect is replaced before any text reaches the caller. A failover chunk names \{ from, to, reason \}, and the circuit breaker records outcomes on the streaming path too, not just chat().
  • The answer names the provider that served it (#29). The done chunk carries provider and model. With silent failover in place, "which provider actually answered this?" had no answer at all.
  • Provider error classification at the wrap site (#16, packages/models/src/provider-error.ts). Each adapter reimplemented its own status-to-error mapping and lost the vendor's own detail doing it. One module now owns it, preserving status, type, and requestID, and — the load-bearing part — attaching an explicit retryable flag. Downstream callers must read that flag rather than re-deriving retryability from AnvioError.statusCode, which defaults to 502 for every MODEL_PROVIDER_ERROR and so makes every failure look retryable.
  • Capability in the provider catalog (#17). The catalog described transport only, so callers had no way to ask whether a provider supports native tool calls before sending a request that would fail. Capability now lives beside transport.
  • MODEL_IDS and DEFAULT_MODELS (#18, packages/core/src/model-ids.ts). The same model id strings were hard-coded at eight sites, several of them naming models Anthropic has retired. They live in core rather than models because agent-md.ts was one of the eight and core cannot import from models.

Changed

  • Gemini tool schemas are filtered through an allowlist (#17, toGeminiSchema). Gemini accepts an OpenAPI subset, not JSON Schema; unsupported keywords made it reject the whole request. The conversion fails closed — an unknown key is dropped rather than forwarded — drops freeform objects along with their required entries, and returns undefined when nothing usable remains so the caller omits parameters entirely.
  • workspace/credentials/ and workspace/connections/ are gitignored (#34). Encrypted credential pools and vendor-CLI OAuth tokens were both trackable. Encryption is not a reason to publish ciphertext whose passphrase belongs to the operator.
  • apps/web sends an Authorization header (#34). It sent none, so it could only ever work against an API with auth disabled.

Docs

  • ADR-0014 — provider error classification: one wrap site, and why retryable is explicit rather than derived.
  • ADR-0015 — the provider capability catalog.
  • ADR-0016 — token accounting and the single home for model ids.
  • ADR-0017 — streaming provider failover, including what it does not cover.
  • ADR-0018 — API network exposure: loopback by default, and the explicit opt-out.
  • ADR-0019 — credential pools on the request path.
  • ADR-0020 — the key-management surface, and a record of two startup bugs that 29 unit tests could not have caught.
  • ADR-0011 — annotated with what shipped, then discharged.

Known gaps

One issue is still open, and only because it needs something this repository cannot supply: #24 — Cohere's compatibility endpoint is confirmed live (a wrong key returns a structured 401 from it, so the host serves that path and the adapter parses their error body), but nobody has yet watched a success response parse. apps/cli/scripts/verify-cohere.ts settles it in one call for anyone holding a key.

Carried forward, recorded rather than fixed:

  • No boot smoke test for either apps/api or the gateway. Both were started and probed by hand for this release; ADR-0020 and ADR-0022 both say that is not a substitute.
  • The dashboard authenticates as one static server-side token, not as a user. Fine for one operator on one machine; not multi-user (ADR-0020).
  • The gateway and apps/api still have separate routing tables. ADR-0022 removed the duplicated security logic; a new route added to one still does not appear in the other.
  • No webhook replay protection. A captured, validly signed request can be replayed inside the token's window (ADR-0021).

Tests

  • 520 total, up from 349 at the start of the audit — 96 files, all green.
  • Model ids in shipped config are guarded (#37). configs/agents/architect.yaml and workspace/agents/architect.md restate ids as literals — YAML and Markdown cannot import a constant — and neither existing guard read them, which is exactly where the malformed claude-haiku-3-5-20241022 hid. A new spec checks every model: value in tracked files under configs/ and workspace/ against KNOWN_MODEL_IDS and RETIRED_ANTHROPIC_MODEL_IDS. Scope is git ls-files rather than an exclude list, because workspace/ also holds gitignored runtime data free to name whatever the operator actually ran. Closes #26.

v1.27.0 — 2026-08-12

Model Gateway hardening + skill-trigger cache.

Added

  • Epic 12 F1 slice — ModelDescriptor registry (@anvio/models). New getModelDescriptor(provider, model), listModelDescriptors(), and estimateModelCostUsd(provider, model, usage). Ships descriptors for anthropic:claude-sonnet-4-20250514, claude-opus-4-20250514, claude-haiku-4-5-20251001, openai:gpt-4o, gpt-4o-mini, gemini:gemini-2.0-flash, gemini-1.5-pro, deepseek:deepseek-chat, groq:llama-3.3-70b-versatile with context window, max output, supportsTools, supportsCaching, and USD cost per 1M tokens. Cache-read defaults to 10% of input rate (Anthropic-style) and cache-creation defaults to 125%; descriptors may override both.
  • Epic 12 F2 slice — ModelRouter charges SpendBudgetLedger after every successful call when deps.spendBudget and request.budgetKey are both set. Cost computed via estimateModelCostUsd; charge() throws MODEL_SPEND_BUDGET_EXCEEDED (HTTP 402) on breach, and the failed charge is NOT recorded so prior spend stays exact.
  • Epic 12 F2 slice — ProviderCircuitBreaker (@anvio/models). Per-provider state machine (closed → open → half-open → closed) with configurable failureThreshold (default 3) and cooldownMs (default 30_000). walkFallbackChain accepts an optional \{ breaker \} option; skipped targets appear in attempts[].skipped = 'circuit-open'. Prior positional isRetryable signature retained for backwards compatibility.
  • P1.S8 skill-trigger index cache (@anvio/skills). New SkillTriggerCache re-parses skill YAML only when its file mtime changes. matchAll(message, ctx) refreshes then runs matchTriggers — turns a per-message full catalog parse into an O(N) stat + zero re-reads on stable catalogs. Wired into DefaultAgentRuntime: the runtime instantiates one SkillTriggerCache at construction and reuses it for every incoming message. Workspace overrides bundled for the same slug; manifest.yaml and _*.yaml drafts are skipped.

Changed

  • walkFallbackChain(route, execute, isRetryable) → walkFallbackChain(route, execute, options). options.isRetryable and options.breaker supported; legacy 3rd-arg-as-function signature still accepted so no consumer changes required.

Docs

  • (No new ADRs this release — increments track the tables in ADR-0011 and ADR-0013.)

Tests

  • 338 total (up from 311). New: model-descriptor.spec.ts (7), model-router-budget.spec.ts (5), circuit-breaker.spec.ts (9), trigger-index.spec.ts (6). pnpm test green, pnpm build green.

v1.26.0 — 2026-08-12

Observability foundation, Tool Bus policy layer, Model Gateway scaffolding, and Anthropic SDK 0.93.

Added

  • P1.S2 — pino structured logger (@anvio/observability). New createLogger(name) returns a child logger namespaced by module; env-tunable via ANVIO_LOG_LEVEL (defaults to info in production, debug otherwise). setRootLogger provided as a test hook. ESLint no-empty (with allowEmptyCatch: false) added at repo root — enforced across all 46 catch blocks in the tree; audit confirms zero empty catches remain.
  • P1.S3 — per-model-call metrics. withCallMetrics(providerId, model, fn) and recordStreamMetrics(providerId, model, usage, startedAtMs) in @anvio/models wrap every Anthropic / OpenAI-compatible / Gemini chat + stream call and emit anvio_tokens_input_total, anvio_tokens_output_total, anvio_tokens_total, anvio_tokens_cache_read_total, anvio_tokens_cache_creation_total, anvio_model_calls_total, and anvio_model_call_latency_ms (as a histogram with count/sum/min/max) via MetricsRegistry. TokenUsageAudit.record now forwards latencyMs + cache-token fields into the registry as well.
  • Epic 5 F1 — Tool Bus policy layer. New @anvio/tool-bus package with ToolPolicy schema (allowed / denied / requireApproval / argumentOverrides), mergeToolPolicies implementing the fixed layer precedence default → tenant → project → agent, and decideToolCall(policy, name) returning a typed \{ allowed, reason | requiresApproval \} verdict. Semantics locked in policy.spec.ts (11 tests): allow-list intersects across layers (agent cannot broaden), denies + requireApproval union across layers, glob (fs_*) supported, order-independent merge.
  • Epic 12 F1 slice — AbortSignal propagation to every model adapter. ChatRequest gains an optional signal?: AbortSignal field; Anthropic (messages.create + messages.stream), OpenAI-compatible (fetch), and Gemini (fetch) adapters all forward it. Aborting a session now cancels the in-flight HTTP/SDK call instead of letting it complete off-thread.
  • Epic 12 F2 slice — SpendBudgetLedger in @anvio/models. Per-key USD cap with hard-error enforcement: charge(key, usd) throws the new MODEL_SPEND_BUDGET_EXCEEDED (HTTP 402) AnvioError code when the charge would exceed the cap. remaining(key) returns Infinity when no cap set. Prior charges are retained on failure. Companion INVALID_ARGUMENT (HTTP 400) code also added.

Changed

  • Anthropic SDK bump @anthropic-ai/sdk ^0.52.0 → ^0.93.0 (packages/models). Closes the peer-dep warning from @anthropic-ai/claude-agent-sdk 0.3.228. No API-shape changes needed — the SDK's public message/content-block types remained compatible after the runtime type-predicate refactor in v1.25.1.
  • MetricsRegistry.recordTokenUsage accepts optional cacheReadTokens, cacheCreationTokens, latencyMs. Latency emissions land in a new histogram bucket per (provider, model, channel). snapshotHistogram(name, labels) is now public for tests.
  • packages/models now depends on @anvio/observability (metrics-emitter wiring). No consumer code change required.

Deferred

  • zod 3 → 4 migration — see new ADR-0012. Naive zod: ^4.0.0 bump surfaced 26 z.record() signature-change sites plus 25 .default(\{\}) type-narrowing failures across packages/core/src/schemas/* — kept on 3.25 until a dedicated migration story covers them alongside a companion Claude Agent SDK bump. Peer warning unmet peer zod@^4.0.0: found 3.25.76 is expected and non-blocking at runtime.

Docs

  • ADR-0012 — zod 3 → 4 migration deferred (context, migration checklist, gate).
  • ADR-0013 — Model Gateway evolves packages/models; no packages/model-gateway/ greenfield rewrite. Named gaps table (E12 F1/F2) with current status per slice.

Tests

  • 311 total (up from 291). New: metrics-emitter.spec.ts (2), packages/tool-bus/src/policy.spec.ts (11), spend-budget.spec.ts (7). pnpm test green, pnpm build green.

v1.25.1 — 2026-08-12

Security patch release — resolves 42 open Dependabot alerts (22 high, 18 moderate, 2 low) → 0.

Security

  • Direct dep bumps: next ^15.3.3 → ^15.5.21 (apps/web, 8 CVEs), drizzle-orm ^0.43.1 → ^0.45.2 (packages/db, RCE fix), @opentelemetry/sdk-node ^0.201.1 → ^0.217.0, @opentelemetry/auto-instrumentations-node ^0.59.0 → ^0.75.0, @opentelemetry/exporter-trace-otlp-http ^0.201.1 → ^0.217.0 (packages/observability).
  • Transitive pnpm.overrides (root package.json): pin patched versions for brace-expansion (>=5.0.9), esbuild (>=0.28.1), fast-uri (>=3.1.5), ip-address (>=10.3.1), js-yaml (>=4.3.1), postcss (>=8.5.23), protobufjs (>=8.6.6), multer (>=2.2.0), sharp (>=0.35.0), hono (>=4.12.34), @hono/node-server (>=2.0.5), @opentelemetry/core (>=2.8.0), @opentelemetry/propagator-jaeger (>=2.9.0).
  • Clean-install audit: pnpm audit now reports 0 known vulnerabilities.

Docs

  • ADR-0007 — enhancement tier list now names SQLite Level 2 (FTS5 recall), not only Postgres/Redis/NATS/OAuth.
  • ADR-0008 — line 33 replaced stub-adapter framing with the actual 16 shipped packages/channels/src/* adapters (cli, discord, email, feishu, google-chat, matrix, mattermost, rest-api, signal, slack, sms, teams, telegram, web-chat, whatsapp, plus generic webhook base).
  • ADR-0009 — Context + Decision sections now mark cursor, codex, and antigravity runtimes as shipped (vs "future parity targets").
  • ADR-0011 — D7 (Gemini native tools) marked Shipped v1.25.0 with CHANGELOG cross-ref; gap-list entry struck through.
  • ADR-0010 — "Positive" bullet corrected: default flags in v1.25.0 are promptCaching: true (opt-out via ANVIO_PROMPT_CACHING=false) and ANVIO_MAX_TOOL_OUTPUT_CHARS=8000, not the pre-ship placeholder values.

Added

  • P1.S6 golden trajectory capture scaffolding — apps/cli/scripts/capture-goldens.ts reads sessions from a workspace SessionStore, filters --min-messages/--limit/--tag, and writes per-session TrajectoryExport JSON plus a merged index.json under evals/goldens/v1-seed/. Idempotent (skips existing files unless --force). Coverage matrix and review checklist in evals/goldens/v1-seed/README.md.

Tests

  • tests/integration/phase-l6-runtime-learning.integration.spec.ts — new case skips session-end learning when soul evolution disabled covers the LearningEngine.onSessionCompleted deny path (asserts empty memoryNudge, no sessionSummary, no skillDraft, no drafts on disk) so soul-gated evolution is enforced at session boundary in addition to the existing tool-use boundary.

Fixed

  • Runtime build break after Claude Agent SDK bump (0.3.198 → 0.3.228) — replaced the hand-written \{ type: 'text'; text: string \} predicate in packages/runtimes/src/claude-code/claude-code-runtime.ts:62 with an Extract-based predicate so the filter narrows to the SDK's BetaTextBlock (which now requires a citations field) without duplicating the block shape.

v1.25.0 — 2026-08-03

Added

  • Token optimization Layer 1 — sliding window + auto-summarize on overflow (ADR-0010). memoryConfigSchema gains maxShortTermMessages (default 0 = unlimited, backward-compatible) and summarizeOnOverflow (default true). When history exceeds the cap, FilesystemMemoryProvider.storeConversation compresses the older head into a single [Context summary — N earlier messages compressed] assistant message and keeps the newest half. Platform wires SessionSummarizer (@anvio/learning) as the summarizer callback with rule-based fallback on LLM error. A 200-turn session no longer sends 200 messages of history on turn 201.

  • Token optimization Layer 2 — Anthropic prompt caching (ADR-0010). AnthropicProvider accepts promptCaching option (default true; opt-out via ANVIO_PROMPT_CACHING=false) and tags the system prompt block plus the last tool definition with cache_control: \{ type: 'ephemeral' \}. TokenUsage gains optional cacheCreationInputTokens and cacheReadInputTokens; inputTokens/totalTokens now include cached tokens so audits see the true prompt cost, with cache hits billed at ~10% of normal input. A 20-turn session with a 2 000-token system prompt saves ~38 000 input tokens.

  • Token optimization Layer 3 — tool output truncation (ADR-0010). formatToolResultMessage gains a maxOutputChars option and a new clipToolOutput(body, max) helper preserves head + tail with a [… N chars truncated …] marker. Both executeParsedToolCalls (fenced-block loop) and executeNativeToolCalls (native tool_use loop) resolve the clip limit via resolveMaxToolOutputChars(), reading env var ANVIO_MAX_TOOL_OUTPUT_CHARS (default 8000 chars ≈ 2 000 tokens; 0 disables). Errors are never clipped so failure diagnostics stay intact. Prevents a single 50 KB file read from inflating every subsequent turn.

  • Gemini native tools coverage — confirmed end-to-end via gemini-native-tools.spec.ts: GeminiProvider.supportsNativeTools = true, tools.functionDeclarations block emitted from ChatRequest.tools, functionCall extracted as ModelToolCall, prior assistant tool call + tool response correctly serialized as role: model → functionCall / role: user → functionResponse. Closes the P6+ "Gemini native tools" remaining item.

  • LLM SoulData extraction — new extractSoulData(source, slug, modelProvider?) in @anvio/souls (packages/souls/src/soul-data-llm.ts) LLM-projects SOUL.md into SoulDefinition.spec (identity, values, personality, preferences, communicationStyle, longTermGoals, behavioralTendencies). Falls back to parseSoulDefinitionMd regex baseline when no usable provider is supplied, when the JSON is unparseable, or when the model call throws. SoulService.importFromMarkdown(source, slug, \{ modelProvider, save \}) wraps it. CLI: anvio soul import <SOUL.md> --slug <slug> --llm runs the LLM path and prints the extracted identity alongside the policy.

  • OpenAI Realtime WebSocket STT — full live streaming (closes P15+ deferred item). OpenAiRealtimeSttSession now auto-connects on first feed() (was: connect only in end()), drains any pre-connect chunks after the socket opens, and surfaces conversation.item.input_audio_transcription.delta events through a new async iterator events(). streamRealtimeTranscribe(session, chunkSource) yields real partial + final transcript events pumped from a background feeder; the generic streamTranscribe in streaming-stt.ts delegates to that when the session is an OpenAiRealtimeSttSession, so anvio voice realtime-transcribe <file> now emits real deltas instead of fake [streaming:Nb] placeholders. New url option lets tests point at a mock WebSocket server. Errors surface as \{ text: '[error] …', final: true \} events. Covered by openai-realtime-stt.spec.ts (mock ws server: auto-connect, delta streaming, streamRealtimeTranscribe pipeline, onPartial cumulative callback, no-key stub).

Fixed

  • MCP first-call gate not persisting on local-runtime approvals — the gateway-worker path already called mcpFirstCallGate.approveToolName on APPROVAL_DECIDED, but the platform's local onApproval callback (used by direct-runtime channels without a gateway) did not, so approving an MCP tool interactively in anvio chat re-prompted on every subsequent call. Now hoisted into the shared onApproval handler so both paths persist. Coverage added in mcp-tool-port.spec.ts (9 tests: non-MCP passthrough, pending on first call, pass through after approve, disabled bypass, per-session/per-tool isolation, malformed name, listing, instructions).

v1.24.1 — 2026-07-04

CI/CD stability and docs auto-sync fixes

Fixed

  • pnpm lockfile out of sync — committed updated pnpm-lock.yaml after @anvio/goals was added to packages/platform deps; resolves ERR_PNPM_OUTDATED_LOCKFILE on every CI pnpm install --frozen-lockfile run
  • Lint errors in @anvio/skills — suppressed @typescript-eslint/no-this-alias in composable-registry.ts (required by method object literal pattern); removed stale // eslint-disable-next-line no-new-func in executor.ts where no-new-func rule is not active
  • Docs changelog never auto-updated — notify-docs.yml only watched docs/**; CHANGELOG.md lives at repo root so releases never triggered a sync. Added CHANGELOG.md to paths filter and added a Notify docs repo step to release.yml so every published GitHub Release dispatches to anvio-docs immediately

v1.24.0 — 2026-07-04

Hermes-parity: skill runtime gaps closed — versioning, test runner, goals integration, step output piping, workflow skill node

Added

  • skill node in workflow DAG — workflowNodeTypeSchema now includes 'skill'; WorkflowNode gains skill?: string and params?: Record<string,unknown>; DagExecutor.runNode() handles case 'skill' by delegating to injected runSkill() dep (wired in platform via executeSkill). Closes the workflow→skill integration gap
  • Step output piping to prompt — SkillExecuteResult now includes trace: string — a formatted markdown execution trace (step name, status icon, output snippet, final outputs map). skillCallTool detects the \{ outputs, trace \} shape and returns the trace as rich LLM-readable text so the model can reason about what each step produced
  • Skill versioning & upgrade — SkillInstaller.upgrade(slug) compares installed vs bundled catalog version and overwrites + records the upgrade atomically; new CLI command: anvio skill upgrade <slug> prints 1.0.0 → 1.1.0 diff or "already up to date"
  • Skill test runner — SkillTestRunner / createSkillTestRunner() wraps executeSkill with a MockToolPort that records all calls and returns configurable stub outputs; anvio skill test <slug> [--params '\{\}'] [--stub '\{\}'] prints step-by-step trace and tool calls, exits non-zero on failure
  • Goals integration (4 gaps closed):
    • GoalSpec.skills[] — list of skill slugs assigned to goal-responsible agents (schema addition, backward-compatible)
    • GoalSpec.onComplete.workflow — trigger a workflow slug when goal transitions to completed
    • SkillStep.goalSlug + SkillStep.progressIncrement — a step can auto-increment linked goal progress on success; platform callSkill wires this via FilesystemGoalEngine.updateProgress()
    • @anvio/goals added to platform dependencies so goal engine is available in runtime context

Changed

  • SkillCallFn return type extended to accept SkillCallResult = \{ outputs, trace \} in addition to raw Record<string,unknown>|string — backward-compatible
  • Platform callSkill now returns \{ outputs, trace \} instead of raw result.outputs

v1.23.0 — 2026-07-04

Skill execution engine — Hermes-parity structured authoring + mechanical runtime

Added

  • Skill parameter validator (L1) — validateParams() enforces required fields, type coercion (string/number/boolean/array/object), enum membership, and defaults; interpolateArgs() replaces \{\{varName\}\} in step args from the param + output context (packages/skills/src/param-validator.ts)
  • Skill executor (L2) — executeSkill() runs steps[] mechanically against a RuntimeToolPort: evaluates condition expressions (restricted Function over param+output vars), calls tools directly, stores results as named output variables, handles onError (fail/skip/retry with maxRetries), supports skill:<slug> sub-skill chains, and enforces timeout via AbortSignal (packages/skills/src/executor.ts)
  • Trigger matcher (L3) — matchTriggers() scans all catalog skills and returns slugs whose triggers[] match an inbound message (string: case-insensitive substring; object: event+channel). Auto-activated skills are merged into the agent's skill list before system prompt assembly — no agent config change needed (packages/skills/src/trigger-matcher.ts)
  • Composable skill registry (L4) — ComposableSkillRegistry wraps skills with composable: true as skill__<slug> tools with typed parameter schemas for native tool_use; dispatches calls through SkillExecutor; resolves skill:<slug> step references for skill-chain execution (packages/skills/src/composable-registry.ts)
  • skill_call gateway tool (L5) — anvio_tools__skill_call(slug, params) (enabled by default) lets the LLM explicitly invoke any skill mid-session with validated typed params; prose-only skills return rendered instructions; structured skills return outputs map as JSON (packages/tools/src/builtins/skill-call.ts)
  • Runtime wiring — AgentRuntime now: (a) runs matchTriggers on the inbound message and merges auto-activated skills before prompt assembly; (b) pre-registers agent skills into ComposableSkillRegistry; (c) wraps the base toolPort with composable skill tools so skill__* calls are served without going through the LLM; platform/src/index.ts injects skillCatalog into runtime deps and wires callSkill via toolGateway.mergeContext
  • Skill schema v2 fields — parameters[], steps[] (with tool, args, condition, onError, maxRetries, output), outputs[], triggers[], composable, timeout — all backward-compatible (existing prose-only skills still parse with empty defaults)
  • Bundled code-review skill v2 — upgraded reference example using all v2 fields; workspace code-review.md and architecture.md also upgraded
  • Design doc — docs/77-skill-execution-engine.md documents all 5 layers, field-to-layer mapping, and error types

Changed

  • renderSkillInstructions now renders parameters, steps, and outputs sections into the agent prompt in addition to name + description + instructions
  • renderSkillMd (learning loop draft writer) serialises all new schema fields into generated .md files
  • Gateway tool count: 73 → 74 (skill_call added)

v1.22.0 — 2026-07-04

Web dashboard + tool/runtime polish

Added

  • Web dashboard (apps/web) — Next.js 15 + Tailwind 4 dashboard UI with 5 pages: Overview (stats cards), Sessions (table with status badges), Agents (card grid), Gateway Tools (enabled/disabled), Metrics (Prometheus parser + auto-refresh). Dark theme, sidebar navigation, proxies to apps/api. Run with pnpm --filter @anvio/web dev (port 3100)
  • API: overview endpoint — GET /api/overview returns sessions/agents/tools counts and uptime
  • API: tools endpoint — GET /api/tools lists all 73 gateway tool keys with enabled status
  • API: sessions list — GET /api/sessions lists all sessions (with auth filtering)
  • Nous Portal OAuth — anvio setup-token --nous (1-click model + tools login via local OAuth callback host, no vendor CLI required; --token for headless, ANVIO_NOUS_MOCK=1 for dev/test)
  • Singularity/Apptainer runtime — SingularityRuntimeProvider, anvio runtime exec singularity -- <cmd> (local HPC container exec, SINGULARITY_IMAGE + SINGULARITY_BINARY, ANVIO_SINGULARITY_MOCK=1 for dev/test)
  • Atropos RL training — live fallback — rl_tool now calls a direct Tinker-Atropos HTTP API (ATROPOS_API_URL/ATROPOS_API_KEY) when MCP isn't configured, with ANVIO_ATROPOS_MOCK=1 for dev/test, instead of only returning a static MCP-setup note
  • Yuanbao tools — yb_tool action bundle (query_group_info, query_group_members, send_dm, search_sticker, send_sticker) via MCP preset (workspace/mcp/presets/yuanbao.yaml.example) or ANVIO_YUANBAO_MOCK=1 for dev/test
  • Video tools — real implementation — video_analyze now extracts a frame via ffmpeg (local files and remote URLs, FFMPEG_BINARY to override the binary) and runs vision analysis on it instead of returning a stub note; video_generate now delegates to an MCP video-gen preset with ANVIO_VIDEO_MOCK=1 for dev/test
  • Real IMAP IDLE (RFC 2177) — idleWatchInbox now issues a genuine IDLE command over a persistent connection and wakes immediately on untagged EXISTS/RECENT/EXPUNGE (falls back to the fixed-interval poll loop when the server's CAPABILITY doesn't advertise IDLE)
  • Honcho gateway tools — honcho_tool action bundle (context, profile, search, conclude) exposing the existing @anvio/memory Honcho provider via MCP preset (workspace/mcp/presets/honcho.yaml.example) or ANVIO_HONCHO_MOCK=1 for dev/test
  • hermes-tech skills catalog CI — .github/workflows/hermes-skills-catalog.yml runs scripts/import-hermes-skills.sh weekly (+ manual dispatch) and opens a PR when the imported skill catalog changes, instead of requiring a manual local run

Fixed

v1.21.1 — 2026-07-02

Runtime OAuth polish — full vendor runtimes + chain fallback

Added

  • Codex, Cursor, Antigravity runtime providers — OAuth via connection broker (codex exec, agent -p, agy -p)
  • Antigravity CLI auto-install — anvio setup-token --antigravity runs official Google install script when agy is missing
  • Chain fallback — runtime.fallbacks: [cursor, codex, local] walks A → B → C
  • Auth failure-time failover — OAuth expired / 401 mid-run retries next runtime in chain

Docs

  • README storage/OAuth/model auth catalog; ADR 0009 updated for implemented runtimes and fallback chain

v1.21.0 — 2026-07-02

Runtime OAuth — Claude Code, Cursor, Codex vendor login

Added

  • Claude Code OAuth runtime — ClaudeCodeRuntimeProvider via @anthropic-ai/claude-agent-sdk (Pro/Max subscription, not API key)
  • anvio setup-token — unified vendor login: --claude, --cursor, --codex, --antigravity, --list
  • Runtime routing — RuntimeRoutingAgentRuntime delegates to external runtimes when configured; falls back to local model loop
  • Connection broker integration — per-user OAuth tokens (anvio setup-token --claude --user alice)
  • Cross-runtime fallback binding (claude-code → cursor → local)

Docs

v1.20.0 — 2026-06-20

Unified gateway + SQLite sessions + OpenAI Realtime STT

Added

  • Unified gateway daemon — anvio gateway start|stop|status (channels + worker + REST + WebSocket in one process)
  • startUnifiedGateway() in @anvio/platform — Hermes GatewayRunner equivalent
  • SQLite session store — storage.provider: sqlite → workspace/state.db with FTS5 message search
  • OpenAI Realtime STT — anvio voice realtime-transcribe, ANVIO_VOICE_REALTIME=1
  • registerGatewayWorker() shared by gateway app and legacy worker

Docs

v1.19.0 — 2026-06-20

Phase P13 + P14 — Remote runtimes, channels depth, research tooling

Added — P13

  • SshRuntimeProvider.execRemote + anvio runtime exec ssh|daytona|modal -- <cmd>
  • Daytona/Modal remote exec with mock mode (ANVIO_DAYTONA_MOCK, ANVIO_MODAL_MOCK)
  • Streaming STT session (ChunkedStreamingSttSession) + anvio voice stream-transcribe
  • IMAP IDLE watch (EMAIL_IMAP_IDLE=1) and Message-ID/References email threading

Added — P14 (P12 partial closure)

  • MCP preset E2E tests for spotify, feishu, tinker-atropos
  • ANVIO_BROWSER_CDP_GRANT=1 extended browser_cdp methods (goto, click, fill, …)
  • Harness channel format snapshot tests
  • Google Chat service account delivery (GOOGLE_CHAT_SERVICE_ACCOUNT, GOOGLE_CHAT_SPACE)
  • Teams/Matrix fetchWithRetry with exponential backoff
  • Feishu webhook channel + SMS (Twilio) channel adapters
  • Workflow→skill example + workspace/skills/dag-report-skill.md
  • Langfuse dashboard JSON template (configs/observability/langfuse-dashboard.json)
  • Session trajectory export: anvio session export <id> [--md]
  • Desktop app scaffold (apps/desktop/README.md)

Docs

v1.18.0 — 2026-06-20

Phase P12 — Integration polish & slaude UX

Added

  • MCP allowedTools per-server allowlist; catalog filter in loadMcpToolCatalog
  • anvio mcp preset list|apply <name> — merge workspace presets into mcp/servers.yaml
  • Harness toolSurface: mcp_and_channel — hide built-in gateway tools on channels
  • anvio session 1on1 [--agent NAME] — dedicated CLI session with persistent metadata
  • Harness exports anvio_channel__set_status and anvio_channel__edit to model tool defs
  • Signal outbound via signal-cli REST (SIGNAL_CLI_REST_URL)

Fixed

  • GitHub Actions CI — remove conflicting pnpm version pin (use packageManager from package.json)

Docs

v1.17.0 — 2026-06-19

Phase P11 — Hermes tool parity (21 → 71 built-in gateway tools)

Added

  • P11a — Built-in catalog 12 → 21: list_dir, edit_file, run_shell, http_request, path_exists, file_delete, append_file, json_parse, datetime_now; OTel spans in worker/API; anvio planner run
  • P11b — +21 tools: web_extract, patch_file, search_files, browser session (8), terminal, process, todo, clarify, session_search, vision_analyze, kanban (4)
  • P11c — +15 tools: kanban depth (6), browser depth (4), delegate_task, cronjob, skills_list, skill_view, send_message; KanbanStore.updateTask; ToolGateway.mergeContext()
  • P11d — +14 tools: Home Assistant (4), mixture_of_agents, x_search, video_*, computer_use, discord_admin, skill_manage, spotify_search, feishu_doc_read, rl_tool; MCP presets in workspace/mcp/presets/

Docs

v1.15.0 — 2026-06-19

Phase P10 — Usage CLI, IMAP, MCP health, Prometheus

Added

  • anvio usage stats [--json] [--last 24h] from audit/tokens.jsonl
  • Email IMAP polling (pollInbox, worker auto-start)
  • McpBridge.getHealthReport() and anvio mcp health
  • Prometheus metrics registry + GET /api/metrics

Docs

v1.14.0 — 2026-06-19

Phase P9 — Token usage, MCP reconnect, SMTP, Teams cards

Added

  • addTokenUsage + stream usage parsing (Gemini, OpenAI-compatible)
  • TokenUsageAudit → workspace/audit/tokens.jsonl with cost estimates
  • MCP stdio auto-reconnect (invalidate, max 3 restarts)
  • Email SMTP outbound via STARTTLS (sendSmtpMail)
  • Teams Adaptive Card approval UI + invoke handler

Changed

  • Agent runtime accumulates token usage across tool iterations
  • Worker uses finalizeAgentRun() for completed runs

Docs

v1.13.0 — 2026-06-19

Phase P8 — MCP stdio, channel E2E, LLM SoulPolicy

Added

  • McpStdioClient with stdio transport (transport: stdio|stub in mcp/servers.yaml)
  • Teams Bot Framework webhook + outbound; Matrix room webhook; Email inbound/outbound queue
  • API routes: POST /api/channels/teams/webhook, POST /api/channels/matrix/webhook
  • LLM extractSoulPolicy from SOUL.md with regex fallback and id verification
  • Harness profiles for teams, matrix, email channels

Docs

v1.12.0 — 2026-06-19

Phase P7 — Gemini native tools + MCP agent runtime

Added

  • Gemini provider: native functionCall / functionResponse with supportsNativeTools
  • McpToolPort exposes enabled MCP servers to agent runtime as anvio_mcp__\{server\}__\{tool\}
  • McpFirstCallGate — first MCP tool use per session requires approval (firstCallApproval in mcp config)
  • Worker persists mcpApprovedTools on approval and resumes agent runs

Docs

v1.11.0 — 2026-06-19

Phase P6 — OpenAI native tools, memory recall, strict harness, CI fixes

Added

  • OpenAI-compatible providers: native tool_use / tool_calls streaming (supportsNativeTools)
  • Built-in anvio_tools__memory_recall wired to memory provider search (FTS5 / keyword index)
  • Strict harness: messaging channels no longer fall back to raw assistant dump; require anvio_channel__reply
  • Harness reply tracking (resetReplyTracking, hasDeliveredReply)

Fixed

  • Export ChannelHealthReport from @anvio/core (CI @anvio/channels build)
  • Type-safe summarizeChannelHealth exhaustive switch
  • Slack block-action payload typing for approver user.id

Docs

v1.10.0 — 2026-06-19

Phase P5 — Multi-channel harness approval loop

Added

  • End-to-end approval: agent anvio_channel__request_approval → pause → resume on any channel
  • HarnessAwareToolPort merges built-in tools + channel tools when harness enabled
  • Approver IDs with channel prefix (slack:, telegram:, whatsapp:, …)
  • approvalTimeoutSeconds enforced in ApprovalGate
  • Worker publishes APPROVAL_REQUESTED; resume via checkpoint after APPROVAL_DECIDED
  • Interactive approve/reject with approver auth on Slack, Telegram, WhatsApp, Discord, Mattermost

Docs

v1.9.0 — 2026-06-19

Phase P4 — Native tool_use & expanded gateway

Added

  • Anthropic native tool_use API in agent runtime (supportsNativeTools)
  • ModelToolDefinition, ModelToolCall, getModelToolDefinitions() on tool gateway
  • Tools: glob_files, grep_search, execute_code_pipeline (T1/T5)
  • anvio kb import-manifest — workspace manifest import (replaces slaude naming)
  • Example configs/examples/workspace-manifest.json

Changed

  • Removed slaude branding from docs; Hermes-focused parity narrative
  • import-slaude CLI kept as deprecated alias

Docs

v1.8.0 — 2026-06-19

Phase P3 — Media tools, slaude import, scheduled learning

Added

  • anvio_tools__image_generate — OpenAI DALL-E 3, saves to artifacts/images/
  • anvio_tools__text_to_speech — OpenAI TTS via @anvio/voice
  • anvio kb import-slaude — import slaude.json knowledge + skills (S6)
  • anvio learning summarize-sessions — batch session LLM/rule summarization
  • Automation action type learning.summarize_sessions for cron
  • Bundled automation session-memory-summarize.yaml (every 6h, disabled by default)
  • Example manifest configs/examples/slaude.json

Docs

v1.7.0 — 2026-06-19

Phase L6 — Runtime learning & LLM skill evolution

Added

  • Agent runtime tool loop (multi-turn, fenced anvio_tool blocks, max 5 iterations)
  • ToolGateway.setOnToolCompleted() hook for runtime learning
  • LearningEngine.onToolUseCompleted() — Hermes-style skill patch on tool success
  • LLM summarizer for skill evolution (SkillEvolutionSummarizer) with shouldCreate gate
  • LLM session summarizer when model provider configured (Anthropic preferred)
  • RuntimeToolPort in @anvio/core
  • Tool call parser, tool instruction renderer in @anvio/tools
  • publishAgentRunCompleted / finalizeAgentRun in @anvio/platform
  • Integration tests: Phase L6 runtime learning
  • Unit tests: skill evolution summarizer, tool call parser

Changed

  • anvio chat and inline anvio run emit AGENT_RUN_COMPLETED (learning on CLI paths)
  • Platform wires ToolGateway into DefaultAgentRuntime and learning model provider
  • Auto-promote runtime skills when soul.spec.evolution.requireApproval: false
  • Gap register updated: L5 session LLM ✅, L6 runtime self-improve ✅

Docs

v1.6.0 — 2026-06-19

Phase P2 — Voice on channels & Mattermost (desktop deferred)

Added

  • Mattermost channel adapter with WebSocket posted events and REST posts
  • Telegram voice note transcription hook (Whisper via @anvio/voice)
  • Discord audio attachment transcription hook
  • VoicePipeline.transcribeBuffer() and channel voice helpers
  • Channel health probe for Mattermost
  • Harness profile for Mattermost

Changed

  • Enable channel voice via spec.channels.voice.enabled or ANVIO_CHANNEL_VOICE=1
  • Workspace schema adds channels.mattermost

v1.5.0 — 2026-06-19

Phase P1 — Channel harness depth & contextual connections

Added

  • Connection broker: per-user isolation, thread grants, list/revoke APIs
  • OAuth login-host callback capture (startLoginHost)
  • CLI: anvio connect list|put|revoke|login-host
  • Multi-channel harness regression tests (telegram, discord, web-chat)
  • Connection isolation integration tests

Changed

  • Harness enabled by default in workspace (enabled: true)
  • Connect broker enabled by default (requires ANVIO_CONNECTION_ENCRYPTION_KEY)

v1.4.0 — 2026-06-19

Phase K+ — Memory search, browser sandbox, ACP production path

Added

Learning & memory

  • FTS5 recall layer via optional better-sqlite3 (memory.fts: true in workspace)
  • Honcho dialectic context merged into getContext when API key configured

Tooling

  • browser built-in tool with Playwright sandbox (falls back to web_fetch when Playwright absent)
  • Optional playwright dependency on @anvio/tools

Runtime & editor integration

  • ACP POST /prompt/stream SSE endpoint for streaming agent responses
  • CursorRuntimeProvider delegates to local ACP server (anvio acp serve)
  • CLI ACP server reuses sessions and streams via platform.runtime.stream

Changed

  • Platform passes memory.fts to memory provider factory
  • Fixed getBySession to skip recall index JSON (non-array entries)

v1.3.0 — 2026-06-19

Phase K — Priority pillars: Learning & memory, Automation & workflows, Authoring (Phase J), Tooling, Runtime.

Added

Learning & memory

  • Session summarizer stores compact summaries on session end
  • Filesystem cross-session recall index (keyword-based)
  • LearningEngine.proposeFromToolUse() for runtime skill drafts

Automation & workflows

  • PlanExecuteReviewEngine — PLAN → EXECUTE → REVIEW planner
  • configs/planner/plan-execute-review.yaml

Authoring & workspace (Phase J)

  • parsePersonaMd() — personas load from personas/*.md
  • Example workspace/personas/architect.md
  • scripts/import-hermes-skills.sh for hermes-tech skill import

Tooling & execution

  • Built-in file_read and file_write tools
  • execute_code routes through audited CodeExecutor when wired from platform

Runtime

  • Docker sandbox in @anvio/execution
  • First-class DockerRuntimeProvider in @anvio/runtimes

Documentation

Changed

  • FilesystemMemoryProvider injects recall hits into memory context
  • Platform wires createCodeExecutor into ToolGateway

v1.2.0 — 2026-06-19

Platform layer & multi-model — credential pools, provider routing, skills catalog, MCP integrations, and 18 model providers.

Added

Platform (Phase E)

  • Credential Pools (@anvio/credentials) — AES-256-GCM encrypted store with round-robin and failover
  • Provider Routing (@anvio/models) — task classifier, fallback chain, and routing.yaml router
  • Skills Catalog (@anvio/skills) — bundled + workspace override resolver and installer
  • Integration Framework (@anvio/integrations) — MCP registry, bridge, and blueprint mcp step wiring
  • 9 additional bundled skills in configs/skills/

Multi-model providers

  • OpenAI-compatible drivers: OpenAI, OpenRouter, DeepSeek, Groq, Mistral, Together, xAI, Fireworks, Moonshot, Cerebras, SambaNova, Perplexity, Cohere, Hugging Face, Ollama
  • Gemini provider via Google Generative AI API
  • ModelProviderRegistry — agents resolve provider from spec.model.provider
  • custom provider for arbitrary OpenAI-compatible endpoints (baseUrl + apiKeyEnv)

CLI & workspace (U19)

  • anvio credentials, anvio routing, anvio skill, anvio mcp, anvio workspace validate
  • anvio routing catalog|providers — list supported and configured providers
  • Workspace init scaffolds providers/routing.yaml, mcp/servers.yaml, hooks/hooks.yaml

Core schemas

  • credential, routing, mcp, model-provider schemas and credential port

Tests

  • Integration tests for credentials, routing, skills catalog, and MCP integrations

Changed

  • DefaultAgentRuntime uses per-agent model provider from registry
  • createPlatform() registers all configured providers from environment
  • Documentation and roadmap mark Advanced Agent OS Phases A–F complete

v1.1.0 — 2026-06-19

Added

Identity & memory

  • Soul System (@anvio/souls) — persistent agent identity in workspace/souls/
  • Goal System (@anvio/goals) — durable goals with progress tracking
  • MemoryProvider port and factory — unified memory abstraction over filesystem (default)

Automation & workflows

  • Automation Engine (@anvio/automation) — cron scheduler with filesystem state in workspace/automations/
  • Blueprint Catalog (@anvio/blueprints) — DAG blueprint executor and template engine
  • 8 built-in blueprints in configs/blueprints/ (daily-summary, github-triage, security-audit, …)
  • Event Hooks (@anvio/hooks) — script, webhook, and MCP hook handlers

Coordination

  • Kanban Engine (@anvio/kanban) — task boards with worker lane routing
  • Batch Processing (@anvio/batch) — scheduled batch jobs with filesystem progress store
  • Subagent Delegation v2 — task planner and delegation progress tracking in @anvio/agents

Execution

  • Runtime Providers (@anvio/runtimes) — local, Claude Code, Codex, Cursor, external stub
  • Code Execution (@anvio/execution) — sandboxed process executor with audit log
  • ACP Editor Integration (@anvio/acp) — Agent Client Protocol server for editor attach

Core schemas & ports

  • Schemas: soul, goal, automation, batch, blueprint, kanban, hook
  • Ports: soul, goal, memory-provider, runtime-provider, code-execution, kanban, batch

CLI commands

  • anvio soul, anvio goal, anvio blueprint, anvio automation, anvio cron
  • anvio hooks, anvio kanban, anvio batch, anvio runtime, anvio exec, anvio acp

Workspace templates

  • workspace/souls/architect-soul.yaml, workspace/hooks/hooks.yaml, workspace/automations/daily-summary.yaml

Documentation

  • Advanced Agent OS overview (docs 24–40) and implementation plan
  • Updated architecture and roadmap for Phase A–E

Tests

  • Integration tests for Phase A/B, delegation, kanban, and batch

Changed

  • createPlatform() wires soul service, blueprint executor, automation engine, and hook engine
  • Agent schema supports spec.soul alongside persona fallback
  • Workspace schema extended for advanced OS configuration

v1.0.0 — 2026-06-19

Added

Core platform

  • Monorepo with pnpm workspaces and Turborepo (apps/ + packages/)
  • @anvio/core — Zod schemas, ports, and shared types
  • @anvio/platform — createPlatform() composition factory wired from anvio.yaml
  • @anvio/workspace — workspace loader, filesystem session store, artifact helpers
  • Progressive enhancement Levels 1–4 (filesystem → SQLite → PostgreSQL → K8s)

Agent runtime

  • @anvio/agents — DefaultAgentRuntime with persona, skills, and memory integration
  • @anvio/personas and @anvio/skills — YAML-driven configuration loaders
  • @anvio/models — Anthropic provider with mock fallback when no API key is set
  • @anvio/memory — filesystem memory store (default); PostgreSQL/Redis optional (Level 3)
  • SupervisorOrchestrator for multi-agent delegation patterns

CLI (primary interface)

  • anvio init, anvio agents list, anvio chat, anvio run
  • anvio sessions, anvio status, anvio logs
  • anvio approve, anvio stop, anvio inbox
  • anvio worktree list|create|remove — optional git worktree isolation per session
  • One-command installer: scripts/install.sh

Channels

  • ChannelHub with session bridge and filesystem inbox
  • Built-in adapters: CLI, REST API, Web Chat
  • External adapters: Telegram, Discord, Slack (Socket Mode), WhatsApp (webhook)
  • Channel config in workspace/anvio.yaml (spec.channels.*)
  • WhatsApp webhook controller at /api/channels/whatsapp/webhook

Apps (optional Level 2+)

  • apps/api — NestJS REST API (auth optional)
  • apps/worker — background agent run consumer with channel progress events
  • apps/gateway — WebSocket gateway

Storage & auth

  • Filesystem storage provider (default) — no database required
  • Auth disabled by default (NoAuthProvider); optional JWT/OAuth plugin
  • Portable workspace/ directory — backup, git, move without migration

Events

  • In-process LocalEventBus (default)
  • NATS JetStream support (optional Level 3)

Documentation

  • Architecture docs, ADRs (local-first, channel hub)
  • Comprehensive README with Mermaid diagrams

CI

  • GitHub Actions: lint, typecheck, test, build on main and PRs
  • Release workflow — auto-publish GitHub Releases from v* tags using CHANGELOG.md

Channel health

  • anvio channels status [--json] — probe credentials and connectivity without starting the worker
  • Health states: healthy, degraded, disabled, misconfigured, unreachable

Changed

  • Architecture revised from enterprise/SaaS assumptions to local-first defaults
  • Personas and skills moved from database to filesystem config loaders
  • API no longer requires JWT authentication by default

Security

  • Runtime workspace data (memory/, sessions/, inbox/, worktrees/, artifacts/) excluded from git

Release process

  1. Update [Unreleased] section in this file with your changes

  2. Move entries under a new ## [X.Y.Z] - YYYY-MM-DD heading

  3. Commit, tag, and push:

    git tag -a v1.0.1 -m "Anvio v1.0.1"
    git push origin main --tags
  4. GitHub Actions Release workflow validates the build and publishes a GitHub Release with notes extracted from this file.

Release process

Anvio's own release process, for reference:

  1. Add entries under ## [Unreleased] in CHANGELOG.md as changes land.

  2. At release time, move those entries under a new ## [X.Y.Z] - YYYY-MM-DD heading.

  3. Tag and push:

    git tag -a v1.0.1 -m "Anvio v1.0.1"
    git push origin main --tags
  4. The Release GitHub Actions workflow re-validates lint/typecheck/build/test, then publishes a GitHub Release using the matching CHANGELOG.md section as the release body.

See Git Workflow for how this fits into day-to-day branching and commits.

Edit on GitHub

Last updated on

On this page

Unreleasedv2.11.0 — 2026-10-26SecurityFixedChangedAddedKnown issuesv2.10.0 — 2026-10-23FixedChangedAddedv2.9.0 — 2026-10-04AddedChangedKnown limitationsv2.8.1 — 2026-10-03FixedDependenciesKnown limitationsv2.8.0 — 2026-10-03AddedFixedSecurityKnown limitationsv2.7.0 — 2026-10-02AddedFixedKnown limitationsv2.6.4 — 2026-09-14Fixedv2.6.3 — 2026-09-14FixedChangedAddedv2.6.2 — 2026-09-14FixedKnown limitationsv2.6.1 — 2026-09-13Fixedv2.6.0 — 2026-09-13AddedChangedv2.5.0 — 2026-09-09ChangedRemovedAddedv2.4.0 — 2026-09-08Addedv2.3.1 — 2026-09-08FixedAddedv2.3.0 — 2026-09-01AddedChangedDeferred (documented, not shipped)v2.2.1 — 2026-09-01AddedDocsNotesv2.2.0 — 2026-09-01Added — per-thread overrides (the headline)Added — introspectionAdded — session controlAdded — debug + feedbackChangedDeferred to ADR-0025Testsv2.1.2 — 2026-08-31AddedDocsTestsv2.1.1 — 2026-08-31AddedChangedFixedTestsv2.1.0 — 2026-08-31AddedChangedDocsFollow-upv2.0.2 — 2026-08-31Fixedv2.0.1 — 2026-08-31FixedTestsv2.0.0 — 2026-08-23⚠️ Breaking changesFixedAddedChangedDocsKnown gapsTestsv1.27.0 — 2026-08-12AddedChangedDocsTestsv1.26.0 — 2026-08-12AddedChangedDeferredDocsTestsv1.25.1 — 2026-08-12SecurityDocsAddedTestsFixedv1.25.0 — 2026-08-03AddedFixedv1.24.1 — 2026-07-04Fixedv1.24.0 — 2026-07-04AddedChangedv1.23.0 — 2026-07-04AddedChangedv1.22.0 — 2026-07-04AddedFixedv1.21.1 — 2026-07-02AddedDocsv1.21.0 — 2026-07-02AddedDocsv1.20.0 — 2026-06-20AddedDocsv1.19.0 — 2026-06-20Added — P13Added — P14 (P12 partial closure)Docsv1.18.0 — 2026-06-20AddedFixedDocsv1.17.0 — 2026-06-19AddedDocsv1.15.0 — 2026-06-19AddedDocsv1.14.0 — 2026-06-19AddedChangedDocsv1.13.0 — 2026-06-19AddedDocsv1.12.0 — 2026-06-19AddedDocsv1.11.0 — 2026-06-19AddedFixedDocsv1.10.0 — 2026-06-19AddedDocsv1.9.0 — 2026-06-19AddedChangedDocsv1.8.0 — 2026-06-19AddedDocsv1.7.0 — 2026-06-19AddedChangedDocsv1.6.0 — 2026-06-19AddedChangedv1.5.0 — 2026-06-19AddedChangedv1.4.0 — 2026-06-19AddedLearning & memoryToolingRuntime & editor integrationChangedv1.3.0 — 2026-06-19AddedLearning & memoryAutomation & workflowsAuthoring & workspace (Phase J)Tooling & executionRuntimeDocumentationChangedv1.2.0 — 2026-06-19AddedPlatform (Phase E)Multi-model providersCLI & workspace (U19)Core schemasTestsChangedv1.1.0 — 2026-06-19AddedIdentity & memoryAutomation & workflowsCoordinationExecutionCore schemas & portsCLI commandsWorkspace templatesDocumentationTestsChangedv1.0.0 — 2026-06-19AddedCore platformAgent runtimeCLI (primary interface)ChannelsApps (optional Level 2+)Storage & authEventsDocumentationCIChannel healthChangedSecurityRelease processRelease process