agent-forensics
Advanced tools
+23
-1
@@ -245,4 +245,26 @@ #!/usr/bin/env node | ||
| console.log(` ${c.dim}Analysis completed in ${report.analysisTimeMs}ms | ${report.privacy}${c.reset}`); | ||
| console.log(` ${c.dim}API: https://api.agentsconsultants.com${c.reset}`); | ||
| console.log(); | ||
| // Upsell prompt for basic tier | ||
| if (report.tier === "basic") { | ||
| console.log(`${c.bold}${c.yellow} ┌─────────────────────────────────────────────────────────┐${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.bold}Want to know where your tokens are being wasted?${c.reset} ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} Run with ${c.cyan}--full${c.reset} to unlock: ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.green}✓${c.reset} Waste pattern detection (debug loops, model misuse) ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.green}✓${c.reset} Per-tool cost attribution ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.green}✓${c.reset} Actionable recommendations with CLAUDE.md fixes ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.green}✓${c.reset} Estimated monthly savings ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} │${c.reset} ${c.dim}npx agent-forensics analyze <path> --full${c.reset} ${c.bold}${c.yellow}│${c.reset}`); | ||
| console.log(`${c.bold}${c.yellow} └─────────────────────────────────────────────────────────┘${c.reset}`); | ||
| console.log(); | ||
| } | ||
| // API upsell for programmatic/bulk access | ||
| console.log(`${c.dim} ──────────────────────────────────────────────────────────${c.reset}`); | ||
| console.log(` ${c.bold}Programmatic access:${c.reset} ${c.cyan}https://api.agentsconsultants.com${c.reset}`); | ||
| console.log(` ${c.dim}POST /forensics/analyze — $5 basic / $15 full tier${c.reset}`); | ||
| console.log(` ${c.dim}Integrate cost checks directly into your agent workflows.${c.reset}`); | ||
| console.log(); | ||
| } | ||
@@ -249,0 +271,0 @@ |
+1
-1
| { | ||
| "name": "agent-forensics", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Agent Cost Observability — Analyze Claude Code session logs to find token waste, calculate costs, and get actionable optimization recommendations.", | ||
@@ -5,0 +5,0 @@ "main": "lib/analyzer.js", |
32289
8.44%731
2.81%