Repository navigation
Agent: summarize tool calls as they start - #1261
Merged
Merged
Conversation
AnthonyRonning
force-pushed
the
agent/tool-summary-at-start
branch
from
October 25, 2026 09:12
3653164 to
cb7d966
Compare
AnthonyRonning
force-pushed
the
agent/tool-summary-at-start
branch
from
October 26, 2026 02:02
cb7d966 to
a7eb13d
Compare
AnthonyRonning
changed the base branch from
master
to
codex-agent-files-maple
October 26, 2026 02:02
AnthonyRonning
force-pushed
the
codex-agent-files-maple
branch
from
October 26, 2026 04:52
fe495f1 to
cddf1c0
Compare
Request a tool call's one-line summary as soon as its row carries the model's complete input, instead of after the tool finishes. The input-only summary is a separate summarize_tool_call_start operation whose prompt does not claim a result; summarize_tool_call keeps its output-based behavior for callers that still use it. The expanded card always shows the raw output, and the running/failed status stays separate. Each request carries a token mapped to its row's current key. When a live row becomes durable, its summary, pending, queued and in-flight requests, unsaved marker and output fallback move with it, so a row is asked once, the reply lands on the canonical row, and it is stored once to its exact task/epoch/row. A remote host advertises input-only summaries with the optional tool_summary_start_v1 capability under management protocol 7.0.0. Only validated peer information is cached per connection. When support is missing or discovery fails, that call is summarized from its output once it completes, and the next call checks again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tighten the input-only summary prompt: label what a tool call is for and what it acts on, ignore incidental timeouts, sleeps, retries and output limits, and never state or imply a result for a call that may still be running or may fail. The output-based summarize_tool_call is unchanged. A remote viewer now reads the host's optional capabilities with peer_info over its own task connection, bounded by a timeout, instead of the management remote_peer_info path, which also runs pairing-grant recovery. Only a validated answer is cached for the connection. A failed or timed-out probe leaves that call on the output-based summary and the next call asks again. Management protocol stays 7.1.0; the frozen fixture is the peer information Agent 0.0.9 reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
force-pushed
the
agent/tool-summary-at-start
branch
from
October 27, 2026 03:44
a7eb13d to
05c3c13
Compare
AnthonyRonning
changed the base branch from
codex-agent-files-maple
to
master
October 27, 2026 03:44
AnthonyRonning
marked this pull request as ready for review
October 27, 2026 04:19
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent tool-call summaries now appear while the call runs, instead of after it finishes. Based on current
master(Agent 0.0.9 released7848049). Additive only: remote wire stays 7, management protocol stays 7.1.0, no app version bump.What
summarize_tool_call_startoperation with the merged summary model (Use normal DeepSeek without thinking for Agent summaries #1279: DeepSeek V4.1 Flash, thinking off). Its prompt:summarize_tool_call(five arguments) behaves as before for callers that use it;Row identity and storage
summary_inflightthat maps to its row's current key.live:<run>:<occurrence>) becomes durable (stored:<task>:<epoch>:<seq>),rekey_summarymoves everything tied to it together: the summary, pending dedupe, queued ids, in-flight tokens, the unsaved marker and the output fallback.task/epoch/row. Session switches drop all of it.Remote capability
tool_summary_start_v1in optional-managementPeerInfo. Support follows the existing current-major rule: 7.x with the capability is supported, while 6.x and 8.x are not.BUILDhandshake), so there's no probe.peer_infoover its own task connection.remote_peer_infopath, which also runs pairing-grant recovery.Validation
All of this ran on a local maple-dev-env stack (
ts1261) with the local Pro fixture account; no hosted service was used. The changed source was37894d2aplus the follow-up commit.Unit tests
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace. 2323 passed, 0 failed on05c3c135.PeerInfo, which lacks the capability.Running app (Maple Work debug build, single computer)
sleep 30call showed its summary while running.lskept its red "failed" status, and the label didn't claim success.Real pairing: three isolated instances on one Mac paired through public Iroh relays, relay only with no direct IP paths. One controller (this build) and two execution peers.
d7848049(Agent 0.0.9).Limits
🤖 Generated with Claude Code