Skip to content

Show args and details for generic (extension) tools#112

Merged
dnouri merged 1 commit intomasterfrom
generic-tools-details
Feb 8, 2026
Merged

Show args and details for generic (extension) tools#112
dnouri merged 1 commit intomasterfrom
generic-tools-details

Conversation

@dnouri
Copy link
Owner

@dnouri dnouri commented Feb 8, 2026

Previously, generic tools (e.g. subagent, or any extension tool) showed only the tool name in the header and discarded the details payload. Built-in tools like bash ($ ls -la) and edit (edit foo.txt) had rich headers — generic tools were second-class citizens.

Now:

  • Headers show the tool's JSON args — compact when they fit within fill-column, pretty-printed otherwise
  • Output appends non-nil details as formatted JSON below the content, with the same collapse/expand behavior as other tools

Built-in tools (bash, read, write, edit) are unchanged.

Example

A subagent call now renders as:

subagent { "agent": "worker", "task": "Search for weather" }
Task completed

**Details**
{
  "mode": "single",
  "exitCode": 0
}

instead of just:

subagent
Task completed

@dnouri dnouri merged commit 0cbe484 into master Feb 8, 2026
7 checks passed
@dnouri dnouri deleted the generic-tools-details branch February 8, 2026 20:41
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.

1 participant