Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TheColliery Verified Orgv1.19.4Apache-2.0In 1 marketplace
Trims fat from agent memory and governance files with a free Quick pass, with guarded files snapshotted for rollback. Hooks run at session start, around edits and at turn end; it claims no network calls, and the paid Full pass is optional.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
CoalWash is a memory washer for agent memory. It works on two lanes. Class-B is the memory and governance files your agent reads every session. A free mechanical Quick pass cleans their fat, and a fidelity gate blocks any structured token, such as a link, a date, a version or a frontmatter field, from being dropped. Class-A is the transcript estate. Old transcripts are archived byte for byte and never edited. Every change is backed by an undo snapshot, and a whole run can be rolled back.
CoalWash slows how fast memory overhead grows. It does not eliminate memory cost.
The plugin ships one skill, coalwash, and two commands. /coalwash:stats reports the current band, the fat reading, the break-even numbers and any pending ask. It is read-only, except that it finishes the recovery of a dangling run when that run's journal is there. /coalwash:update checks for a newer version and offers to apply it, with your consent. A manual run starts with /coalwash.
claude plugin marketplace add TheColliery/CoalWash
claude plugin install coalwash@coalwash
Four hook events run one node script, hooks/coalwash-conductor.js, started from hooks/hooks.json. The file sets no timeout. The script branches on the event name.
| Event | Matcher | What it does |
|---|---|---|
| SessionStart | none | Runs the gauge (handleSessionStart): measures the governance and memory files, works out the band and records the verdict in the state file. It prints its notices only when there are any: the config and scan-scope lines, a line for each config file it ignores, the update-due nudge, and the language line. It also removes prior sessions' airbag snapshots (sweepWriteguard), unless writeGuard is off. |
| Stop | none | Delivers a pending ask or forced run when the turn ends (handleStop), as a decision: block that holds the turn open. It also writes the state file, recording the crossing and the last quick run. |
| PreToolUse | Edit, Write, MultiEdit | The airbag (handleAirbag): on the first write to a guarded file in a session, it copies the file into the project's snapshot folder before the edit lands. It never blocks. |
| PostToolUse | Edit, Write, MultiEdit | The seatbelt (handleSeatbelt): if that edit dropped a structured token, it prints one line naming the token and pointing at the snapshot. It never blocks, and a clean edit prints nothing. |
| PostToolUse | Agent, Task, Workflow | The spawn meter (handleSpawnMeter): adds one subagent spawn, with the cached footprint it carried, to a running total in the state file. It prints nothing per spawn. |
Nothing. The hooks make no network call and send nothing anywhere. CoalWash collects no telemetry. The files it writes stay on your disk. The project's .claude/coalwash/ folder holds the snapshots, the journal, the recovery bins and the keep decisions. The state file under ~/.claude/projects/ holds numbers and the paths of the always-loaded files; it holds no file content.
The hook starts no child process. The engine starts one: git ls-files, from apply.mjs, which checks whether a folder holds tracked files before a write. It has a five-second limit and runs with a stripped environment and no shell.
The /coalwash:update check is the agent's own procedure, not the hook's. The hook's SessionStart may print a nudge that a check is due; the check looks up the latest published tag of this repository, by whatever means the agent has, and offers the update. It applies nothing by itself. commands/update.md lists the steps.
Memory content is read only by your own session's model, the same as any memory file your agent loads. Setting localOnly: true makes the agent run the mechanical Quick pass alone, so no subagent sees memory content. The agent honors that setting; no code blocks a tool call. The full policy is in the repository's PRIVACY.md.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thecolliery/coalwash --plugin coalwashPlugins from other owners that cover similar ground