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 adilahmeddevv0.2.10In 1 marketplace
Intercepts Claude Code's context compaction and replaces it with Morph's compaction service
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
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.
A Claude Code marketplace that houses Morph integration plugins. There is currently only one plugin:
[!IMPORTANT] This plugin enables morph's Flash Compact, but does NOT provide warpgrep OR fast apply. Those are available through the mcp. We strongly reccomend having BOTH the MCP and Plugin installed.
The morph-compact plugin hooks parts of the compaction lifecycle in order to inject Morph Compact into its context.
[!IMPORTANT] Currently there is no way to make the default calude code compaction NOT run. So we prompt inject, asking claude's own summarization model to not waste time summarizing, instead only output a few words. Your claude will use morph's provided context instead. Prompt injection is not a fool proof method, we're working on making this more reliable and consisten. We are open to PRs for this. More detailes below
The former uses the PreCompact hook and the latter uses the SessionStart hook.
Run the install skill to set up your API key and compact instructions:
/morph-compact:install
This will:
~/.claude/morph/.env~/.claude/CLAUDE.mdTo remove:
/morph-compact:uninstall
The API key can also be provided via the MORPH_API_KEY environment variable, which takes precedence over the file.
PATH, plus one of npm, pnpm or bun. The hooks are plain Node scripts; the one runtime dependency (@morphllm/morphsdk) is installed into the plugin directory automatically the first time a hook runs, using the first of those package managers found, and skipped on every run after that. Set MORPH_PACKAGE_MANAGER=npm|pnpm|bun to force one.%USERPROFILE%\.claude\morph\.env.The hook does not send the raw transcript. Before the API call it:
user and assistant entries (Claude Code also logs its full API request bodies, system prompt included, into the same file);<system-reminder> blocks, slash-command envelopes, ANSI colour codes and the post-compaction placeholder message;N<tab> line-number prefixes the Read tool adds to file dumps;MORPH_COMPACT_MAX_RESULT_CHARS (default 3000), keeping the head and tail;[tool: Name] {input} with the input capped at MORPH_COMPACT_MAX_TOOL_INPUT_CHARS (default 400);On a session that has already been compacted once, only the entries since the last compaction are parsed and the previous Morph summary is prepended, so summaries accumulate and each call works on a small slice.
The compression ratio is capped so the result fits MORPH_COMPACT_MAX_CONTEXT_CHARS (default 40000, about 10K tokens). Claude Code does not inline hook output much larger than that; it writes it to a file and shows a short preview instead. If the summary still overshoots, it is cut at the budget and the full text is saved under <tmp>/compact-hook/<session_id>.full-summary.txt with a note in the injected context pointing to it.
Tunables (environment variables): MORPH_COMPACT_TIMEOUT (ms, default 60000), MORPH_COMPACT_RATIO (default 0.3, the ceiling), MORPH_COMPACT_PRESERVE_RECENT (default 1), MORPH_COMPACT_MAX_CONTEXT_CHARS, MORPH_COMPACT_MAX_RESULT_CHARS, MORPH_COMPACT_MAX_TOOL_INPUT_CHARS.
Set MORPH_COMPACT_DEBUG=1 to persist what each hook saw and produced. Files are written per session under <tmp>/compact-hook/debug/<session_id>/ (override the root with MORPH_COMPACT_DEBUG_DIR):
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 adilahmeddev/morph-claude-code-plugin --plugin morph-compactPlugins from other owners that cover similar ground