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 sunnypatneediv1.0.0MIT
Context engineering plugin for Claude Code — real-time prompt scoring, RLM adaptive weights, and token optimization. Scores every tool use across 5 dimensions (token utilization, structural clarity, specificity, content density, cache-friendliness) and learns optimal weights for your project.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Real-time prompt scoring and context engineering optimization for Claude Code.
Every tool use is automatically scored across 5 dimensions. Works instantly with zero configuration — no API key, no signup, no network required.
# Install from marketplace
/plugin install contextstellar
# Or test locally
claude --plugin-dir ./claude-code-plugin
That's it. The plugin starts scoring immediately using the bundled local scorer.
For RLM adaptive weight learning and team dashboards, connect to the ContextStellar API:
export CONTEXTSTELLAR_API_KEY="cs_live_your_key_here"
export CONTEXTSTELLAR_PROJECT_ID="your_project_id_here"
Get credentials at contextstellar.com/connect.
| Mode | Config needed | Scoring | RLM Learning | Stats/Dashboard |
|---|---|---|---|---|
| Local (default) | None | Bundled scorer.js | No | No |
| Cloud | API key | Server-side + learned weights | Yes | Yes |
The plugin hooks into every tool use:
Scored tools: Bash, Write, Edit, Agent, NotebookEdit.
| Command | Description | Requires API Key |
|---|---|---|
/contextstellar:setup | Configure API key and project ID | No |
/contextstellar:score <prompt> | Manually score a prompt | No (local) / Optional (cloud) |
/contextstellar:stats | View scoring stats and RLM progress | Yes |
/contextstellar:optimize | Get optimization recommendations | Yes |
| Dimension | Weight | What It Measures |
|---|---|---|
| Token Utilization | 25% | Filler, politeness, intensifiers, redundancy |
| Structural Clarity | 23% | XML tags, lists, headers, code blocks |
| Specificity | 20% | Numbers, format keywords, examples, constraints |
| Content Density | 17% | Lexical diversity, n-gram repetition |
| Cache-Friendliness | 15% | Volatile data positioning, timestamps, UUIDs |
Weights are defaults initially. As you use Claude Code, the plugin reports outcomes (success/failure) alongside scores. After 100+ events, ContextStellar learns which dimensions matter most for your project and adjusts weights automatically.
Check progress with /contextstellar:stats.
jq and curl (for cloud mode only)claude-code-plugin/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── skills/
│ ├── score/SKILL.md # /contextstellar:score
│ ├── stats/SKILL.md # /contextstellar:stats
│ ├── setup/SKILL.md # /contextstellar:setup
│ └── optimize/SKILL.md # /contextstellar:optimize
├── hooks/
│ └── hooks.json # PreToolUse, PostToolUse, Stop
├── scripts/
│ ├── pre-tool-use.sh # Scoring hook (local or cloud)
│ ├── post-tool-use.sh # Outcome reporting (cloud only)
│ ├── session-stop.sh # Session end (cloud only)
│ └── scorer.js # Bundled local scorer (zero deps)
└── README.md
MIT
Generated from the plugin's indexed repository (sunnypatneedi/claude-code-contextstellar) — no native marketplace selected
npx claudepluginhub p/sunnypatneedi-contextstellarBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground