Skip to content

[Feature]: ACP: send usage_update, and give tool calls a readable title (command or path) and locations #201

Open

Description

@FasterPHP

What would you like to be added?

Two small additions to what auggie --acp sends.

1. usage_update. Across seven runs (sessions, tool turns, permissions, a cancel, an image) the only session/update kinds were agent_message_chunk, agent_thought_chunk, user_message_chunk, tool_call and tool_call_update. There was no usage_update (with used, size and, where known, cost), and no session_info_update.

2. A readable title and locations on tool calls. The title of a tool_call is the bare tool name, with the command or path only in rawInput:

{"sessionUpdate":"tool_call","toolCallId":"call_fc6b17d7dee04bd68d34ad1317d2a64a","title":"read",
 "status":"in_progress","kind":"read","rawInput":{"path":"README.md"}}
{"sessionUpdate":"tool_call","toolCallId":"call_6968a7a5f9b8495ba0c179e8a2d33452","title":"bash",
 "status":"in_progress","kind":"execute","rawInput":{"command":"echo cancelled-probe"}}

There are no locations. (Since 1.x the calls do carry rawInput and content, which is a real improvement.)

Why is this needed?

  • ACP clients draw a context gauge and the running cost from usage_update. Without it a client has nothing to show for Auggie, though Auggie has the model and the token counts of every response. (We have not seen where the cost would come from, so a used and size pair would already be useful; cost where Auggie knows it.)
  • Clients show title as the one-line label of a call. A list of calls titled bash, bash, read cannot be told apart at a glance. locations lets a client open or link the file. acp-tui now builds a label from rawInput itself, but only for the tools it knows, so a new tool or another client gets the bare name.

Possible solution or alternatives

  • Send usage_update { used, size, cost? } after each turn or model response.
  • Build the title from the input: Run echo cancelled-probe, Read README.md, Edit notes.txt, and add locations: [{"path": "..."}] for file tools.
  • A session_info_update with the session's title would also let a client label a session before the next session/list.

Additional context

  • Auggie version: 1.2.2 (commit 6f24c7b3c15045713c7b3938b5e6c9bf117d1ff6, built 2026-11-17).
  • Reproduce: auggie --acp, logged in; initialize, session/new, session/prompt with Read README.md and run echo hi; watch the session/update kinds.
  • Environment: Linux (Arch), Node 26.7.0, client acp-tui (https://github.com/FasterPHP/acp-tui) and raw JSON-RPC over stdio.

Activity

  1. FasterPHP commented on Nov 21, 2026

    @FasterPHP
    Author

    For a concrete example of what a client would show: in Auggie 1.x's own terminal interface, the footer of a long session reads something like

    ↓34k $0.696 20.5%/305k (auto)
    

    which, as far as we can tell, is: the conversation has been compacted (↓, about 34k tokens), the session's cost so far, the share of the context window in use out of its size, and that compaction is automatic.

    None of this reaches an ACP client today, so a client running auggie --acp can show neither cost nor context use. The ACP usage_update session update (used, size, and cost with amount and currency) covers the first three; acp-tui already draws them for harnesses that send it.

    Compaction would be worth surfacing too: a client cannot tell that earlier turns have been summarised, which matters when the user scrolls back or resumes a session. Even a session update or _meta flag saying "compacted, N tokens before, M after" would let a client mark the point in the conversation.

  2. FasterPHP commented on Nov 23, 2026

    @FasterPHP
    Author

    One more piece of information a client cannot get today: the size of a tool call's output.

    While a long command runs (for example a pytest run with a lot of output), each tool_call_update carries only the most recent part of the output, which looks like the tail truncation in Auggie's output helper (at most 2000 lines or 50 KB by default). That is reasonable, but the update says nothing about it: there is no rawOutput and no truncation details. So a client counting the lines it receives sees the count rise and fall as the window moves, and cannot tell the user how much output there really is.

    The truncation step already computes what a client would need (totalLines, totalBytes, whether and how it truncated). Sending those in the update's rawOutput (or _meta) would let a client show, for example, "last 347 of 12,480 lines" instead of a number that goes up and down.

  3. augment-app-staging commented on Nov 25, 2026

    @augment-app-staging
    Contributor

    Confirmed: a completed prompt on 1.2.3 emitted no usage_update. In the tool-turn traces, the read and bash rows used the tool name as their title; the path or command was in rawInput, and no locations were supplied. A client shouldn't have to know every tool's input schema to label a row or open the affected file.

    We're tracking context used/size (with cost only when known), readable titles, file locations, and live session titles. Compaction notices and output-truncation totals from your follow-ups are distinct from usage: a missing cost or total is unknown, not zero. I haven't verified the truncation counters in this pass. No release date to share for these additions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions