Home / Claude Code mods / Context & memory / forward-compaction

forward-compaction

forward-compaction is a Claude Code mod by rezzminator that the model writes its own frontier through one tool and the plugin installs it at Claude Code's compaction, with facts recorded from typed events and every later message kept verbatim.

Updated 2026-12-01

What is forward-compaction?

forward-compaction is a Claude Code mod by rezzminator that the model writes its own frontier through one tool and the plugin installs it at Claude Code's compaction, with facts recorded from typed events and every later message kept verbatim. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authorrezzminator
Repositoryrezzminator/forward-compaction
Popularityno public popularity data yet
CategoryContext & memory
SecurityHigh risk (36/100)
Rank#8,082 of 9,397 Claude Code mods; #724 in Context & memory
LicenseMIT
Last commit2026-12-01
Hooks15 events
Seesclassic hooks, compaction, every prompt, every skill, every tool call, subagent spawns
Draws onUserMessage, ToolUse, ToolResult, AssistantMessage

Is forward-compaction safe to install?

forward-compaction scores 36/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 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
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.now
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.model.completedrives Claude
$.model.forkdrives Claude
$.process.runruns processes
$.session.authorizereads the transcript
$.session.compactdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.root
$.session.usage
$.state.get
$.state.set
$.tool.registerdrives Claude
$.ui.invalidatedraws interface
$.ui.logdraws interface

How do I install forward-compaction?

  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/rezzminator/forward-compaction
    claude plugin validate ./forward-compaction/plugins/forward-compaction
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add rezzminator/forward-compaction && claude plugin install forward-compaction@professor

Or ask Claude to set it up

Paste this into Claude Code and it installs forward-compaction for you:

Install the "forward-compaction" Claude Code mod from https://github.com/rezzminator/forward-compaction/tree/develop/plugins/forward-compaction. Run claude plugin validate on it first and show me what it can access before you enable it.