Skip to content

mini: auto-compact sends /compact itself instead of via a Haiku relay thread - #59

Merged
Jish2 merged 1 commit into
mainfrom
auto-compact-script
Nov 3, 2026
Merged

Jish2 merged 1 commit into
mainfrom
auto-compact-script

Conversation

@Jish2

@Jish2 Jish2 commented Nov 3, 2026

Copy link
Copy Markdown
Owner

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 /compact itself with t3 thread send --wait. Before sending it checks the thread with t3 thread show --json, using the same rules the relay agent followed. It uses the CLI that matches the running server's version, because t3 on PATH can be behind it. The module is renamed to fleet.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 new t3-code session entrypoint, which the old one would have skipped.

Tested on mini: t3 thread send <id> /compact runs as a real slash command (it wrote a compact_boundary), a dry-run passes through each check, and darwinConfigurations.mini.system builds.

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

… 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 claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean replacement of the relay with a direct t3 CLI send; no bugs found in the diff.

@claude

claude Bot commented Nov 3, 2026

Copy link
Copy Markdown

Claude review: no issues found
Read the whole diff (auto_compact.py rewrite, module rename, flake/host wiring, FLEET.md, relay prompt removal) for bugs and CLAUDE.md compliance; no earlier review comments existed.
Approved: all approval conditions hold.

@Jish2
Jish2 merged commit ef9eea2 into main Nov 3, 2026
2 checks passed
@Jish2
Jish2 deleted the auto-compact-script branch November 3, 2026 20:36
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