getprismo 0.1.51 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,56 +1,69 @@
1
- # Announcement drafts
1
+ # Launch drafts
2
2
 
3
- Working drafts for the autonomous-loop release (getprismo 0.1.42). Edit freely; numbers in brackets should be replaced with real figures from the dashboard once a week of verdicts has accumulated.
3
+ Built on real numbers from a week of dogfooding (getprismo 0.1.52). Verified figures are measured against actual later sessions, never estimated keep that distinction in every claim, it's the whole point.
4
+
5
+ Snapshot used below (one developer, ~1 week, single machine):
6
+ - **Verified saved: $22.81 (6,338,568 tokens)** — repairs whose savings were confirmed by a lower waste rate in later sessions.
7
+ - Observed: 141 sessions, 11.69M tokens, ~5.3M flagged avoidable.
8
+ - Per-developer annualized ≈ **$1,100/yr**; a 10-dev team ≈ **$11k/yr** — verified, not projected from a model.
4
9
 
5
10
  ---
6
11
 
7
12
  ## Show HN
8
13
 
9
- **Title:** Show HN: Prismo an autonomous cost agent for AI coding that verifies its own fixes
14
+ **Title:** Show HN: Prismo an AI-coding cost agent that verifies its own savings ($22/wk/dev)
10
15
 
11
16
  **Body:**
12
17
 
13
- AI coding agents (Claude Code, Codex, Cursor) waste a surprising share of their tokens: re-reading the same file hundreds of times, dumping full test output into context, loading lockfiles and build artifacts, retrying the same failing command. Most tools in this space show you a dashboard of the damage and stop there.
18
+ AI coding agents (Claude Code, Codex, Cursor) quietly waste a big share of their tokens: re-reading the same file hundreds of times, dumping full test output into context, loading lockfiles and build artifacts, retrying a failing command over and over. Most tools here show you a dashboard of the damage and stop. I wanted one that *fixes* it and then *proves* the fix worked.
14
19
 
15
- Prismo closes the loop. It runs locally (`npx getprismo doctor` to try it — no login, nothing leaves your machine), reads your agents' own session logs, and attributes waste to one of five causes. Then, if you connect it:
20
+ Prismo runs locally `npx getprismo doctor`, no login, nothing leaves your machine reads your agents' own session logs, and attributes waste to one of five causes. Connect it and it closes the loop:
16
21
 
17
- - a local planner repairs the top cause automatically each cause has a dedicated fix, not a generic one
18
- - after every repair, it measures the waste rate for that cause in your *later* sessions and stores a verdict: improved, no-change, or regressed
19
- - failed repairs escalate to a stronger tier (context firewall, tighter budgets); a cause that fails both tiers is held for human review instead of being retried forever
20
- - for Claude Code it goes further than advice: a PreToolUse hook actually denies reads into blocked context and the fourth retry of an identical command (fail-open, removable with one command)
21
- - savings are reported in dollars, verified against real usage not estimated with a weekly digest you can paste into Slack
22
- - and the planner learns from the fleet: anonymized repair verdicts (counts only) aggregate into priors, so your first repair starts at the tier that's known to work
22
+ - A local planner repairs the top cause automatically. Each cause gets a dedicated fix (ignore rules + context packs, shielded commands, a context firewall, scoped session restarts) — not one generic "optimize."
23
+ - After each repair it measures that cause's waste rate in your *later* sessions and stores a verdict: improved / no-change / regressed (14-day baseline, before/after rates, 1% epsilon — the math is in the repo).
24
+ - A repair that doesn't help escalates to a stronger tier; one that fails both tiers is held for human review instead of being retried forever.
25
+ - For Claude Code it goes past advice: a PreToolUse hook actually *denies* reads into blocked context and the 4th retry of an identical failing command (fail-open, removed with one command).
26
+ - Savings are reported in dollars, **verified against real usage, not estimated**, with a weekly digest you can paste into Slack.
23
27
 
