PRISM · CloudCLI Cloud · Plugin Docs · Bug Reports
Session intelligence for Claude Code, inside CloudCLI. See why your sessions are burning tokens without leaving the browser.
This plugin adds a PRISM tab to CloudCLI that scores your Claude Code sessions after the fact and tells you what to fix:
- A health grade per project: overall score plus a breakdown across five dimensions (token efficiency, tool health, context hygiene, CLAUDE.md adherence, session continuity)
- The top issues PRISM found: retry loops, CLAUDE.md re-read costs, rule violations, truncated sessions, with severity
- An all-projects overview when nothing is selected: every project sorted worst first, so the sessions that need attention surface immediately
Remote sessions write the same JSONL data as local ones, so everything PRISM scores locally works the same when your sessions run through CloudCLI.
PRISM needs to be installed and on PATH (Python 3.11+):
# Install PRISM
pip install prism-cc
# Or isolated
pipx install prism-ccThen install the plugin: open Settings > Plugins in CloudCLI, paste this repository's URL, and click Install. The repo is cloned, dependencies are installed, TypeScript is compiled, and the plugin is ready to enable.
Manual install works too:
git clone https://github.com/jakeefr/cloudcli-plugin-prism.git ~/.claude-code-ui/plugins/prism
cd ~/.claude-code-ui/plugins/prism
npm install
npm run buildEnable "PRISM" in Settings > Plugins and a new tab appears.
With a project selected:
my-project [refresh]
B+ overall health 83.8 / 100 · 12 sessions
dimensions
token efficiency ████████░░ 75 B
tool health ████████░░ 75 B
context hygiene █████████░ 90 A
claude.md adherence █████████░ 85 A-
session continuity ██████████ 100 A+
top issues
HIGH token_efficiency CLAUDE.md re-reads consume >200% of session tokens
MEDIUM tool_health Retry loop detected on npm test
With no project selected, a table of every project, worst first. Select a project for the full report. Refresh re-runs the analysis on demand; results are cached per project until you refresh or switch.
For deeper digging (session replay, CLAUDE.md fix recommendations, the interactive TUI), run prism directly in a terminal. This tab is the at-a-glance view.
The frontend renders into the plugin tab and talks to a small backend through the host's RPC proxy. The backend spawns prism analyze --json (scoped with --project <path> when a project is selected), parses the JSON report, and returns it.
plugin tab (dist/index.js)
| api.rpc('GET', 'report?path=...')
v
plugin backend (dist/server.js)
| prism analyze --project <path> --json
v
prism CLI -> ~/.claude/projects/<encoded>/[...].jsonl
If prism is installed somewhere unusual, point the plugin at it with the PRISM_BIN environment variable.
Does this plugin send any data anywhere?
No. The backend only talks to the locally installed prism CLI, and PRISM itself never makes network calls. All analysis runs locally against files already on your machine.
Can it hurt my sessions?
No. The plugin is read-only end to end. It reads what PRISM reads, your own session files under ~/.claude/projects/, and never writes to them.
npm install
npm run build # compile TypeScript to dist/
npm test # build + node --test against the compiled helperssrc/types.ts is the plugin API definition copied from the plugin starter.
MIT