Repository navigation
mini: auto-compact sends /compact itself instead of via a Haiku relay thread - #59
Merged
Merged
Conversation
… thread The watcher now sends /compact with the t3 CLI, so there's no webhook, no relay agent and no long-running relay thread in T3. The relay had been picking its own thread as idle since 10-29, re-reading a 770k context every 45 minutes and compacting nothing. Also accepts T3 0.1.7's new "t3-code" session entrypoint, which the old watcher would have skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude review: no issues found |
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.
Auto-compact went through a webhook, a cloud relay, and a Haiku agent in a T3 thread just to send
/compact. That added clutter to T3, spent tokens on a check that's deterministic anyway, and left a thread running indefinitely. It had also stopped working: since 10-29 the watcher kept picking the relay's own thread as idle, re-reading its 770k context every 45 minutes and compacting nothing.Now the watcher sends
/compactitself witht3 thread send --wait. Before sending it checks the thread witht3 thread show --json, using the same rules the relay agent followed. It uses the CLI that matches the running server's version, becauset3on PATH can be behind it. The module is renamed tofleet.autoCompact/org.jgoon.auto-compact, and the webhook, Keychain and relay-prompt code is gone. The watcher also now accepts T3 0.1.7's newt3-codesession entrypoint, which the old one would have skipped.Tested on mini:
t3 thread send <id> /compactruns as a real slash command (it wrote acompact_boundary), a dry-run passes through each check, anddarwinConfigurations.mini.systembuilds.The auto-handoff task stays disabled, and this PR removes its leftover setup. Reverting this PR brings back the relay.
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code