All Claude Code modsZH-L1N/agent-window-mods
smart-compact
Compacts at the right moment: after a commit or green tests, a minute before the prompt cache expires, or when Claude asks for it with its own request_compact tool.
smart-compact reaches L2 (writes or runs) and passed claude plugin validate with warnings.
- Events hooked: 8
- API methods referenced: 14
- Access from classified calls: L2, writes or runs: runs processes, drives Claude, reads mod state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- Static scan, not a runtime test
Install hint
/plugin install smart-compact --marketplace ZH-L1N/agent-window-modsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L2 Writes or runsruns processes, drives Claude, reads mod state, drawsValidation
Passed with warningsListed under Prompt cache mods for Claude Code.
View the source on GitHub Back to the list
What the scan recorded
- Observed events
- mcp__smart-compact__request_compact calls, Bash calls, PowerShell calls, every prompt, classic hooks
- Hooks
session.start, command.run {command=compact-offer}, tool.call {tool=mcp__smart-compact__request_compact}, tool.call {tool=Bash}, tool.call {tool=PowerShell}, prompt.submit, turn.complete, classic.PreCompact, ui.close {id=smart-compact}, ui.render {component=Pane, requestId=smart-compact}, ui.render {component=AbovePrompt}- API calls
$.clock.after, $.clock.now, $.command.register, $.command.run, $.process.run, $.session.compact, $.session.usage, $.state.get, $.state.set, $.tool.register, $.ui.close, $.ui.open, $.ui.resolve, $.ui.toast- Validation
- Passed with warnings
- Scanned revision
5122d459004c- Marketplace warnings
- zehui-mods
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
More from ZH-L1N/agent-window-mods
- agentsLive subagents, background shells, Monitor watches and cron timers: an AGENTS band above the prompt (main mod…
- blast-radiusHolds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they…
- breatheGuided breathing exercises above the prompt while Claude works: coherent, box, 4-7-8 and the physiological si…
- cache-clockA CACHE band above the prompt: how long the prompt cache stays warm, how much of the last request it served,…
- filetreeA small tree of the working folder in a Files pane: folders open and close, git marks changed files, and the…
- goal-meterA GOAL band above the prompt that reads Claude's own task list: the goal's name, a 6-cell bar of tasks done,…
- handoffA HANDOFF band above the prompt: the context bar stacked by /context category, fill against the compaction po…
- hereA HERE band above the prompt that says where the session is, with no model call by default (option rewrite=ha…
- imagesEach pasted [Image #n] shown as a thumbnail in an IMAGES band above the prompt: before you send, as soon as t…
- motion-holdHolds any Bash call, and any Monitor watch that runs a command, that would move, energise or restart lab hard…
- nextA NEXT band above the prompt with 2 or 3 short prompts you would likely send next, from one Haiku (or Sonnet)…
- peersA herdr peer alarm and board: every 30 seconds it reads the agents of this herdr workspace and toasts when on…
- queueA prompt queue with no model call: /q <text> queues a prompt, and each time a main-loop turn ends normally th…
- redgreenTest results pane for Claude Code: every test run Claude makes becomes a pass/fail list with the failure deta…
- send-gateIn a session that runs without permission prompts, holds an MCP tool call that would send a message or an ema…
- skinsSkins for Claude Code: tool rows that open onto their input and answer, highlighted code, diff, table, math,…
- stripOne strip of quiet pills above the prompt in place of the SYS, PLAN, HANDOFF and CACHE rows: context, cache,…
- sysA SYS band above the prompt: CPU load, RAM in use and battery, each with a 6-cell bar and traffic-light colou…
- token-weatherA live forecast of the context window, drawn above the prompt: a weather icon, the fill percentage, and a cha…
- web/web opens a link in terminal-browser in a herdr pane below (the last link of Claude's reply by default); the…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/ZH-L1N--agent-window-mods--smart-compact/)
[](https://mods.aidojo.si/mods/ZH-L1N--agent-window-mods--smart-compact/)