awcompact
Reviewed
at commit c637c54
Compacts a long tool result through the AitherOS decision door before the model reads it: per LINE SHAPE, learned from outcomes, never dropping a traceback or…
0 upvotes
Log in to upvote or save- Made by
- Aitherium
- Pinned commit
-
c637c54228e5c94ed0cce1e6ce3a0c06eb3c5bff - What we checked
-
Replaces long Bash output with a shortened version before Claude reads it, keeping errors, tracebacks, summary lines and the first and last lines. It pipes the output to a local Python program (python -m adk.compact) that must already be installed. If that program fails or is slow, the original output is used.
Review details
Static review of the source at the pinned commit; not run. Registers one tool.call handler that awaits next(e) and, for Bash and BashOutput results of at least 60 lines (configurable), runs `python -m adk.compact` through $.process.run with the output on stdin and a 20 s timeout, then returns the result with a header and the kept lines. Uses $.ui.log only for errors or verbose mode. Any failure, empty output or no saving returns the original result. The plugin folder holds no Python; I also read adk/compact.py from the same repo: with no service tree it uses local rules only, otherwise it asks a decision service about line shapes (kind, length, repetition, position), never line text, at AITHER_DECIDE_URL (default https://127.0.0.1:8197, or a gateway the user sets). The Python module is resolved from the working directory first, so a project containing its own adk package would run in its place.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: no
- Hooked events
Compacts a long tool result through the AitherOS decision door before the model reads it: per LINE SHAPE, learned from outcomes, never dropping a traceback or a summary line.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/awcompact/)