From opinionated-context-management
Lets Claude manage its own context window in Claude Code, so a long task can run to completion unattended. Mods are an early-access plugin component, so the API this one is written against may change between releases.
10 events · 11 calls
Ships in opinionated-context-management. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callfs.statprompt.submitprompt.submitprompt.composeEach event it registers a hook on, with the matcher when it sets one
session.startsession.compactsession.endsession.measureturn.startprompt.composeturn.stepturn.completeprompt.submittool.calltool.call{tool=mcp__opinionated-context-management__compact}Every mods API method its source calls, by namespace
nowstatsubmitappendcompactcwdusagegetsetregisterlogWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub pyroxin/opinionated-claude-skills --plugin opinionated-context-management