claude

crux

Solves Context Compaction with a Causal Graph

8 on GitHubby Akash Panchalv0.2.0MITupdated 8 months ago

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

Plugin crux in akashp1712/claude-crux. 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 (4)

  • crux-decisions

    List all active decisions tracked by Crux with their rationales and constraints

  • crux-export

    Export current session decisions to CLAUDE.md. Use when the user wants to persist architectural decisions beyond the current session.

  • crux-status

    Show the current Crux decision graph — all active decisions, their rationale, and constraints. Use when asked about architectural decisions, tech choices, or project constraints.

  • crux-why

    Trace why a specific decision was made by following its causal chain back to the root constraint

Subagents (1)

  • crux-query

    Query the Crux decision graph when you need to check prior architectural decisions before making a recommendation. Call this before suggesting any technology, framework, database, API style, or architectural pattern.

Hooks (8)

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.js

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.js

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.js

  • UserPromptSubmit

    ${CLAUDE_PLUGIN_ROOT}/scripts/user-prompt-submit.js

  • PreCompact

    ${CLAUDE_PLUGIN_ROOT}/scripts/pre-compact.js

  • PreCompact

    ${CLAUDE_PLUGIN_ROOT}/scripts/pre-compact.js

  • Stop

    ${CLAUDE_PLUGIN_ROOT}/scripts/stop.js

  • SessionEnd

    ${CLAUDE_PLUGIN_ROOT}/scripts/session-end.js

View source on GitHub

Similar plugins

Appends two or three short follow-up questions after a substantive answer to help users check key facts, probe the reasoning, and notice missing context

19 skills

anthropics/skills 193,780

Interactive learning mode that requests meaningful code contributions at decision points (mimics the unshipped Learning output style)

hooks

anthropics/claude-code 155,476

Tenant-isolated AI teams that plan work, coordinate tasks, recall approved context, and return evidence-backed results

6 skills · 6 commands · 4 agents · 1 MCP server

ruvnet/ruflo 81,589

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Perform AI code review on Git diffs — supports workspace changes, branch ranges, and single commits with concurrent per-file analysis, codebase search, and deep context-aware review.

2 commands

alibaba/open-code-review 50,068

Maintain crux?

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 pluginslisted