declare batch in .supertool.json, so the op that collapses N calls into one is discoverable - #337
Merged
Merged
Conversation
… one is discoverable Co-Authored-By: Max <noreply>
…eflowed every inline array Co-Authored-By: Max <noreply>
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.
batchruns an array of ops in one call. A supertool call carries one@-payload, so without it N edits cost N calls — and every call re-reads the caller's whole context, which is where the cost actually is.It was not discoverable from this repo.
.supertool.jsonhere declares nobuiltin-opssection at all, soopslisted 33 entries, every one of them a preset. An agent working in this repo could not findbatch, and could not findread,greporediteither.Verified before and after, rather than assumed:
Context
claude-supertool#1124measured 232 agent transcripts and found 1.45 ops per call against a documented 6–7, with 70–73% of calls carrying exactly one op. Of the single-op calls, 39% are payload mutations — structurally single unless the author knowsbatch.That issue's fix (
claude-supertool#1133) makesopsderive its own gaps, so any dispatchable op no config describes names itself. Once that ships, this repo will surface the rest automatically. This adds the one that matters most, now.Scope
One key, eight added lines, nothing removed. The wider gap — this repo describes none of the core ops — is left for the derived listing to solve rather than hand-maintained here, since a hand-written list of 36 ops is the thing that rots.