Home / Claude Code mods / Context & memory / compact-methods

compact-methods

compact-methods is a Claude Code mod by kzarzycki that oh-my-pi compaction methods: shake (move old tool output to files, no model call) and handoff (continue from a handoff document). Use `/compact shake` or `/compact handoff [focus]`.

Updated 2026-10-09

What is compact-methods?

compact-methods is a Claude Code mod by kzarzycki that oh-my-pi compaction methods: shake (move old tool output to files, no model call) and handoff (continue from a handoff document). Use `/compact shake` or `/compact handoff [focus]`. It is listed under Context & memory and has 1 GitHub stars.

TypeClaude code mod
Authorkzarzycki
Repositorykzarzycki/claude-mods
Popularity1 GitHub stars
CategoryContext & memory
SecurityReview before installing (64/100)
Rank#1,928 of 5,272 Claude Code mods; #190 in Context & memory
Last commit2026-10-09
Hooks1 events
Seescompaction
Draws onnothing

Is compact-methods safe to install?

compact-methods scores 64/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.env.getreads env vars
$.fs.writewrites files
$.model.completedrives Claude
$.model.forkdrives Claude
$.session.id
$.session.model
$.ui.toastdraws interface

How do I install compact-methods?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/kzarzycki/claude-mods
    claude plugin validate ./claude-mods/plugins/compact-methods
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add kzarzycki/claude-mods && claude plugin install compact-methods@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs compact-methods for you:

Install the "compact-methods" Claude Code mod from https://github.com/kzarzycki/claude-mods/tree/main/plugins/compact-methods. Run claude plugin validate on it first and show me what it can access before you enable it.

More from kzarzycki/claude-mods

This repository has 8 Claude Code mods on MCPMods.

  • agent-hub: Agent hub: a pane listing this session's subagents with status, model, turns and tokens, and a box to steer a running on (Low risk)
  • auto-effort: Auto effort: the decision model rates each prompt and the turn it starts runs at that effort. (Low risk)
  • decision-model: A decision model for other mods ($.decision.ask): typed questions about a state, answered by any System One endpoint (Je (Review before installing)
  • eval-kernel: A persistent JavaScript kernel the model drives with one `eval` tool: state survives between cells, and cells call Claud (Review before installing)
  • resume-on-stop: Unexpected stops: when a turn ends right after saying it will act, the decision model spots it and one turn resumes the (Review before installing)
  • self-compact: Compaction at task boundaries: the model can ask to compact once its turn ends. Above a fill threshold it is asked wheth (Review before installing)
  • ttsr-rules: oh-my-pi TTSR rules: a regex rule denies the tool call that would break it, with the rule as the reason; a question rule (Review before installing)