Repository navigation
mods: let compact and appeal be deferred behind tool search (7.202.0) - #315
Merged
Merged
Conversation
The owner's call: neither tool's description is worth carrying in every request of every loop, since the model reaches either only after the plugin's own message. Both tool.describe hooks that answered isDeferred: false are gone, so the engine places them (deferred where tool search is on, inline where it is off). The compaction offer now sends the model to compact's description before it decides, and the block notice says appeal's description says when an appeal fits; both give the select: query that loads the tool, worded to read right where it is already loaded or tool search is off. The README sections and the appeal spec record the reversal (a dated Decision Log entry); the message-tool spec's cross-reference is corrected. Sminos-Session: doperpowers-8e#024fe98a (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
The owner's decision:
mcp__doperpowers__compactandmcp__doperpowers__appealno longer force themselves into every request (tool.describe→isDeferred: falseremoved). Each is read when the model needs it: the compaction offer and the block notice both name the tool and give theselect:query that loads it. The descriptions are unchanged, and a loaded tool stays loaded across a compaction (preCompactDiscoveredTools). This saves about 1.6k tokens in most sessions and in every built-in subagent and fork.Cost: below the 300k offer floor, the guidance on compacting unprompted is read only if the model loads the tool itself. Recorded in
hooks/mods/README.mdand in the appeal spec's Decision Log.tests/mods/run-mods-tests.sh: 207 pass.tests/mods/typecheck.sh: clean.tests/mods/live-compact-offer-check.py: 9/9 in a live haiku session with the deferred tool. Declining, the model first loaded the description through ToolSearch; accepting, it called compact in the offer's turn, and the session compacted and resumed.Sminos-Session: doperpowers-8e#024fe98a (doperpowers on macbook)