
CANNBot-Insight【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skillsSession-level observability tool for LLM coding agents. Helps analyze long-context usage patterns, detect model hallucination issues, and govern context window growth across agent sessions.中文文档FeaturesImport opencode sessions.db or Claude Code JSONL logs, then analyze Agent sessions turn-by-turn:Tokens Cost— 5-item token breakdown per turn with bar chart relative to model context window; cost estimation from token usage and model pricingContext Growth— Context growth chart per subagent session; animated replay of context window evolution with subagent spawn/death markers;/compactmarkers with context-drop annotations across multiple compactionsContext Governance— View LLM input context composition: visible messages stable System (hidden) overhead; input window correctly truncated at each/compactboundarySubagent Tracking— Identify subagent sessions, build dispatch→response bridges; SVG diagram showing main↔subagent connectionsSkill Events— Track skill load/invoke/use events per turnWorkflow— Divide a session into phases by the workflow skills own progress markers (阶段一/二/三/四 in non-thinking assistant output; future-tense mentions like 后续可继续执行阶段二 are ignored); skills attach to whichever phase their dispatch root turn falls in, so a session that only completed 阶段一 shows as a single 阶段一 — not every session runs the full workflow. Falls back to skill-family gap heuristics when no markers existConcept Tracing— Search keywords across turns, view propagation chain and DAG graphFile Read Analysis— Detect duplicate and unnecessary file readsSession Compare— Compare two sessions on tokens, cost, latency, tool calls, and subagentsOption 1: Web UIRequires Node.js 20.x(v18.19.x fails to install better-sqlite3 / Prisma 6). If you have nvm,start.shauto-switches to Node 20 LTS.Log file locations:opencode:~/.local/share/opencode/sessions.dbClaude Code:~/.claude/projects/hash/sessions/id.jsonl, or point to a directory to scan all .jsonl files./start.sh # Auto install migrate start Web UI on port 21025 ./start.sh -u # Update dependencies migrate start Web UI ./start.sh -f # Fresh build (clear .next cache, rebuild from scratch)Openhttp://localhost:21025. After importing a log file, click a session to explore 9 analysis tabs.Web UI also supports: exporting sessions to standalone SQLite or hierarchical Markdown; uploading sessions to CANNBay with a description dialog.Option 2: CLI Upload Web AnalysisDesigned for SSH remote servers, Web IDEs, and other environments without a browser. CLI imports and uploads in one step, then analyze in Web UI.Log file locations:opencode:~/.local/share/opencode/sessions.dbClaude Code:~/.claude/projects/hash/sessions/id.jsonl, or point to a directory to scan all .jsonl files# Upload from source file (source type auto-detected from file extension) npx tsx src/cli/index.ts upload --file ./sessions.db # Interactive picker if multiple sessions npx tsx src/cli/index.ts upload --file ./logs/ # Claude JSONL (directory)Upload triggers an interactive description prompt. Backend auto-starts if not running and stops after upload completes.After upload, view analysis in Web UI: click theCANNBaybutton during import to select and import DB files directly from the repository — no manual download needed.【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考