24
- In our own dogfooding it [verified ~$X saved across N sessions in the first week].
28
+ I dogfooded it on my own machine for a week. It verified **$22.81 / 6.3M tokens saved** (≈ $1,100/yr/dev annualized) — and, more honestly, the week of dogfooding caught **six real bugs in Prismo itself**, including one where it silently dropped *all* Claude Code telemetry for any repo whose path contains a space (e.g. `~/Code Projects/...`), and a verification bug where mixing in Cursor (which can't report the signal) poisoned the baseline so nothing ever verified. Both are fixed; finding them this way is kind of the best argument for the verify-everything design.
25
29
 
26
- The CLI is MIT-licensed: https://github.com/shanirsh/prismodev — the verification loop math is in the repo (14-day baseline, before/after waste rates, 1% epsilon). Would love feedback on the enforcement design and the verdict thresholds.
30
+ MIT-licensed, the verification and enforcement logic is all in the open: https://github.com/shanirsh/prismodev would love feedback on the enforcement model and the verdict thresholds.
27
31
 
28
32
  ---
29
33
 
30
34
  ## X / Twitter thread
31
35
 
32
- 1/ Every AI-coding-cost tool shows you a dashboard of waste. We built the thing that fixes it — and then proves the fix worked, in dollars.
36
+ 1/ Every AI-coding-cost tool shows you a dashboard of waste. I built the one that fixes it — then proves the fix worked, in dollars, measured against your real later sessions.
33
37
 
34
- 2/ Prismo watches your Claude Code / Codex / Cursor sessions locally, attributes waste to 5 causes, and repairs the top one automatically. Ignore rules, shielded commands, context firewalls, scoped restarts each cause gets its own fix.
38
+ 2/ One week dogfooding on my own machine: **$22.81 / 6.3M tokens verified saved** (~$1,100/yr/dev). "Verified" = a repair ran, then later sessions showed a measurably lower waste rate. Not an estimate.
35
39
 
36
- 3/ The part nobody else does: after a repair, it measures that cause's waste rate in your NEXT sessions. Improved stand down. No change escalate to a stronger repair. Failed twice stop and ask a human. It's a feedback controller, not a script.
40
+ 3/ How: it reads your Claude Code / Codex / Cursor logs locally, attributes waste to 5 causes, and repairs the top one each cause gets its own fix, not a generic "optimize."
37
41
 
38
- 4/ For Claude Code it's not advisory. `prismo enforce install` wires a hook that *denies* reads into node_modules/logs/build output and blocks the 4th retry of an identical failing command. Fail-open, one command to remove.
42
+ 4/ The part nobody else does: after a repair it re-measures that cause in your NEXT sessions. Improved stand down. No change escalate to a stronger repair. Failed twice stop and ask a human. A feedback controller, not a script.
39
43
 
40
- 5/ And it learns across every install: anonymized repair verdicts roll up into fleet priors, so your first repair starts at the tier the fleet already knows works. The more users, the smarter every agent gets.
44
+ 5/ For Claude Code it's not advisory a PreToolUse hook *denies* reads into node_modules/logs/build output and blocks the 4th retry of an identical failing command. Fail-open, one command to remove.
41
45
 
42
- 6/ Monday morning: `prismo digest` "Prismo saved you ~$X this weekverified against your sessions." Paste it in Slack. The product re-justifies itself weekly.
46
+ 6/ Most honest part: a week of dogfooding caught 6 real bugs in Prismo itself including one that silently hid ALL Claude Code data for any repo path with a space in it. Verifying everything is how you find that.
43
47
 
44
- 7/ Try it in 10 seconds, no login, local-only: `npx getprismo doctor` — MIT licensed → github.com/shanirsh/prismodev
48
+ 7/ `npx getprismo doctor` 10 seconds, no login, local-only. MIT: github.com/shanirsh/prismodev
45
49
 
46
50
  ---
47
51
 
48
- ## Release notes (0.1.40 → 0.1.42)
52
+ ## Release notes (0.1.40 → 0.1.52)
49
53
 
50
- - **Cause-specific repair executors** — workspace actions with a `targetCause` run a targeted repair (repeated-file-reads, tool-output-flood, generated-artifacts, context-loop, long-session-buildup) instead of generic doctor; `prismo repair <cause>` runs them standalone.
51
- - **Autonomous repair planner** — `agent --watch` self-repairs on an interval with thresholds, per-cause cooldowns, local before/after verdicts, and mild→aggressive escalation; `prismo repair auto [--dry-run]`.
52
- - **Runtime enforcement** — `prismo enforce install` adds a Claude Code PreToolUse hook denying blocked-context reads and identical-command loops; fails open; `enforce uninstall` reverts.
53
- - **Verified savings in dollars** — `prismo digest [--days N]` prints the weekly verified-savings summary; the dashboard leads with dollars.
54
+ - **Cause-specific repair executors** — targeted repairs per waste cause instead of generic doctor; `prismo repair <cause|auto>`.
55
+ - **Autonomous repair planner** — `agent --watch` self-repairs with thresholds, per-cause cooldowns, local before/after verdicts, and mild→aggressive escalation.
56
+ - **Runtime enforcement** — `prismo enforce install` adds Claude Code Pre/PostToolUse hooks that block blocked-context reads and failing-command loops; fail-open; outcome-aware.
57
+ - **Verified savings in dollars** — `prismo digest`; the dashboard leads with verified dollars, with live prevention and early signals labeled separately.
54
58
  - **Fleet priors** — first repairs start at the tier the fleet's verified outcomes recommend (anonymized counts only; local verdicts always win).
55
- - **Cloud escalation + dedupe** — auto-queued repairs escalate after failed verdicts; duplicate actions are deduped at creation and claim.
59
+ - **Multi-repo capture** — one connector observes every repo on the machine, each session attributed to its own repo.
60
+ - **One-command protect** — `prismo protect` runs the full stack (safe fixes + context packs + enforcement + connector).
56
61
  - **CI releases** — tag push runs tests and publishes.
62
+
63
+ ### Bugs the dogfood week caught (and fixed)
64
+ 1. Digest counted background auto-detect scans as interventions (186 fake vs 3 real).
65
+ 2. Verification baseline poisoned by Cursor's blind zero-signals — now compares like-for-like across tools.
66
+ 3. Claude Code telemetry silently dropped for repo paths containing a space or dot (folder-name encoding mismatch).
67
+ 4. Connector was single-repo — now captures every repo.
68
+ 5. `prismo protect` silently repointed a running connector (checked a field that never existed).
69
+ 6. Dashboard polling (every 8s, loading a large unused column) blew past the DB egress quota — deferred the column, slowed/gated polling, windowed scans.
@@ -15,6 +15,8 @@ This page lists **exactly** what the connector sends after you connect, field by
15
15
 
16
16
  ## What session sync sends (`prismo sync`, and the connector on an interval)
17
17
 
18
+ The background connector captures recent agent sessions from **every repo** on this machine (each attributed to its own repo), so all your agent activity is visible in one place — not just the repo the connector was started in. A one-off `prismo sync` covers only the current repo unless you pass `--all-repos`. Either way, only the numbers and labels below are sent; never code or prompts.
19
+
18
20
  Per machine:
19
21
 
20
22
  | field | example | note |
@@ -8,3 +8,8 @@ Paper cuts, observations, and metric notes from the measurement window. Fix bugs
8
8
  - 2026-06-12: follow-up dogfood found backend-summary.md could churn backups because generated .prismo context files influenced load-bearing text-reference counts. Excluded .prismo generated context from the reference corpus and added a regression test; repeated optimize on the SaaS repo now produces 0 new .bak files after the one-time old-report replacement.
9
9
  - 2026-06-12: connector dogfood found scoped `optimize frontend` and unscoped `optimize` could alternate optimize-report.md's Generated Files list and create metadata-only backups. Changed optimize-report metadata-only changes to update without backups and added a scoped/unscoped regression test.
10
10
  - 2026-06-12: connector dogfood found legitimate generated-context changes still left timestamped `.prismo/*.bak` files, which made the repo look dirty during validation. Changed `prismo optimize` context files to update in place because they are reproducible generated artifacts; user-authored files still keep backups.
11
+ - 2026-06-14: THREE real bugs found via dogfooding, all fixed + shipped (v0.1.47-0.1.51):
12
+ 1. Digest counted auto-detect health scans as interventions (186 fake vs 3 real).
13
+ 2. Verification baseline poisoned by Cursor's blind 0-signals -> now compares like-for-like across tools.
14
+ 3. CRITICAL: Claude Code telemetry silently dropped when repo path has a space/dot ("Code Projects") -> path encoding now matches Claude's. Was hiding the strongest signal for any user with a spaced path.
15
+ - 2026-06-14: KNOWN BUG (not yet fixed): `prismo protect` reinstalls/repoints the single connector even when one is already running for another repo, silently hijacking which repo syncs. Connector is single-repo; working across multiple repos means only the watched one syncs to the dashboard. Post-freeze: make protect not move a running connector, and consider syncing all recent repos.
@@ -752,7 +752,10 @@ module.exports = function createAgent(deps) {
752
752
  let syncResult = null;
753
753
  if (options.syncTelemetry) {
754
754
  try {
755
- const result = await runSync(rootDir, { limit: options.syncLimit || 20 });
755
+ // The connector is the always-on capturer: observe every repo's agent
756
+ // activity, not just the one it was started in (each session is
757
+ // attributed to its own repo). Opt out with allRepos: false.
758
+ const result = await runSync(rootDir, { limit: options.syncLimit || 20, allRepos: options.allRepos !== false });
756
759
  syncResult = {
757
760
  synced: Boolean(result.synced),
758
761
  sessions: Number(result.aggregate?.sessions || 0),
@@ -417,6 +417,7 @@ function createCli(deps) {
417
417
  preview: rest.includes("--preview"),
418
418
  limit: parsePositiveInt(limitIndex >= 0 ? rest[limitIndex + 1] : null, 20),
419
419
  tool: toolIndex >= 0 ? rest[toolIndex + 1] : "all",
420
+ allRepos: rest.includes("--all-repos"),
420
421
  endpoint: apiUrlIndex >= 0 ? `${String(rest[apiUrlIndex + 1] || "").replace(/\/$/, "")}/v1/dev/sessions/sync` : null,
421
422
  };
422
423
  if (rest.includes("--watch")) {
@@ -859,8 +860,15 @@ function createCli(deps) {
859
860
  const config = loadConfig();
860
861
  if (config?.token) {
861
862
  const connector = runConnectorStatus();
862
- if (connector.running) {
863
- steps.push({ step: "connector", ok: true, detail: "Background connector already running." });
863
+ if (connector.installed) {
864
+ // The connector already runs and now observes every repo's agent
865
+ // activity (all-repos sync), so do NOT repoint it to this repo —
866
+ // that would hijack which repo the dashboard treats as primary.
867
+ const watchedRoot = connector.state && connector.state.root;
868
+ const watched = watchedRoot && path.resolve(watchedRoot) !== path.resolve(target)
869
+ ? ` (watching ${path.basename(watchedRoot)}; it captures this repo too)`
870
+ : "";
871
+ steps.push({ step: "connector", ok: true, detail: `Background connector already installed${watched}.` });
864
872
  } else {
865
873
  runConnectorInstall(target, { mode: "autopilot" });
866
874
  steps.push({ step: "connector", ok: true, detail: "Background connector installed and started in autopilot." });
@@ -86,7 +86,18 @@ module.exports = function createCloudSync(deps) {
86
86
  }
87
87
  }
88
88
 
89
- function repoIdentity(root) {
89
+ function sameResolvedPath(a, b) {
90
+ if (!a || !b) return false;
91
+ try {
92
+ const ra = fs.existsSync(a) ? fs.realpathSync(a) : path.resolve(a);
93
+ const rb = fs.existsSync(b) ? fs.realpathSync(b) : path.resolve(b);
94
+ return ra === rb;
95
+ } catch {
96
+ return path.resolve(a) === path.resolve(b);
97
+ }
98
+ }
99
+
100
+ function repoIdentity(root, idOptions = {}) {
90
101
  const resolved = path.resolve(root || process.cwd());
91
102
  const remote = runGit(resolved, ["config", "--get", "remote.origin.url"]);
92
103
  const branch = runGit(resolved, ["branch", "--show-current"]);
@@ -96,7 +107,9 @@ module.exports = function createCloudSync(deps) {
96
107
  remote: redactRemote(remote),
97
108
  branch: branch || null,
98
109
  commit: commit || null,
99
- pr: detectPullRequest(resolved),
110
+ // PR detection shells out to `gh` per repo; skip it for secondary repos
111
+ // in all-repos sync so a 60s poll doesn't fan out gh calls everywhere.
112
+ pr: idOptions.detectPr === false ? null : detectPullRequest(resolved),
100
113
  };
101
114
  }
102
115
 
@@ -176,11 +189,13 @@ module.exports = function createCloudSync(deps) {
176
189
 
177
190
  function buildSyncPayload(rootDir = process.cwd(), options = {}) {
178
191
  const root = path.resolve(rootDir);
192
+ const allRepos = Boolean(options.allRepos);
179
193
  const repo = repoIdentity(root);
180
194
  const usage = getUsageSummary({
181
195
  cwd: root,
182
196
  tool: options.tool || "all",
183
197
  limit: options.limit || 20,
198
+ allRepos,
184
199
  });
185
200
  let scan = null;
186
201
  try {
@@ -188,7 +203,28 @@ module.exports = function createCloudSync(deps) {
188
203
  } catch {
189
204
  scan = null;
190
205
  }
191
- const sessions = (usage.sessions || []).map((session) => sanitizeSession(session, repo));
206
+
207
+ // In all-repos mode each session is attributed to its own repo, derived
208
+ // from the session's recorded cwd (git lookups cached per directory), so
209
+ // the dashboard groups activity by the repo it actually happened in.
210
+ const repoCache = new Map();
211
+ function repoForSession(session) {
212
+ if (!allRepos) return repo;
213
+ const sessionCwd = session && session.cwd ? path.resolve(session.cwd) : null;
214
+ if (!sessionCwd) return repo;
215
+ if (sameResolvedPath(sessionCwd, root)) return repo;
216
+ if (repoCache.has(sessionCwd)) return repoCache.get(sessionCwd);
217
+ let id;
218
+ try {
219
+ id = repoIdentity(sessionCwd, { detectPr: false });
220
+ } catch {
221
+ id = repo;
222
+ }
223
+ repoCache.set(sessionCwd, id);
224
+ return id;
225
+ }
226
+
227
+ const sessions = (usage.sessions || []).map((session) => sanitizeSession(session, repoForSession(session)));
192
228
  const aggregate = sessions.reduce((acc, session) => {
193
229
  acc.sessions += 1;
194
230
  acc.displayTokens += session.tokens.display;
@@ -347,6 +383,7 @@ module.exports = function createCloudSync(deps) {
347
383
  const payload = buildSyncPayload(rootDir, {
348
384
  limit: options.limit || config?.sync?.defaultLimit || 20,
349
385
  tool: options.tool || "all",
386
+ allRepos: Boolean(options.allRepos),
350
387
  });
351
388
  if (options.dryRun || options.preview) {
352
389
  return {
@@ -201,6 +201,13 @@ function renderFirewallPrompt(result) {
201
201
  ].join("\n");
202
202
  }
203
203
 
204
+ function writeFirewallGeneratedFile(root, relPath, contents) {
205
+ const fullPath = path.join(root, relPath);
206
+ fs.mkdirSync(path.dirname(fullPath), { recursive: true });
207
+ fs.writeFileSync(fullPath, contents, "utf8");
208
+ return { path: relPath, backupPath: null };
209
+ }
210
+
204
211
  function runFirewall(rootDir = process.cwd(), options = {}) {
205
212
  const ctx = createOptimizeContext(rootDir, options.scope || null);
206
213
  const task = options.task || options.scope || "general";
@@ -224,7 +231,7 @@ function runFirewall(rootDir = process.cwd(), options = {}) {
224
231
 
225
232
  if (!options.dryRun) {
226
233
  const write = (relPath, contents) => {
227
- if (!options.live) return writeGeneratedFile(ctx.root, relPath, contents);
234
+ if (!options.live) return writeFirewallGeneratedFile(ctx.root, relPath, contents);
228
235
  const fullPath = path.join(ctx.root, relPath);
229
236
  fs.mkdirSync(path.dirname(fullPath), { recursive: true });
230
237
  fs.writeFileSync(fullPath, contents, "utf8");
@@ -15,7 +15,7 @@ Usage:
15
15
  prismo connect [--json] [--token TOKEN] [--api-url URL] [--org ORG] [--user USER] [--device NAME]
16
16
  prismo connector [status|install|start|stop|uninstall] [--json] [--interval N] [--sync-interval N] [--mode observe|suggest|autopilot] [path]
17
17
  prismo bridge [--json] [path]
18
- prismo sync [--json] [--dry-run] [--watch] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
18
+ prismo sync [--json] [--dry-run] [--watch] [--all-repos] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
19
19
  prismo status [--json]
20
20
  prismo digest [--json] [--days N]
21
21
  prismo disconnect [--json]
@@ -485,7 +485,7 @@ Output:
485
485
  Usage:
486
486
  prismo connect [--json] [--token TOKEN] [--api-url URL] [--org ORG] [--user USER] [--device NAME]
487
487
  prismo connector [status|install|start|stop|uninstall] [--json] [--interval N] [--sync-interval N] [--mode observe|suggest|autopilot] [path]
488
- prismo sync [--json] [--dry-run] [--watch] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
488
+ prismo sync [--json] [--dry-run] [--watch] [--all-repos] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
489
489
  prismo status [--json]
490
490
  prismo disconnect [--json]
491
491
 
@@ -556,7 +556,7 @@ Privacy:
556
556
  sync: `PrismoDev Sync
557
557
 
558
558
  Usage:
559
- prismo sync [--json] [--dry-run] [--watch] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
559
+ prismo sync [--json] [--dry-run] [--watch] [--all-repos] [--interval N] [--limit N] [--tool all|codex|claude|cursor] [path]
560
560
 
561
561
  Examples:
562
562
  prismo sync --dry-run
@@ -257,24 +257,53 @@ function sameResolvedPath(a, b) {
257
257
  return false;
258
258
  }
259
259
  }
260
+ function safeMtimeMs(filePath) {
261
+ try {
262
+ return fs.statSync(filePath).mtimeMs;
263
+ } catch {
264
+ return 0;
265
+ }
266
+ }
267
+
260
268
  function getUsageSummary(options = {}) {
261
269
  const tool = options.tool || "all";
262
270
  const limit = options.limit || 5;
263
271
  const cwd = options.cwd || process.cwd();
272
+ // allRepos: capture the most recent sessions across every repo on this
273
+ // machine (each retains its own cwd for per-repo attribution), so a single
274
+ // always-on connector observes all of the user's agent activity rather than
275
+ // only the one repo it was started in. Cursor is skipped here because it
276
+ // exposes no per-session signal and cannot be attributed per repo.
277
+ const allRepos = Boolean(options.allRepos);
264
278
  const sessions = [];
265
279
  if (tool === "all" || tool === "codex") {
266
- for (const file of getCodexSessionFiles().slice(0, Math.max(limit * 8, 20))) {
267
- const session = analyzeSessionFile(file, "codex");
268
- if (!session.cwd || sameResolvedPath(session.cwd, cwd)) sessions.push(session);
269
- if (sessions.filter((item) => item.tool === "codex").length >= limit) break;
280
+ if (allRepos) {
281
+ const recent = getCodexSessionFiles()
282
+ .map((file) => ({ file, m: safeMtimeMs(file) }))
283
+ .sort((a, b) => b.m - a.m)
284
+ .slice(0, Math.max(limit, 30));
285
+ for (const { file } of recent) sessions.push(analyzeSessionFile(file, "codex"));
286
+ } else {
287
+ for (const file of getCodexSessionFiles().slice(0, Math.max(limit * 8, 20))) {
288
+ const session = analyzeSessionFile(file, "codex");
289
+ if (!session.cwd || sameResolvedPath(session.cwd, cwd)) sessions.push(session);
290
+ if (sessions.filter((item) => item.tool === "codex").length >= limit) break;
291
+ }
270
292
  }
271
293
  }
272
294
  if (tool === "all" || tool === "claude") {
273
- for (const file of getClaudeSessionFiles(cwd).slice(0, limit)) {
295
+ const claudeFiles = allRepos
296
+ ? getAllClaudeSessionFiles()
297
+ .map((file) => ({ file, m: safeMtimeMs(file) }))
298
+ .sort((a, b) => b.m - a.m)
299
+ .slice(0, Math.max(limit, 30))
300
+ .map((x) => x.file)
301
+ : getClaudeSessionFiles(cwd).slice(0, limit);
302
+ for (const file of claudeFiles) {
274
303
  sessions.push(analyzeSessionFile(file, "claude-code"));
275
304
  }
276
305
  }
277
- if (tool === "all" || tool === "cursor") {
306
+ if (!allRepos && (tool === "all" || tool === "cursor")) {
278
307
  try {
279
308
  const cursorData = analyzeCursorSessions({ limit, cwd });
280
309
  if (cursorData.sessions.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getprismo",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "Local AI coding workflow scanner for Codex, Claude Code, Cursor, and token-waste diagnostics.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/shanirsh/prismodev#readme",