By grumatic
AI vibe coding intelligence for Claude Code — realtime coaching, PRISM scoring, insights, and gateway routing. Pairs with dashboard.prism.optra-ai.com
Diagnose Prism plugin configuration and connectivity issues
Show all available Prism plugin commands and how to use them
Weekly review — this week vs last week, PRISM grade, habits, worst prompts
Configure the Prism plugin with your gck_* API key
Show Prism connection status, toggle gateway routing
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
apiKeyYour Optra API key (starts with gck_)
${user_config.apiKey}enableGatewayRoute Claude Code API calls through Optra gateway for budget limits, guardrails, and usage logging (default: false). Use /prism:status to toggle.
${user_config.enableGateway}prismThresholdMinimum prompt efficiency score 0-10 (prompts below this are blocked)
${user_config.prismThreshold}showStatusLineShow the [Prism] status line after every turn (default: true). Use /prism:status to toggle.
${user_config.showStatusLine}PRISM intelligence plugin for Claude Code. Reviews prompts in real-time, captures telemetry for dashboard analytics, tracks session costs, and optionally routes requests through the Optra gateway for budget enforcement and guardrails.
fetch)gck_*) — sign up at optra-ai.com# 1. Add the marketplace
/plugin marketplace add grumatic/optra-prism-plugin
# 2. Install the plugin
/plugin install prism@optra-prism
# 3. Configure your API key
/prism:setup gck_YOUR_API_KEY
# 4. Restart Claude Code for OTEL telemetry to take effect
curl -sL https://optra-ai.com/install-plugin.sh | bash -s -- gck_YOUR_KEY
| Mode | What happens | Latency impact |
|---|---|---|
| Telemetry only (default) | OTEL export + prompt scoring + cost tracking. API calls go directly to Anthropic. | None |
| Full intelligence | All of the above, plus API calls route through Optra gateway for budget enforcement, guardrails, and full request/response logging. | Small hop |
Choose your mode during /prism:setup. You can change it anytime.
Three hooks run automatically:
| Hook | Purpose |
|---|---|
| SessionStart | Validates API key, configures OTEL telemetry, optionally sets gateway routing |
| UserPromptSubmit | Reviews prompts for specificity/scope and captures them to ingest for scoring |
| Stop | Captures prompt/response pairs for analytics, tracks turns, warns on context bloat |
| Command | Description |
|---|---|
/prism:setup | Configure API key, enable telemetry |
/prism:status | Connection health, gateway toggle, session info |
/prism:report | Weekly review — this week vs last week, PRISM grade, habits, worst prompts |
/prism:help | List all available commands |
/prism:uninstall | Remove plugin config and OTEL settings |
All service URLs (ingest, gateway, dashboard) are resolved automatically from your API key via the config endpoint (https://ingest.prism.optra-ai.com/v1/plugin/config). Only PRISM_INGEST_URL can be overridden for local dev:
PRISM_INGEST_URL=http://localhost:9005 claude
/prism:setup gck_KEY
│
├─→ Calls config endpoint → resolves URLs from API key
├─→ Caches config locally
└─→ Syncs OTEL env vars to ~/.claude/settings.json (global)
Claude Code starts
│
├─→ Reads ~/.claude/settings.json → OTEL env vars set at process init
├─→ SessionStart hook → validates key, optionally sets gateway URL
│
├─→ User types prompt
│ └─→ UserPromptSubmit hook → captures prompt to ingest
│
├─→ Claude responds (OTel auto-exports: api_request, tool_result, etc.)
│ └─→ Stop hook → captures response + turn counter
│
└─→ Next prompt...
Add Prism to all team members by committing to your project's .claude/settings.json:
{
"plugins": [
{
"source": "marketplace",
"name": "grumatic/optra-prism-plugin"
}
]
}
Each developer runs /prism:setup with their own API key.
# Tail debug log
tail -f ~/.claude/plugins/data/prism-inline/debug.log
# Enable debug output in session
PRISM_DEBUG=1 claude
When installed via marketplace, the plugin updates automatically when a new version is released. You'll see a notification on session start when an update is applied.
MIT
npx claudepluginhub grumatic/optra-prism-plugin --plugin prismReal-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts
Session intelligence for Claude Code — find why your sessions fail and fix them
Cost-conscious mode for Claude Code. Saves 30-60% on costs through concise responses, model routing, and efficient workflow patterns.
Tracks Claude Code session usage (tokens, costs, skills, MCP, subagents) and sends data to a self-hosted dashboard.
Opus 4.8-aware context optimization: silent-by-default hooks, honest NET token savings, big-file map-then-load, Context Control Center, per-task tracking, prompt coach
Estimate per-turn token cost of your .claude/ configuration and CLAUDE.md. Always-loaded vs path-scoped vs invoked-only, with top contributors. Use --api for exact counts via Anthropic's count_tokens endpoint.