decision-compaction

by Koichi Shiraishi · ★ 1 · updated 22 days ago

Toastswarnings

0

Hands back the conversation itself in place of a compaction summary, less the tool calls and results a System One decision model judges no longer needed. The model can be TypeSafe Jev, Cloudflare Clef, Codiv OpenJev, Perplexity pplx-decider, OpenAI GPT-6 Luna, or Jev through OpenRouter, decisions-api.dev or decisionapi.net.

install decision-compaction

Install

/plugin marketplace add zchee/claude-code-mods
/plugin install decision-compaction@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.compactturn.complete
API calls
$.clock.after$.clock.sleep$.env.get$.http.fetch$.session.compact$.session.usage$.settings.read$.ui.log$.ui.toast
Can see
compaction
Reach
level 3 of 3 networkdrives Claudereads env varsreads settingsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/zchee/claude-code-mods
Path in repo
mods/decision-compaction
Source commit
fd46ed5 the exact code the scan read
Author
Koichi Shiraishi @zchee
License
Apache-2.0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from zchee/claude-code-mods

gateway-switch

zchee/claude-code-mods

Switches a running session between api.anthropic.com and the local Model Gateway: onto the gateway once Remote Control has registered, on /gateway on, or as each session starts after /gateway setup, and back to api.anthropic.com whenever the gateway stops answering.

★ 1ToastsCommands

Other mods in Toasts, close to this one by stars.