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 inskills/_drafts/unless the soul setsevolution.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/importFromMarkdownrewrote 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-codeddev-secretfallback 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.yamlgains an optionalnetworkblock (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-processexecute_codefallback is removed. Path traversal fixed in storage, tool builtins,/draft/discard/promoteand the skill catalog. - An invalid
anvio.yamlno 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 createYAML 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
contentare 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.startAllusedPromise.all, so one adapter failing to start (e.g. an expired token) failed the whole boot. Failures are now logged and returned asChannelStartFailure[]; 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 withevolution.allowAutoUpdate: falsestill 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) andmixture_of_agentsfans out to at most 8 agents. - MCP stdio did not work with official MCP servers (#118) — the client used
Content-Lengthframing; the MCP stdio transport is newline-delimited JSON. Now NDJSON, still acceptingContent-Lengthframes. A missing MCP binary no longer raises an unhandledspawn ENOENT, request timers no longer keep the process alive, and MCP server processes are stopped onplatform.shutdown(). POST /api/sessions/:id/messageswaited 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 (
failedstatus,AGENT_RUN_FAILED, a "Task Failed" notice). Sessions left incalling_modelby a crash are markedfailedwithmetadata.interruptedAton 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.requireApprovalnow defaults totrue. Souls that relied on auto-published tool-use skills must setrequireApproval: false. - Behavior change: JWT auth fails boot without
JWT_SECRET; network tools refuse private targets unless listed innetwork.allowHosts; an invalidtools/gateway.yamloranvio.yamlfails 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.mdindex, consolidateddocs/ROADMAP.md, ADR index with reconciled statuses; obsolete plans and gap registers moved todocs/_detached/and excluded from AI coding-agent context; the vNext plan of record moved todocs/plans/. - CLI split (#117) —
apps/cli/src/main.ts2,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
localruntime 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. aclaude-*id to OpenAI). The agent's provider now wins unless the agent setsmodel.routingor a skill declares aroutinghint; a route that lands on another provider sends no model id, so that provider uses its default. spec.model.routingwas silently dropped (#111) — the schema stripped the field documented indocs/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.yamlrouting is unchanged. - SDKs updated (#109) —
@anthropic-ai/claude-agent-sdk0.3.288,@anthropic-ai/sdk0.131.0,@a2a-js/sdk1.3.0,@opentelemetry/sdk-node0.222.0. - Codex CLI bundled (#109) —
@openai/codexships with@anvio/runtimes; thecodexruntime andanvio setup-token --codexno longer need a global install. An explicitbinaryoverride still wins;codexonPATHis 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/acpis 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-levelSKILL.mdimports 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 skillsis now an alias ofanvio skill. Logic lives in@anvio/skills(importSkills,findSkillDirs,isGitSource).SkillInstaller.installFromDir(#106) — copies a skill folder (SKILL.mdplusscripts/,references/, …) intoworkspace/skills/<slug>/, recorded in the manifest withsource: 'dir'.remove()also deletes the folder.
Changed
- Vendor skill tags are kept (#106) —
parseSkillMdmergesmetadata.<vendor>.tags(e.g.metadata.hermes.tags) with top-leveltags, deduplicated. - Folder skills know where their files are (#106) —
skills/<slug>/SKILL.mdgets a workspace-relative directory hint prepended to its instructions soscripts/...references resolve. Flatskills/<slug>.mdskills 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,platformsandrelated_skillsare 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-coderuntime ignored persona/soul (#104, #102) — vendor runtimes received\{ session, agent, input \}with no system prompt, sopersonas/*.md, skills and soul context never reached the model, which behaved like an interactive CLI (e.g. pointing users atclaude mcp add).RuntimeRequestgains an optionalsystemPrompt, filled by the routing runtime for non-localruntimes. Theclaude_codepreset now appends an Anvio preamble (not an interactive CLI; tools aremcp__anvio__anvio_tools__<name>/mcp__anvio__anvio_channel__<name>), the persona prompt, then the tool instructions.- Gateway crash on Node 24 (#98, #97) —
better-sqlite311.x had no Node 24 support (ABI mismatch, then aRemoveEnvironmentCleanupHookabort during GC). Upgraded to^12.11.1(Node 20–26).better-sqlite3is listed inpnpm.onlyBuiltDependenciessopnpm install/pnpm rebuildactually 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
Known limitations
- Sessions that already replayed refusals via
<conversation_history>keep them until/reset. - Cursor, Codex and Antigravity runtimes do not read
request.systemPromptyet.
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 inworkspace/skills/_draftslike learning-loop output;promoteis still the only way to make it live.mcp_managetool (#99, ADR 0036) —list | add | removeMCP servers at runtime. New tools are available on the next turn without a gateway restart (McpToolPort.setCatalog).servers.yamlis edited as raw YAML, so$\{ENV\}secrets of other servers are never written back expanded.- Remote MCP servers over HTTP (#100, ADR 0037) —
transport: httpwithurlandheaders($\{VAR\}placeholders allowed). Speaks Streamable HTTP (JSON or SSE replies,Mcp-Session-Id) and falls back to the legacy HTTP+SSE transport.mcp_manage addaccepts aurl, 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 toanvio_channel__replyreached the user, and models filled it with a summary. The tool and instructions now ask for the complete answer, and a turn that never callsreplydelivers its raw output instead of dropping it. - CI red on
mainafter #99 (#100) — the built-in tool-count assertion still expected 75 keys.
Security
skill_manageandmcp_manageare disabled by default. Localaddis restricted tomcp/servers.yamlspec.agentAllowedCommands(defaultnpx, uvx, node, python3, docker). That restricts the launcher, not the package:npx -y <anything>is still arbitrary code. Remote urls must behttps(plainhttponly 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: gbrainkeeps 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 andhealthCheckreports why.anvio soulandanvio learninguse 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 toanvio/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'sevolution.allowAutoUpdate. - Persistent engagement +
/1on1thread 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 undertests/simulation/, andanvio 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 | statusrunsfile_read,file_write,list_dir,edit_file,run_shelland foregroundterminalon 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, soengageOn: mentioncould never engage a Slack thread. Mentions are now detected from<@U…>using the bot id fromauth.test. - Broken lockfile failed every CI install (#90) —
pnpm-lock.yamlpinnedjose@6.2.8with no package entry after a dependabot merge (ERR_PNPM_LOCKFILE_MISSING_DEPENDENCYsince 2026-09-16). - Claude Code
WebFetchflooded the context (#84) — the SDK's uncappedWebFetchis denied in favour ofanvio_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
/commandsand the adapter does not yet handle Socket Modeslash_commandsenvelopes, so/1on1,/remoteand other Anvio commands do not reach Anvio from Slack. Works on Telegram, Discord, Teams, Mattermost and other channels that deliver/textas messages. - Mention detection exists only for Slack and Telegram;
engageOn: mentioncannot engage on other channels yet (a/1on1owner is unaffected). /remotestores its ed25519 private key as a0600file underworkspace/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
allowedToolswas broader than its rationale (#78) — every Anvio-provided tool was placed inallowedTools, socanUseToolwas never invoked for any of them. Mutating tools likeanvio_mcp__github__create_issueandanvio_tools__http_requestbypassed 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) —loadSoulPolicyread the file raw withoutexpandEnvString, sotelegram:$\{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.resolvenow 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) —
ApprovalGatekept pending approvals and timers in memory only; nothing rehydrated them on restart. Addedrehydrate()which loads persistedpendingApprovalrecords on startup, re-arms timers fromexpiresAt, and immediately expires past-due entries./resetnow clearspendingApprovaland returnsstatustoidle.
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 entitiesthrew out of the adapter, the hub, the worker's stream loop andLocalEventBus.dispatch, rejecting thepublish()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. splitMessagecorrupted 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 calledresolveOrCreateand 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
MaxPostSizeis settable via a newmaxPostSizeoption. - High-traffic adapters bypassed
fetchWithRetry(#75) — the adapters that actually meet rate limits were the ones calling barefetch. Retry is now opt-out via the base class, and the helper honours the server's ownRetry-After/retry_afterinstead of discarding it for a fixed schedule capped at 5s.
Changed
BaseChannelAdapterowns delivery, not just dispatch (#76) — stream buffering, message chunking, retrying transport and the typing-indicator lifecycle moved into the base class, so an adapter declaresmaxMessageLength,supportsNativeTypingandtypingRefreshMsinstead of reimplementing the machinery. Removes five copies of the delta buffer and three ofsplitMessage.
Added
- Native progress indicators on every channel that has one (#76) — Telegram
sendChatAction, DiscordPOST /channels/\{id\}/typing, Mattermostuser_typingover its WebSocket, MatrixPUT /rooms/\{roomId\}/typing/\{userId\}(when the bot user id is configured), Teams Bot Frameworktypingactivity, and WhatsApptyping_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🔄 phasetext 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_requiredthroughsendNotification(plain text), so the ✅/❌ inline controls every adapter already implements were never shown. It now callssendApprovalRequest, and registers the runtime's request id withApprovalGateso the button callback resolves an id the gate actually knows. claude-coderuntime 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'scanUseToolprompts route through the newRuntimeApprovalPort— which blocks on a real channel approval and fails closed.- Telegram gave no progress feedback during a turn (#70) —
sendChatActionwas never implemented, so a buffered reply arrived after total silence. Adapters can now implementsetTyping; 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 theAPPROVAL_DECIDEDevent 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-codeuses nativesession_idresume viavendorSessionsmetadata; others get abuildPromptWithHistory()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
captureOntomentioninstead ofalways, and requires minimum 4 messages before auto-drafting. SOUL.md frontmatterevolutionfield now honored instead of hardcoded. Soul scaffold template fixed from invalidcaptureOn: nevertomanual.
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 wiresanvio.yamlA2A config into a runningA2AServer(agent discovery, session creation, tool-loop bridging)packages/tools/src/builtins/a2a-delegate.ts— newa2a_delegatebuilt-in tool lets agents delegate tasks to remote A2A peers by aliaspackages/a2a/src/server/anvio-user-builder.ts— maps A2A request context into Anvio user identity for session ownershiptests/integration/a2a.integration.spec.ts— end-to-end integration tests for A2A server bootstrap, agent card, task send/receivepackages/coreworkspace schema —A2AConfigZod schema added (a2a.enabled,a2a.agents,a2a.remotes[]with alias/url/auth)packages/coretool-gateway schema —a2a_delegateregistered in tool gateway schemapackages/toolstool registry —a2a_delegatewired into built-in tool descriptions, schemas, and gateway index
Changed
packages/platform/src/gateway-http.ts— mounts A2A routes when config enabledpackages/platform/src/index.ts— exportsbootstrapA2Aand integrates into platform boot sequencepackages/platform/src/platform-context.ts—a2aServeradded to platform context interfacepackages/a2a/src/server/a2a-server.ts— acceptsuserBuilderconfig, passes to executorpackages/a2a/src/index.ts— re-exportsAnvioUserBuilder- ADR-0027 through ADR-0031 — status updated from
proposedtoaccepted 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/sdkv1.1.0)- Server:
A2AServernow wraps SDK'sDefaultRequestHandler+ Express transport handlers (jsonRpcHandler,restHandler,agentCardHandler) instead of hand-written JSON-RPC/REST routing AnvioAgentExecutor: implements SDK'sAgentExecutorinterface, bridges to Anvio runtime viaRequestContext+ExecutionEventBus- Client:
A2AClientwraps SDK'sClientFactorywithJsonRpcTransportFactory+RestTransportFactory - Types: all A2A types now re-exported from
@a2a-js/sdk— protobuf-generated with$casediscriminated unions forPart.content, numeric enums forTaskState/Role - Mapping layer: updated to SDK enums (
TaskState.TASK_STATE_WORKING,Role.ROLE_AGENT) instead of string literals
- Server:
Removed
- Hand-written types (
packages/a2a/src/types/) — replaced by SDK re-exports TaskManager— replaced by SDK'sInMemoryTaskStoreSseStream— replaced by SDK streaming transportPushNotifier— replaced by SDK'sDefaultPushNotificationSenderAgentDiscovery— replaced by SDK'sClientFactory.createFromUrl()
Added
@a2a-js/sdkv1.1.0 andexpressas dependencies (SDK transport handlers use Express middleware)@types/expressas 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:
A2AClientwithsendMessage/sendStreamingMessage/getTask/cancelTask,AgentDiscoverywith TTL cache - A2A Tool:
A2AToolwraps 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.jsonfrom AnvioAgentDefinitionfrontmatter - 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.jsontoplatform.a2aServerwhen 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
setMyCommandsbatch failure (issue #59) — command names containing-,., uppercase, or whitespace caused the Telegram Bot API to reject the entire batch. NewbuildTelegramCommandList()sanitises names to[a-z0-9_]\{1,32\}, deduplicates, and skips non-syncable entries. Comprehensive test suite added. /providers-testfolded into/providers testsubcommand — 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./confirmand/cancelmarkedsyncable: false— these commands require an inline token the native picker cannot supply; hiding them from the auto-generated menu prevents misleading entries.
Added
SlashCommand.syncablefield (packages/core) — whenfalse, 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/a2aimplementing 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 toagentRunCheckpoint.messages),/resumereopens the lastfailedsession in this(channel, threadId)and republishesAGENT_RUN_REQUESTED(rewinds to the checkpoint when present), and/history --branchrenders 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,/pendinglists the session's live tokens. Tokens live in-process, expire after 5 minutes, and carry into the audit record as theapprovalIdfield 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 callsfs.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 byConnectionBroker.revokeConnection./batch [list|status <id>|stop <id>|enqueue <blueprint>]— chat-native subset ofanvio batch, wired through a sharedBatchEnginecomposed from the workspace filesystem storage and the platform'sBlueprintExecutor. Enqueue is fire-and-forget with a 250ms first-tick race so the operator gets the newjobIdback before the run completes./providers-test <route> [prompt]— probes a routing entry via the platform'sModelRouter.chatand reports\{selectedProvider, latency, sample\}. NewprobeModelRouteclosure onExtrasOptions./setup-token <vendor>— chat handler prints the exactanvio 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/batchis now a workspace dep of@anvio/platform.
Deferred (documented, not shipped)
- Two-turn
/editwith a specialist-agent swap. The ADR's specialist rewrite requires per-primitive agent selection (documenterfor prose,tech-leadfor structure) — the current/editaccepts the full body inline in a fenced block. Specialist swap becomes an ADR-0026 conversation. /providers add|removemutations againstproviders/routing.yaml. The routing schema is route-based, not provider-list-based, so ADR-0025'sadd|removeshape 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 fromworkspace/audit/tokens.jsonl+ aggregated input/output/cost totals and the top-5 agents by spend. UsesreadTokenUsageAudit+aggregateTokenUsagefrom@anvio/platform./memory <query>— search the workspace memory scoped to the current user viaMemoryProvider.search. Reports up to 8 hits./knowledge [<slug>]— list knowledge bases (workspace/knowledge/*) or the last 20 raw entries under one. Backed byKnowledgeBaseStore. New@anvio/knowledgeworkspace dep on@anvio/platform./artifacts [--session <id>\|--global]— recent artifacts fromFilesystemArtifactStore.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 viaConnectionBroker.listConnections(). Payloads are never printed; only channel, user, service, and expiry./worktree— git worktrees created for isolated sessions viaWorkspaceManager.worktrees.list().
Docs
- New (draft) ADR —
docs/adr/0025-mutation-and-forking-surface.mddesigns the/new//edit//rmmutation surface,/branch//resumesession forking, batch / worktree / connections mutations,/setup-token, and/providers add|remove|testfor v2.3.0. Includes the approver gate, soft-delete toworkspace/_trash/, and the two-turn/editUX with a specialist-agent-scoped rewrite. docs/10-channels.md— Slash commands table extended with the seven new entries.
Notes
@anvio/knowledgeis now a workspace dep of@anvio/platform. No API change toKnowledgeBaseStoreitself.- The
/audithandler reads throughworkspace.storage; it does not require theTokenUsageAuditservice — 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 tosession.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/streamcallapplySessionOverrides(agent, session)before dispatch. The overrides fold into the agent'sspec.model/spec.runtime.provideron a shallow-cloned agent; the original definition is untouched and thread B never sees thread A's override.
Added — introspection
/personas,/persona <slug>— fromworkspace/personas/*.mdviaPersonaService./workflows,/workflow <slug>— fromWorkflowRegistry;/workflowrenders the node list./blueprints,/blueprint <slug>— fromBlueprintCatalogRegistry./kanban— boards + column labels viaKanbanEngine.listBoards()./tools—ToolGateway.listTools()./hooks—workspace/hooks/hooks.yamlentries via newHookEngine.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— publishAGENT_RUN_STOP_REQUESTEDfor the current run./detach— flipsession.detached = trueso the run continues in the background./checkpoint [label]— persistsession.metadata.agentRunCheckpointwith 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 toworkspace/memory/feedback/<sessionId>.jsonltagged by turn timestamp.
Changed
HookEngine.list()— new public method returning the loaded hook registry.SlashCommandRegistry.register(command)— port doc'dregister()from v2.1.2 is now heavily used.
Deferred to ADR-0025
- Uniform
/new,/edit,/rmmutation surface across every primitive (agent/persona/soul/skill/workflow/goal/blueprint/automation/hook/mcp/knowledge). The/editflow needs a specialist-agent-scoped rewrite + approver gate +_trash/restore path — larger than a router expansion. /resume,/branch— needparent_session_idchain 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/helpso the picker responds to whichever name the user's muscle memory picks (Hermes/openclaw parity)./souls,/soul <slug>— list souls and show one fromworkspace/souls/*.md./soulrenders 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 outslash-commands-extras.tsin 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.tsgrows by 2 tests:/commandsmatches/help, andregister()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>,/captureslash commands./draftrenders the frontmatter + body (truncated at 2KB for chat surfaces),/discardsoft-deletes toworkspace/skills/_drafts/_discarded/so an accidental discard is recoverable,/captureforce-extracts a draft from the current session bypassingSkillEvolutionSummarizer.shouldCreate.- Post-run channel notification when a session produces a draft. The bot announces
📝 Skill draft captured: <slug>with/draft,/promote, and/discardprefilled — 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//captureproduce drafts).allowAutoUpdate: falsestill wins.anvio learning promote-session <sid> [--force]— force-extract a draft from a specific session id, bypassing the auto-gate.--forcealso 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/(acceptss/m/h/dsuffix; default 7d).anvio learning draft <slug>,anvio learning discard <slug>and matchinganvio skill …aliases so every draft-lifecycle verb is reachable from both nouns.
Changed
- Diff-mode promotion.
SkillEvolutionWriter.promoteDraftnow returns\{ path, alreadyExisted, diff? \}. When the target skill already exists and its content would change, the write is refused anddiffcarries the change so the caller can surface it.--force(CLI) /--forcearg (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'sshouldCreate=falserefusal, so/captureon a short session still produces something.
Fixed
- Force-captured drafts get the
capturedtag 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,pruneDraftswith 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
SlashCommandRegistryport and platform-side factory (#55, ADR-0023). NewSlashCommand/SlashCommandContext/SlashCommandResult/SlashCommandRegistryin@anvio/core.createSlashCommandRegistryin@anvio/platformcomposes the registry fromworkspace.loader.listAgents/listSkillsplus the learning engine's draft list, plus built-ins:/help,/whoami,/agents,/agent <slug>,/skills,/reset,/drafts,/promote <slug>.createInboundHandlerin@anvio/channelsdispatches through the registry before the harness gate, so a DM's/helpon a workspace whose default profile would drop it asrestricted_zonestill gets a reply./agent <slug>and/resetare real behavior, not stubs./agentvalidates against the workspace catalog and writessession.agentNamethrough the session store./resetclearsmessagesandmetadata.agentRunCheckpointon 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.slashCommandsis optional so tests and third-party callers stay working. - Fall-through slash escape at the channel layer. Unknown
/foois prefixed with U+200B before being published toAGENT_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 promotealiases (#56 (a)). The learning-loop surface is now discoverable under the noun users grep for.anvio learning drafts/promotestill 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), andcapturedAt. Survives the skill parser (which ignores unknown top-level keys) and stays grepable. SessionLearningInput.channel—LearningEngine.onSessionCompletednow 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.mdrecords 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//promotechat commands.
Follow-up
- Discord Application Commands and Slack
slash_commandspicker sync (ADR-0024, not written yet). The router already accepts their inbound/footraffic — only the client-side picker generation is deferred. - Workspace-defined commands (
workspace/commands/*.mdbound to skills) and per-agent scoping (filter list byspec.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 shippedtelegram-likeprofile wasengageOn: mention, but nothing populated the flag, so every message disengaged and was dropped. Now parsesmention/text_mention/bot_commandentities against the bot's owngetMe().username. The shipped default flips toengageOn: alwaysbecause private chats have no other participant formentionto match against. - Every DM dropped by
canAccessRestrictedZone; gate emitted no log (#52). Adapter now setsmetadata.isDmfromchat.type, andHarnessGateway.handleInboundemits a one-line drop reason gated byANVIO_HARNESS_DEBUG. Silent drops behind a "healthy" status were the worst possible failure mode. setMyCommandsnever called; no slash-command dispatcher (#53). Registered a default set (/help,/agents,/skills,/reset,/whoami) onstart()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 +
ClaudeCodeRuntimeboth prefix a/prompt withU+200Bso 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, …). AddsexpandEnvDeepto@anvio/core— shell-shaped$\{NAME\}/$\{NAME:-default\}/$\{NAME:?message\},$$\{to escape — applied atIntegrationRegistry.load()andWorkspaceconfig reads.anvio run/anvio chatleaked 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. AddsPlatformOptions.startChannels(defaulttrue, preserves gateway/worker/api behavior) andPlatformContext.shutdown(). CLI opts out of inbound and tears down onbeforeExit/SIGINT/SIGTERM.claude-coderuntime forwardedspec.model.modelas its Anthropic model id (#49). Same field also configured thelocalfallback's model provider, so adeepseek-chatid landed at the Anthropic SDK and every run failed with "It may not exist or you may not have access to it." Addsruntime.modelto 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-spawnsargv[1]withgateway start --foregroundinstead, logging intoworkspace/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/apistarting at all, one that left a webhook answering404 channel not enabledto an unauthenticated caller — were every one found by running the thing, while the unit suite stayed green.tests/integration/boot.integration.spec.tsbootsapps/apifrom its builtdistas a child process and the gateway in-process, then asserts routes answer under the/apiprefix 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.
-
anvio gateway startbinds127.0.0.1and refuses an insecure binding. It used to default to0.0.0.0with no check, which made ADR-0018's hardening ofapps/apione command away from irrelevant. To keep a reachable gateway, setANVIO_GATEWAY_HOST=0.0.0.0and either enable auth or setANVIO_API_ALLOW_INSECURE=true. Without one of those the process exits at startup rather than opening the port. (#44, ADR-0022) -
Teams and Matrix webhooks return 401 until configured. They previously accepted anything from anyone. Set
TEAMS_APP_IDfor Bot Framework token validation andMATRIX_AS_TOKENfor the application-service token — the latter is a new variable, deliberately notMATRIX_ACCESS_TOKEN, which is the token Anvio presents when calling out.ANVIO_API_ALLOW_INSECURE=trueopts out. (#40, ADR-0021) -
WHATSAPP_VERIFY_TOKENhas 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 setWHATSAPP_APP_SECRET— POSTs are now signature-checked, not just the one-time GET. (#41, ADR-0021) -
Credential pools written under the old default passphrase cannot be read — this is data loss.
apps/clidefaulted the encryption passphrase to'local-dev-passphrase'; the salt is stored beside the ciphertext, so anyone who could readworkspace/credentials/encrypted/*.enc.jsoncould decrypt it with a published value.ANVIO_CREDENTIALS_PASSPHRASEis now required, and existing pools must be re-added withanvio 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) -
estimateTokenCostUsdtakesprovideras its first argument. Exported frompackages/platform, so any out-of-tree caller breaks. Deliberate: the old signature could not look up a descriptor and silently returnedundefined. (#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
donechunk, indistinguishable from success. A truncated answer read as a complete one.StreamChunkgains anerrorvariant carrying\{ error?, retryable? \}, andDefaultAgentRuntimesurfaces it instead of returning the partial text as final. The OpenAI-compatible adapter also now checksresponse.okbefore 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).
inputTokensfrom every provider is the total prompt size and already includescacheReadTokensandcacheCreationTokens;TokenUsageAuditadded 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 onTokenUsageitself 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.0with auth off by default (#30). At Level 1 that exposed sessions, agents, and tool execution to the whole LAN. The default host is now127.0.0.1, andassertSafeBindingrefuses tolisten()on a non-loopback address with auth disabled unlessANVIO_API_ALLOW_INSECURE=truesays so explicitly. -
ModelRouterwas 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 —PlatformContextconstructed 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.anthropicwasclaude-sonnet-4-20250514; it is nowclaude-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).
ModelRoutercached 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).
huggingfacenamedapi-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/apidid 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/webcalled the API with a relative URL from server components, where Node'sfetchrejects it — every dashboard page had been failing behind a barecatchand 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 toapps/api. It bound0.0.0.0with noassertSafeBinding; itsresolveAuthendedreturn ctx ?? auth.getDefaultContext(), the exact fallback ADR-0018 removed fromsessions.controller.ts; and all three channel webhooks dispatched unverified. The shared pieces now live inpackages/platformand both surfaces call the same functions rather than equivalent ones. Closes #42. Breaking:anvio gateway startnow binds127.0.0.1and refuses to start on a reachable address with auth disabled — setANVIO_GATEWAY_HOSTplus either real auth orANVIO_API_ALLOW_INSECURE=true. -
WHATSAPP_VERIFY_TOKENfell 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, andverifyWebhooknow 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 --jsonprinted 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 anysenderIdthe 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-serviceas_tokenfor 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 analg: noneforgery nor a validly signed token minted for a different bot is accepted. Implemented onnode:cryptowith no new dependency. Closes #31. Breaking: a Teams or Matrix webhook that worked before now returns 401 untilTEAMS_APP_IDorMATRIX_AS_TOKENis set, or the deployment setsANVIO_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 bothANVIO_API_TOKENand 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 bypsand 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. Afailoverchunk names\{ from, to, reason \}, and the circuit breaker records outcomes on the streaming path too, not justchat(). - The answer names the provider that served it (#29). The
donechunk carriesproviderandmodel. 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, preservingstatus,type, andrequestID, and — the load-bearing part — attaching an explicitretryableflag. Downstream callers must read that flag rather than re-deriving retryability fromAnvioError.statusCode, which defaults to502for everyMODEL_PROVIDER_ERRORand 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_IDSandDEFAULT_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 incorerather thanmodelsbecauseagent-md.tswas one of the eight andcorecannot import frommodels.
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 theirrequiredentries, and returnsundefinedwhen nothing usable remains so the caller omitsparametersentirely. workspace/credentials/andworkspace/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/websends anAuthorizationheader (#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
retryableis 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/apior 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/apistill 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.yamlandworkspace/agents/architect.mdrestate ids as literals — YAML and Markdown cannot import a constant — and neither existing guard read them, which is exactly where the malformedclaude-haiku-3-5-20241022hid. A new spec checks everymodel:value in tracked files underconfigs/andworkspace/againstKNOWN_MODEL_IDSandRETIRED_ANTHROPIC_MODEL_IDS. Scope isgit ls-filesrather than an exclude list, becauseworkspace/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 —
ModelDescriptorregistry (@anvio/models). NewgetModelDescriptor(provider, model),listModelDescriptors(), andestimateModelCostUsd(provider, model, usage). Ships descriptors foranthropic: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-versatilewith 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 —
ModelRouterchargesSpendBudgetLedgerafter every successful call whendeps.spendBudgetandrequest.budgetKeyare both set. Cost computed viaestimateModelCostUsd;charge()throwsMODEL_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 configurablefailureThreshold(default 3) andcooldownMs(default 30_000).walkFallbackChainaccepts an optional\{ breaker \}option; skipped targets appear inattempts[].skipped = 'circuit-open'. Prior positionalisRetryablesignature retained for backwards compatibility. - P1.S8 skill-trigger index cache (
@anvio/skills). NewSkillTriggerCachere-parses skill YAML only when its file mtime changes.matchAll(message, ctx)refreshes then runsmatchTriggers— turns a per-message full catalog parse into an O(N) stat + zero re-reads on stable catalogs. Wired intoDefaultAgentRuntime: the runtime instantiates oneSkillTriggerCacheat construction and reuses it for every incoming message. Workspace overrides bundled for the same slug;manifest.yamland_*.yamldrafts are skipped.
Changed
walkFallbackChain(route, execute, isRetryable)→walkFallbackChain(route, execute, options).options.isRetryableandoptions.breakersupported; 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 testgreen,pnpm buildgreen.
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). NewcreateLogger(name)returns a child logger namespaced by module; env-tunable viaANVIO_LOG_LEVEL(defaults toinfoin production,debugotherwise).setRootLoggerprovided as a test hook. ESLintno-empty(withallowEmptyCatch: 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)andrecordStreamMetrics(providerId, model, usage, startedAtMs)in@anvio/modelswrap every Anthropic / OpenAI-compatible / Gemini chat + stream call and emitanvio_tokens_input_total,anvio_tokens_output_total,anvio_tokens_total,anvio_tokens_cache_read_total,anvio_tokens_cache_creation_total,anvio_model_calls_total, andanvio_model_call_latency_ms(as a histogram with count/sum/min/max) viaMetricsRegistry.TokenUsageAudit.recordnow forwardslatencyMs+ cache-token fields into the registry as well. - Epic 5 F1 — Tool Bus policy layer. New
@anvio/tool-buspackage withToolPolicyschema (allowed / denied / requireApproval / argumentOverrides),mergeToolPoliciesimplementing the fixed layer precedencedefault → tenant → project → agent, anddecideToolCall(policy, name)returning a typed\{ allowed, reason | requiresApproval \}verdict. Semantics locked inpolicy.spec.ts(11 tests): allow-list intersects across layers (agent cannot broaden), denies +requireApprovalunion across layers, glob (fs_*) supported, order-independent merge. - Epic 12 F1 slice —
AbortSignalpropagation to every model adapter.ChatRequestgains an optionalsignal?: AbortSignalfield; 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 —
SpendBudgetLedgerin@anvio/models. Per-key USD cap with hard-error enforcement:charge(key, usd)throws the newMODEL_SPEND_BUDGET_EXCEEDED(HTTP 402)AnvioErrorcode when the charge would exceed the cap.remaining(key)returnsInfinitywhen no cap set. Prior charges are retained on failure. CompanionINVALID_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.recordTokenUsageaccepts optionalcacheReadTokens,cacheCreationTokens,latencyMs. Latency emissions land in a new histogram bucket per (provider, model, channel).snapshotHistogram(name, labels)is now public for tests.packages/modelsnow 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.0bump surfaced 26z.record()signature-change sites plus 25.default(\{\})type-narrowing failures acrosspackages/core/src/schemas/*— kept on 3.25 until a dedicated migration story covers them alongside a companion Claude Agent SDK bump. Peer warningunmet peer zod@^4.0.0: found 3.25.76is 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; nopackages/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 testgreen,pnpm buildgreen.
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(rootpackage.json): pin patched versions forbrace-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 auditnow 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 genericwebhookbase). - ADR-0009 — Context + Decision sections now mark
cursor,codex, andantigravityruntimes 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 viaANVIO_PROMPT_CACHING=false) andANVIO_MAX_TOOL_OUTPUT_CHARS=8000, not the pre-ship placeholder values.
Added
- P1.S6 golden trajectory capture scaffolding —
apps/cli/scripts/capture-goldens.tsreads sessions from a workspaceSessionStore, filters--min-messages/--limit/--tag, and writes per-sessionTrajectoryExportJSON plus a mergedindex.jsonunderevals/goldens/v1-seed/. Idempotent (skips existing files unless--force). Coverage matrix and review checklist inevals/goldens/v1-seed/README.md.
Tests
tests/integration/phase-l6-runtime-learning.integration.spec.ts— new caseskips session-end learning when soul evolution disabledcovers theLearningEngine.onSessionCompleteddeny path (asserts emptymemoryNudge, nosessionSummary, noskillDraft, 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 inpackages/runtimes/src/claude-code/claude-code-runtime.ts:62with anExtract-based predicate so the filter narrows to the SDK'sBetaTextBlock(which now requires acitationsfield) without duplicating the block shape.
v1.25.0 — 2026-08-03
Added
-
Token optimization Layer 1 — sliding window + auto-summarize on overflow (ADR-0010).
memoryConfigSchemagainsmaxShortTermMessages(default0= unlimited, backward-compatible) andsummarizeOnOverflow(defaulttrue). When history exceeds the cap,FilesystemMemoryProvider.storeConversationcompresses the older head into a single[Context summary — N earlier messages compressed]assistant message and keeps the newest half. Platform wiresSessionSummarizer(@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).
AnthropicProvideracceptspromptCachingoption (defaulttrue; opt-out viaANVIO_PROMPT_CACHING=false) and tags the system prompt block plus the last tool definition withcache_control: \{ type: 'ephemeral' \}.TokenUsagegains optionalcacheCreationInputTokensandcacheReadInputTokens;inputTokens/totalTokensnow 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).
formatToolResultMessagegains amaxOutputCharsoption and a newclipToolOutput(body, max)helper preserves head + tail with a[… N chars truncated …]marker. BothexecuteParsedToolCalls(fenced-block loop) andexecuteNativeToolCalls(nativetool_useloop) resolve the clip limit viaresolveMaxToolOutputChars(), reading env varANVIO_MAX_TOOL_OUTPUT_CHARS(default8000chars ≈ 2 000 tokens;0disables). 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.functionDeclarationsblock emitted fromChatRequest.tools,functionCallextracted asModelToolCall, prior assistant tool call + tool response correctly serialized asrole: 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 intoSoulDefinition.spec(identity, values, personality, preferences, communicationStyle, longTermGoals, behavioralTendencies). Falls back toparseSoulDefinitionMdregex 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> --llmruns the LLM path and prints the extracted identity alongside the policy. -
OpenAI Realtime WebSocket STT — full live streaming (closes P15+ deferred item).
OpenAiRealtimeSttSessionnow auto-connects on firstfeed()(was: connect only inend()), drains any pre-connect chunks after the socket opens, and surfacesconversation.item.input_audio_transcription.deltaevents through a new async iteratorevents().streamRealtimeTranscribe(session, chunkSource)yields real partial + final transcript events pumped from a background feeder; the genericstreamTranscribeinstreaming-stt.tsdelegates to that when the session is anOpenAiRealtimeSttSession, soanvio voice realtime-transcribe <file>now emits real deltas instead of fake[streaming:Nb]placeholders. Newurloption lets tests point at a mock WebSocket server. Errors surface as\{ text: '[error] …', final: true \}events. Covered byopenai-realtime-stt.spec.ts(mock ws server: auto-connect, delta streaming,streamRealtimeTranscribepipeline,onPartialcumulative callback, no-key stub).
Fixed
- MCP first-call gate not persisting on local-runtime approvals — the gateway-worker path already called
mcpFirstCallGate.approveToolNameonAPPROVAL_DECIDED, but the platform's localonApprovalcallback (used by direct-runtime channels without a gateway) did not, so approving an MCP tool interactively inanvio chatre-prompted on every subsequent call. Now hoisted into the sharedonApprovalhandler so both paths persist. Coverage added inmcp-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.yamlafter@anvio/goalswas added topackages/platformdeps; resolvesERR_PNPM_OUTDATED_LOCKFILEon every CIpnpm install --frozen-lockfilerun - Lint errors in
@anvio/skills— suppressed@typescript-eslint/no-this-aliasincomposable-registry.ts(required by method object literal pattern); removed stale// eslint-disable-next-line no-new-funcinexecutor.tswhereno-new-funcrule is not active - Docs changelog never auto-updated —
notify-docs.ymlonly watcheddocs/**;CHANGELOG.mdlives at repo root so releases never triggered a sync. AddedCHANGELOG.mdto paths filter and added aNotify docs repostep torelease.ymlso 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
skillnode in workflow DAG —workflowNodeTypeSchemanow includes'skill';WorkflowNodegainsskill?: stringandparams?: Record<string,unknown>;DagExecutor.runNode()handlescase 'skill'by delegating to injectedrunSkill()dep (wired in platform viaexecuteSkill). Closes the workflow→skill integration gap- Step output piping to prompt —
SkillExecuteResultnow includestrace: string— a formatted markdown execution trace (step name, status icon, output snippet, final outputs map).skillCallTooldetects 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>prints1.0.0 → 1.1.0diff or "already up to date" - Skill test runner —
SkillTestRunner/createSkillTestRunner()wrapsexecuteSkillwith aMockToolPortthat 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 completedSkillStep.goalSlug+SkillStep.progressIncrement— a step can auto-increment linked goal progress on success; platformcallSkillwires this viaFilesystemGoalEngine.updateProgress()@anvio/goalsadded to platform dependencies so goal engine is available in runtime context
Changed
SkillCallFnreturn type extended to acceptSkillCallResult = \{ outputs, trace \}in addition to rawRecord<string,unknown>|string— backward-compatible- Platform
callSkillnow returns\{ outputs, trace \}instead of rawresult.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()runssteps[]mechanically against aRuntimeToolPort: evaluatesconditionexpressions (restrictedFunctionover param+output vars), calls tools directly, stores results as named output variables, handlesonError(fail/skip/retrywithmaxRetries), supportsskill:<slug>sub-skill chains, and enforcestimeoutviaAbortSignal(packages/skills/src/executor.ts) - Trigger matcher (L3) —
matchTriggers()scans all catalog skills and returns slugs whosetriggers[]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) —
ComposableSkillRegistrywraps skills withcomposable: trueasskill__<slug>tools with typed parameter schemas for nativetool_use; dispatches calls throughSkillExecutor; resolvesskill:<slug>step references for skill-chain execution (packages/skills/src/composable-registry.ts) skill_callgateway 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 returnoutputsmap as JSON (packages/tools/src/builtins/skill-call.ts)- Runtime wiring —
AgentRuntimenow: (a) runsmatchTriggerson the inbound message and merges auto-activated skills before prompt assembly; (b) pre-registers agent skills intoComposableSkillRegistry; (c) wraps the basetoolPortwith composable skill tools soskill__*calls are served without going through the LLM;platform/src/index.tsinjectsskillCataloginto runtime deps and wirescallSkillviatoolGateway.mergeContext - Skill schema v2 fields —
parameters[],steps[](withtool,args,condition,onError,maxRetries,output),outputs[],triggers[],composable,timeout— all backward-compatible (existing prose-only skills still parse with empty defaults) - Bundled
code-reviewskill v2 — upgraded reference example using all v2 fields; workspacecode-review.mdandarchitecture.mdalso upgraded - Design doc —
docs/77-skill-execution-engine.mddocuments all 5 layers, field-to-layer mapping, and error types
Changed
renderSkillInstructionsnow rendersparameters,steps, andoutputssections into the agent prompt in addition toname + description + instructionsrenderSkillMd(learning loop draft writer) serialises all new schema fields into generated.mdfiles- Gateway tool count: 73 → 74 (
skill_calladded)
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 toapps/api. Run withpnpm --filter @anvio/web dev(port 3100) - API: overview endpoint —
GET /api/overviewreturns sessions/agents/tools counts and uptime - API: tools endpoint —
GET /api/toolslists all 73 gateway tool keys with enabled status - API: sessions list —
GET /api/sessionslists 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;--tokenfor headless,ANVIO_NOUS_MOCK=1for dev/test) - Singularity/Apptainer runtime —
SingularityRuntimeProvider,anvio runtime exec singularity -- <cmd>(local HPC container exec,SINGULARITY_IMAGE+SINGULARITY_BINARY,ANVIO_SINGULARITY_MOCK=1for dev/test) - Atropos RL training — live fallback —
rl_toolnow calls a direct Tinker-Atropos HTTP API (ATROPOS_API_URL/ATROPOS_API_KEY) when MCP isn't configured, withANVIO_ATROPOS_MOCK=1for dev/test, instead of only returning a static MCP-setup note - Yuanbao tools —
yb_toolaction bundle (query_group_info,query_group_members,send_dm,search_sticker,send_sticker) via MCP preset (workspace/mcp/presets/yuanbao.yaml.example) orANVIO_YUANBAO_MOCK=1for dev/test - Video tools — real implementation —
video_analyzenow extracts a frame viaffmpeg(local files and remote URLs,FFMPEG_BINARYto override the binary) and runs vision analysis on it instead of returning a stub note;video_generatenow delegates to an MCPvideo-genpreset withANVIO_VIDEO_MOCK=1for dev/test - Real IMAP IDLE (RFC 2177) —
idleWatchInboxnow issues a genuineIDLEcommand over a persistent connection and wakes immediately on untaggedEXISTS/RECENT/EXPUNGE(falls back to the fixed-interval poll loop when the server'sCAPABILITYdoesn't advertiseIDLE) - Honcho gateway tools —
honcho_toolaction bundle (context,profile,search,conclude) exposing the existing@anvio/memoryHoncho provider via MCP preset (workspace/mcp/presets/honcho.yaml.example) orANVIO_HONCHO_MOCK=1for dev/test - hermes-tech skills catalog CI —
.github/workflows/hermes-skills-catalog.ymlrunsscripts/import-hermes-skills.shweekly (+ manual dispatch) and opens a PR when the imported skill catalog changes, instead of requiring a manual local run
Fixed
- Stale gap-register docs — 69-post-v1.17-gap-register.md and 51-gap-hermes-slaude.md hadn't been updated since the v1.17 baseline despite P12/P13/P14 (v1.18–v1.19) already shipping most of their listed gaps — corrected to reflect actual shipped state
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 --antigravityruns official Google install script whenagyis 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 —
ClaudeCodeRuntimeProvidervia@anthropic-ai/claude-agent-sdk(Pro/Max subscription, not API key) anvio setup-token— unified vendor login:--claude,--cursor,--codex,--antigravity,--list- Runtime routing —
RuntimeRoutingAgentRuntimedelegates 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
- ADR 0009 — Runtime OAuth authentication
- Docker/server/headless OAuth patterns and multi-user deployment guide
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— HermesGatewayRunnerequivalent- SQLite session store —
storage.provider: sqlite→workspace/state.dbwith FTS5 message search - OpenAI Realtime STT —
anvio voice realtime-transcribe,ANVIO_VOICE_REALTIME=1 registerGatewayWorker()shared by gateway app and legacy worker
Docs
- 76-unified-gateway.md
- README updated for v1.20 gateway workflow
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=1extended 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
fetchWithRetrywith 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
allowedToolsper-server allowlist; catalog filter inloadMcpToolCatalog anvio mcp preset list|apply <name>— merge workspace presets intomcp/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_statusandanvio_channel__editto model tool defs - Signal outbound via signal-cli REST (
SIGNAL_CLI_REST_URL)
Fixed
- GitHub Actions CI — remove conflicting pnpm
versionpin (usepackageManagerfrom package.json)
Docs
- 69-post-v1.17-gap-register.md
- 70-phase-p12-priorities.md
- 71-mcp-setup-guide.md
- 72-observability-langfuse.md
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 inworkspace/mcp/presets/
Docs
- 65-hermes-tools-catalog.md — full Hermes → Anvio mapping
- 64-phase-p11a-priorities.md through 68-phase-p11d-priorities.md
v1.15.0 — 2026-06-19
Phase P10 — Usage CLI, IMAP, MCP health, Prometheus
Added
anvio usage stats [--json] [--last 24h]fromaudit/tokens.jsonl- Email IMAP polling (
pollInbox, worker auto-start) McpBridge.getHealthReport()andanvio 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.jsonlwith 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
McpStdioClientwith stdio transport (transport: stdio|stubin 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
extractSoulPolicyfrom 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/functionResponsewithsupportsNativeTools McpToolPortexposes enabled MCP servers to agent runtime asanvio_mcp__\{server\}__\{tool\}McpFirstCallGate— first MCP tool use per session requires approval (firstCallApprovalin mcp config)- Worker persists
mcpApprovedToolson 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_callsstreaming (supportsNativeTools) - Built-in
anvio_tools__memory_recallwired 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
ChannelHealthReportfrom@anvio/core(CI@anvio/channelsbuild) - Type-safe
summarizeChannelHealthexhaustive 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 HarnessAwareToolPortmerges built-in tools + channel tools when harness enabled- Approver IDs with channel prefix (
slack:,telegram:,whatsapp:, …) approvalTimeoutSecondsenforced inApprovalGate- Worker publishes
APPROVAL_REQUESTED; resume via checkpoint afterAPPROVAL_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_useAPI 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-slaudeCLI 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 toartifacts/images/anvio_tools__text_to_speech— OpenAI TTS via@anvio/voiceanvio kb import-slaude— importslaude.jsonknowledge + skills (S6)anvio learning summarize-sessions— batch session LLM/rule summarization- Automation action type
learning.summarize_sessionsfor cron - Bundled automation
session-memory-summarize.yaml(every 6h, disabled by default) - Example manifest
configs/examples/slaude.json
Docs
- 56-phase-p3-priorities.md
- Gap register: T3, T4, S6, L5 cron ✅
v1.7.0 — 2026-06-19
Phase L6 — Runtime learning & LLM skill evolution
Added
- Agent runtime tool loop (multi-turn, fenced
anvio_toolblocks, max 5 iterations) ToolGateway.setOnToolCompleted()hook for runtime learningLearningEngine.onToolUseCompleted()— Hermes-style skill patch on tool success- LLM summarizer for skill evolution (
SkillEvolutionSummarizer) withshouldCreategate - LLM session summarizer when model provider configured (Anthropic preferred)
RuntimeToolPortin@anvio/core- Tool call parser, tool instruction renderer in
@anvio/tools publishAgentRunCompleted/finalizeAgentRunin@anvio/platform- Integration tests: Phase L6 runtime learning
- Unit tests: skill evolution summarizer, tool call parser
Changed
anvio chatand inlineanvio runemitAGENT_RUN_COMPLETED(learning on CLI paths)- Platform wires
ToolGatewayintoDefaultAgentRuntimeand learning model provider - Auto-promote runtime skills when
soul.spec.evolution.requireApproval: false - Gap register updated: L5 session LLM ✅, L6 runtime self-improve ✅
Docs
- 55-phase-l6-learning-priorities.md
- Updated 43-learning-loop.md, 50-hermes-slaude-parity.md, 51-gap-hermes-slaude.md
v1.6.0 — 2026-06-19
Phase P2 — Voice on channels & Mattermost (desktop deferred)
Added
- Mattermost channel adapter with WebSocket
postedevents 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.enabledorANVIO_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: truein workspace) - Honcho dialectic context merged into
getContextwhen API key configured
Tooling
browserbuilt-in tool with Playwright sandbox (falls back toweb_fetchwhen Playwright absent)- Optional
playwrightdependency on@anvio/tools
Runtime & editor integration
- ACP
POST /prompt/streamSSE endpoint for streaming agent responses CursorRuntimeProviderdelegates to local ACP server (anvio acp serve)- CLI ACP server reuses sessions and streams via
platform.runtime.stream
Changed
- Platform passes
memory.ftsto memory provider factory - Fixed
getBySessionto 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 plannerconfigs/planner/plan-execute-review.yaml
Authoring & workspace (Phase J)
parsePersonaMd()— personas load frompersonas/*.md- Example
workspace/personas/architect.md scripts/import-hermes-skills.shfor hermes-tech skill import
Tooling & execution
- Built-in
file_readandfile_writetools execute_coderoutes through auditedCodeExecutorwhen wired from platform
Runtime
- Docker sandbox in
@anvio/execution - First-class
DockerRuntimeProviderin@anvio/runtimes
Documentation
- 52-phase-k-priorities.md — five-pillar priority stack
- Updated gap register and roadmap for Phase K focus
Changed
FilesystemMemoryProviderinjects recall hits into memory context- Platform wires
createCodeExecutorintoToolGateway
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, androuting.yamlrouter - Skills Catalog (
@anvio/skills) — bundled + workspace override resolver and installer - Integration Framework (
@anvio/integrations) — MCP registry, bridge, and blueprintmcpstep 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 fromspec.model.providercustomprovider for arbitrary OpenAI-compatible endpoints (baseUrl+apiKeyEnv)
CLI & workspace (U19)
anvio credentials,anvio routing,anvio skill,anvio mcp,anvio workspace validateanvio 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-providerschemas and credential port
Tests
- Integration tests for credentials, routing, skills catalog, and MCP integrations
Changed
DefaultAgentRuntimeuses per-agent model provider from registrycreatePlatform()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 inworkspace/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 inworkspace/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 cronanvio 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.soulalongside 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 fromanvio.yaml@anvio/workspace— workspace loader, filesystem session store, artifact helpers- Progressive enhancement Levels 1–4 (filesystem → SQLite → PostgreSQL → K8s)
Agent runtime
@anvio/agents—DefaultAgentRuntimewith persona, skills, and memory integration@anvio/personasand@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)SupervisorOrchestratorfor multi-agent delegation patterns
CLI (primary interface)
anvio init,anvio agents list,anvio chat,anvio runanvio sessions,anvio status,anvio logsanvio approve,anvio stop,anvio inboxanvio worktree list|create|remove— optional git worktree isolation per session- One-command installer:
scripts/install.sh
Channels
ChannelHubwith 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 eventsapps/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
mainand PRs - Release workflow — auto-publish GitHub Releases from
v*tags usingCHANGELOG.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
-
Update
[Unreleased]section in this file with your changes -
Move entries under a new
## [X.Y.Z] - YYYY-MM-DDheading -
Commit, tag, and push:
git tag -a v1.0.1 -m "Anvio v1.0.1" git push origin main --tags -
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:
-
Add entries under
## [Unreleased]inCHANGELOG.mdas changes land. -
At release time, move those entries under a new
## [X.Y.Z] - YYYY-MM-DDheading. -
Tag and push:
git tag -a v1.0.1 -m "Anvio v1.0.1" git push origin main --tags -
The Release GitHub Actions workflow re-validates lint/typecheck/build/test, then publishes a GitHub Release using the matching
CHANGELOG.mdsection as the release body.
See Git Workflow for how this fits into day-to-day branching and commits.
Last updated on