Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Configuration Reference

FieldTypeDefaultDescription
apiKeystringYour gck_* API key (required)
prismThresholdnumber4Minimum PQ score before coaching triggers (0–10)
enableGatewaybooleantrueRoute requests through Optra gateway

File permissions: 600 (owner read-write only) Directory permissions: 700 (owner only)

These fields are configurable when installing the plugin:

{
"userConfig": {
"apiKey": {
"type": "string",
"sensitive": true,
"description": "gck_* key"
},
"enableGateway": {
"type": "boolean",
"description": "Route through Optra gateway (default: true)"
},
"prismThreshold": {
"type": "number",
"description": "Min PQ score 0-10"
}
}
}

Session state (${CLAUDE_PLUGIN_DATA}/session-state.json)

Section titled “Session state (${CLAUDE_PLUGIN_DATA}/session-state.json)”

Managed automatically by the plugin hooks. Reset on session start and after /compact.

FieldTypeDescription
turnCountnumberCurrent turn number
sessionStartnumberSession start timestamp (ms)
sessionIdstringUnique session identifier
totalInputTokensnumberCumulative input tokens
totalOutputTokensnumberCumulative output tokens
firstTurnInputTokensnumberInput tokens on first turn (context baseline)
lastTurnInputTokensnumberInput tokens on most recent turn
lastPromptTimestampnumberTimestamp of last prompt (for response timing)
modelCountsobjectPer-model usage counts
opusLowOutputCountnumberCounter for Opus overkill detection
responseTimesnumber[]Last 50 response times (ms)
lastVersionstringPlugin version at last session (for update notifications)

The plugin syncs these environment variables on session start:

{
"env": {
"OTEL_EXPORTER_OTLP_LOGS_ENDPOINT": "https://ingest.prism.optra-ai.com/v1/logs",
"OTEL_EXPORTER_OTLP_METRICS_ENDPOINT": "https://ingest.prism.optra-ai.com/v1/metrics",
"OTEL_EXPORTER_OTLP_TRACES_ENDPOINT": "https://ingest.prism.optra-ai.com/v1/traces"
}
}

URLs are resolved from the config endpoint based on your API key.