Skip to content

Show the assistant's steps and running cost as a turn works - #226

Merged
davior merged 1 commit into
mainfrom
claude/happy-darwin-68bva9
Nov 21, 2026
Merged

davior merged 1 commit into
mainfrom
claude/happy-darwin-68bva9

Conversation

@davior

@davior davior commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

The Note Assistant now shows what a turn does while it does it, as GVC's assistant does, plus what the turn has cost so far.

Steps

  • Steps listed:
    • web searches, including the model's own (Claude, DeepSeek), streamed from the suite
    • searches of your notes
    • notes read
    • each change proposed, e.g. "Proposed: Rename “Owl facts” to “Owls”"
    • tool calls that had to be retried
  • The list is open under the thinking bubble while the turn plans. It is kept, collapsed to "N steps", under the reply in the chat.

Cost

  • Tool-loop replies use the suite's own figure.
  • The text planner and the deferred-body writer use a list-price estimate from the usage dashboard's table (app.pricing). An unpriced model adds nothing; it never shows as $0.
  • Where it shows: under the thinking bubble ("So far: about $…"), on the run bar while bodies are written, and on the finished reply.
    • A turn that goes on to write notes shows its total on the summary, not twice.

Internals

  • AssistantRunJob gains steps and cost.
  • New assistant/turn_log.py holds the steps and cost. It is thread-safe, because the bodies are written in parallel.
  • The preview endpoint returns steps and cost. The activity row's meta has cost.
  • gecko-suite-client is pinned to davior/gecko-suite@33e47f9 (claude/happy-darwin-68bva9). That commit streams native searches and fixes the DeepSeek failure ("tool_use ids were found without tool_result blocks").

Test plan

  • Backend pytest -q: 1442 passed, 1 skipped.
    • New: test_each_step_is_recorded_as_it_is_taken_with_the_running_cost, test_a_failed_tool_call_is_a_step_too, test_a_reply_is_priced_as_the_usage_ledger_prices_it (anthropic/openai/ollama shapes), test_the_text_planners_calls_add_up_on_the_turn_and_its_answer.
  • Frontend npm test: 240 passed, including the new AssistantSteps.test.tsx. npm run build passes.
  • Not tried in a running app.

Deployment

  1. Deploy the suite PR (davior/gecko-suite claude/happy-darwin-68bva9) first.
  2. Then git pull origin main && docker compose up --build -d. This rebuilds both the backend (new client pin) and the frontend.
  3. steps and cost columns are added to assistantrunjob on startup. Existing rows get [] and NULL.

Generated by Claude Code

The Note Assistant now lists what a turn does as it does it, as GVC's assistant
does: each web search (the model's own included, reported by the suite), each
search of your notes, each note read, each change proposed, and any call that
had to be retried. The list is open in the thinking bubble while the turn plans
and is kept, collapsed, under the reply in the chat.

Alongside it, what the turn has cost so far: the suite's figure for each tool
loop reply, and a list-price estimate (the usage dashboard's table) for the text
planner and the deferred-body writer. It shows under the thinking bubble, on the
run bar while bodies are written, and on the finished reply.

AssistantRunJob gains `steps` and `cost` (added on startup like its other
columns). gecko-suite-client is pinned to the suite commit that streams native
searches and fixes the DeepSeek tool replay ("tool_use ids were found without
tool_result blocks").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1geD2q6nZC1LHGWRurh4W
@davior
davior marked this pull request as ready for review November 21, 2026 03:53
@davior
davior merged commit 9826efc into main Nov 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants