claude

morph-compact

Intercepts Claude Code's context compaction and replaces it with Morph's compaction service

1 on GitHubby Morphupdated 3 months ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin morph-compact in SofDev007/claude_plugins. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (2)

  • install

    Set up Morph compaction — adds compact instructions to CLAUDE.md and configures API key

  • uninstall

    Remove Morph compaction — removes compact instructions from CLAUDE.md and API key

Hooks (4)

  • PreCompact

    npm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-fund >/dev/null 2>&1 && node ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.js

  • SessionStart

    npm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-fund >/dev/null 2>&1 && node ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.js

  • SubagentStart

    node ${CLAUDE_PLUGIN_ROOT}/hooks/subagent-start.js

  • UserPromptSubmit

    node ${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.js

View source on GitHub

More from SofDev007/claude_plugins

All 7 plugins →

Brainstorm, plan, debug, review, and compound learnings with AI agents

31 skills

1

codex

claude

Use Codex from Claude Code to review code or delegate tasks.

3 skills · 8 commands · 1 agent · hooks

1

UI/UX design intelligence: 84 styles, 192 palettes, 74 font pairings, 25 charts across 22 stacks.

7 skills

1

ponytail

claudecodex

Forces the laziest solution that works. YAGNI, stdlib first, one line over fifty.

6 skills

1

Design fluency for frontend development. 1 skill with 23 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern detection.

1 skill · 1 agent · hooks

1

Design fluency for frontend development. 1 skill with 23 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern detection.

1 skill

1

Maintain morph-compact?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins7 plugins