Skip to content

mods: let compact and appeal be deferred behind tool search (7.202.0) - #315

Merged
SSFSKIM merged 1 commit into
mainfrom
mods-defer-compact-appeal
Oct 21, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
mods-defer-compact-appeal

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 21, 2026

Copy link
Copy Markdown
Owner

The owner's decision: mcp__doperpowers__compact and mcp__doperpowers__appeal no longer force themselves into every request (tool.describe → isDeferred: false removed). Each is read when the model needs it: the compaction offer and the block notice both name the tool and give the select: 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.md and 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.
  • The live appeal check was not run.

Sminos-Session: doperpowers-8e#024fe98a (doperpowers on macbook)

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T06:31:50.502925Z b7a921e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 8d71990 into main Oct 21, 2026
7 checks passed
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