Skip to content

v0.221.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 22:05
· 997 commits to main since this release
4940ed0

v0.221.0 completes ADR 0125 Phase 1: conversation history now lives in its own history table instead of the knowledge store, and the console gets a History view to browse it. The release also adds thumbs up/down feedback on assistant replies, a raw model passthrough endpoint, a reworked first-run setup wizard (model step first, local model detection, and an option to explore without a model), multi-arch Docker images, and demo-agent groundwork. Two server stalls are fixed: oversized checkpoint DBs and a slow GET /api/config.

Added

  • History view in the Memory inspector. A new tab lists conversation history (compaction archives, retired-thread summaries, background-job reports) per session. It has a search that uses the same query as the agent's recall, an entry reader, and delete. Memory and history sizes are now reported separately. (#4596, issue #4557)
  • Rate assistant replies. Thumbs up/down on assistant messages, with an optional note on a down-rating. A rating survives a reload, and a failed save rolls back with a visible error. Each rating is stored per turn and written as a user_feedback score on that turn's Langfuse trace; re-rating replaces the score and un-rating removes it. Incognito turns can't be rated. The backing API is POST/GET /api/feedback. (#4607, #4619; tracing.score_trace foundation #4605)
  • Friction joins its turn. Friction entries carry the session and trace ids when available, score the trace, and link to it from the Friction view. (#4613)
  • Raw model passthrough. POST /api/models/{connection}/v1/chat/completions makes a plain OpenAI-shaped, non-streaming chat call against any registered model connection, including Claude and ChatGPT subscription connections. It runs no graph, tools, SOUL or memory. It is loopback-only by default and always requires the operator bearer token. Usage counts in /api/usage. The new model_passthrough.allow_remote setting (off by default) allows non-loopback callers. (#4614, #4623)
  • Explore without a model. Setup can now finish with no model configured. The console opens with chat disabled and a link to model settings, and saving a model in Settings ▸ Model enables chat with no restart. Runtime status gains a model_configured field. (#4581, #4606)
  • Local model detection. The setup wizard has a "Local model" card. It probes Ollama (11434) and LM Studio (1234) on 127.0.0.1, lists their models, and fills in the endpoint and model. (#4579, #4593)
  • Career Coach entry in the new-agent picker. (#4604)
  • Discover plugins button in the console's utility bar, which opens Settings ▸ Plugins ▸ Discover. (#4588)
  • Multi-arch Docker images: linux/amd64 and linux/arm64. (#4583)
  • Demo-agent core (graph.fleet.demo): creates throwaway fleet members stamped demo: true. It refuses to touch any member without that stamp, caps live demos at 3 and reaps them after 24h. No user-facing tool yet. (#4622)
  • Eval tiers. Eval cases take a gate or tracked tier, and the runner, report and compare split results by tier. (#4632)

Changed

  • Conversation history moved out of the knowledge store. Compaction archives, retirement summaries and background reports are now written to the history table without embeddings. memory_recall returns memory only and points to session_search for "what happened". Auto-retrieved context no longer carries history. session_search merges in history hits, and recall_session lists history entries and reads one by entry=<id>. (#4575, #4582, #4595)
  • Chat delete also removes that chat's history rows in the same transaction as its extracted facts. Background-job reports are kept. (#4574, #4628)
  • Setup wizard reworked. The model step comes first. Name, operator and archetype share one step (Basic by default, with "More archetypes…" for the rest) (#4590). The wording is plainer: Model, API key, Endpoint URL, Load models (#4620). Subscription cards say "Sign in with your plan, no API key needed" (#4584). Next stays disabled until a connection test passes (#4580).
  • Plain connection errors. Model discovery and connection tests now explain refused connections, rejected keys, missing endpoints or models, and timeouts. (#4586)
  • protoagent serve --help is written for users. Boot prints a Console ready → http://127.0.0.1:<port>/app line. (#4587)
  • Quieter logs. Successful console polling GETs log at DEBUG (#4585). On a loopback-only bind, the "A2A auth token not configured" and "A2A_ALLOWED_ORIGINS not set" notices log at INFO; any reachable bind still logs them at WARNING (#4592).
  • Chat starter prompts. Empty chats show four editable starter prompts. Picking one fills the composer and doesn't send. (#4589)
  • /usage answers with a card showing usage meters, the check time and the data age. (#4594, on the system-note component card from #4591)

Fixed

  • Checkpoint DBs shrink again. The periodic sweep now reclaims a large freelist (64 MB, or a quarter of the file) even when it deleted nothing itself. One agent's 2 GB checkpoint DB held only 28 MB of live data. (#4626)
  • GET /api/config no longer stalls the server. Plugin manifests are parsed once per file version. The request used to hold every other request for about 200 ms; it now takes about 3 ms. (#4627)
  • The eval suite runs again against current dev instances, and each case's report row records its turn's trace. (#4621)

Docs

  • The README and first-agent tutorial have one Download path and list what you need up front. (#4618)
  • ADR 0126 (close the eval loop) is accepted. It is a design record only. (#4598)
  • The CHANGELOG now also lists the localhost egress fix (#4559). That fix shipped in v0.220.0 and was missing from its changelog section.

Upgrading

  • One-time history migration on first boot (ADR 0125 Phase 1). On first boot after updating, each agent moves its conversation history (compaction archives, retirement summaries, background reports) out of the knowledge store into its own history table in the same knowledge/agent.db. It first copies the database to agent.db.pre-0125. It takes seconds: a dry run moved 3,041 rows in under 3 s. The migration re-checks on every boot, so rows an older core writes later still get moved. (#4595, #4628)
  • memory_recall no longer returns conversation history. To find out what happened in past sessions, agents use session_search / recall_session.
  • The console Memory inspector has a new History view for browsing and deleting that history. (#4557)
  • Deleting a chat now also removes that chat's history rows.
  • Nothing else to configure. model_passthrough.allow_remote and the other new settings default to off.

What's Changed

  • feat: ADR 0125 H1b: chat-delete forget covers history rows in the same transaction as chunks facts (#4556 slice 2) by @mabry1985 in #4574
  • feat: ADR 0125 H1c: session_search merges history; recall_session lists entries and takes entry= (#4556 slice 3) by @mabry1985 in #4575
  • feat: Setup wizard: auto-run the connection test on model-field changes and gate Next on a pass (+ signed_in for subscriptions) (#4562) by @mabry1985 in #4580
  • feat: Local model detection backend: POST /api/config/local-models probes Ollama (11434) and LM Studio (1234) on 127.0.0.1 (#4572 part 1) by @mabry1985 in #4579
  • feat: Plain model-connection errors: map refused / 401-403 / 404 / timeout to actionable hints in list_gateway_models + validate_model_connection (#4564) by @mabry1985 in #4586
  • feat: Setup wizard: subscription cards say "sign in with your plan, no API key", not "uses your CLI login" (#4565) by @mabry1985 in #4584
  • feat: protoagent serve --help written for users (no issue/ADR refs, hide removed flags) + a "Console ready → " line at boot (#4567) by @mabry1985 in #4587
  • feat: Access log: console polling GETs (status/runtime/health) drop to DEBUG; requests that change state and errors stay at INFO (#4569 part 2) by @mabry1985 in #4585
  • feat: Publish a multi-arch (linux/amd64 + linux/arm64) Docker image in docker-publish.yml and release.yml (#4571) by @mabry1985 in #4583
  • feat: Setup wizard: model step first; name + archetype default (protoagent, Basic) in one editable step; Basic + "More archetypes…" (#4573) by @mabry1985 in #4590
  • feat: Quiet loopback boot: A2A "token not configured" / "A2A_ALLOWED_ORIGINS not set" log at INFO when bound to loopback, WARNING otherwise (#4569 part 1) by @mabry1985 in #4592
  • feat: "Discover plugins" entry in the console rail that opens Settings ▸ Plugins ▸ Discover in one click (#4570 part 2) by @mabry1985 in #4588
  • feat: Chat system notes can render a component card: a role:"system" message with component shows it instead of the markdown alert (1/3, /usage card) by @mabry1985 in #4591
  • feat: Empty chat shows 3–4 starter prompt chips (one coding hand-off chip marked "needs Claude Code") instead of "No messages in this session." (#4570 part 1) by @mabry1985 in #4589
  • feat: Setup wizard: "Local model" card detects Ollama / LM Studio, fills in the endpoint and lists models (#4572 part 2) by @mabry1985 in #4593
  • feat: /usage answers with a subscription-usage card (meters + "checked HH:MM:SS" + data age) instead of the markdown alert (2/2) by @mabry1985 in #4594
  • feat: ADR 0125 H1d: writers move to HistoryStore — compaction archive, retirement summary, background report (#4556 slice 4) by @mabry1985 in #4582
  • feat: ADR 0125 H1e: boot migration of domain=conversation chunks into history; memory_recall and auto-RAG stop carrying history (#4556 slice 5, closes) by @mabry1985 in #4595
  • feat: ADR 0125 H2: console History view in the Memory inspector; memory stats split memory from history (#4557) by @mabry1985 in #4596
  • feat: S5b: "Career Coach" entry in the new-agent picker: archetype-catalog row + generic soul preset by @mabry1985 in #4604
  • feat: Explore without a model, backend: finish_setup with no model completes without a probe; runtime reports model_configured (#4566 part 1) by @mabry1985 in #4581
  • docs(adr): 0126 close the eval loop (accepted): nightly gate, feedback scores, traces become cases by @mabry1985 in #4598
  • feat: ADR 0126 foundation: tracing.score_trace(trace_id, name, value, comment) scores a past trace by id (shared by E2 #4601 and E3 #4602) by @mabry1985 in #4605
  • feat: ADR 0126 E3: friction entries carry session_id/trace_id (injected, not contextvar), score a friction 0 on the trace, and link it in the view (#4602) by @mabry1985 in #4613
  • feat: Explore without a model, console: wizard "Explore without a model" option + chat banner linking to model setup (#4566 part 2) by @mabry1985 in #4606
  • feat: ADR 0126 E2a: POST/GET /api/feedback stores per-turn ratings and writes a Langfuse user_feedback score; console can resolve a message's trace_id (#4601 work 2, 3, 5) by @mabry1985 in #4607
  • feat: Raw model passthrough: POST /api/models/{connection}/v1/chat/completions, OpenAI-shaped in/out (tool_calls), any connection type, loopback-only, usage attributed (#4608 part 1) by @mabry1985 in #4614
  • feat: README + first-agent tutorial: one Download path, "What you need" up front, other routes collapsed, --port + platform notes, wizard order matches (#4563) by @mabry1985 in #4618
  • feat: Setup wizard plain wording: Brain→Model, Gateway model→API key (OpenAI, OpenRouter, …), API base→Endpoint URL, Probe→Load models; Operator help; saved-key placeholder only when a key is saved (#4568) by @mabry1985 in #4620
  • fix(evals): ADR 0126 E1a: revive the eval suite + trace_id on every case's report row by @mabry1985 in #4621
  • fix(checkpoint): reclaim a large freelist even when the sweep deleted nothing by @mabry1985 in #4626
  • feat: Demo-agent core: create members stamped demo:true/created_by, refuse any unstamped slug, cap live demos (3), TTL reap (24h), record archetype ref + plugin versions (#4609 part 1) by @mabry1985 in #4622
  • feat: Model passthrough: model_passthrough.allow_remote setting (default off) lifts the loopback-only check; bearer always required (#4608 part 2) by @mabry1985 in #4623
  • perf(config): parse plugin manifests once per file version (GET /api/config blocked the loop ~200 ms) by @mabry1985 in #4627
  • feat: ADR 0126 E2b: console thumbs up/down (optional note on down) on assistant messages, state restored on reload, e2e (#4601 work 4) by @mabry1985 in #4619
  • feat: ADR 0126 E1b: gate/tracked tier on eval cases; runner, report and compare split the tiers with the gate pass rate as headline (#4600 work 2) by @mabry1985 in #4632
  • fix(knowledge): ADR 0125 migration re-runs for late rows; chat-delete forget covers already-invalidated history by @mabry1985 in #4628

Full Changelog: v0.220.0...v0.221.0