惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
罗磊的独立博客
V
Visual Studio Blog
爱范儿
爱范儿
H
Help Net Security
J
Java Code Geeks
I
InfoQ
Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recorded Future
Recorded Future
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Scott Helme
Scott Helme
S
SegmentFault 最新的问题
S
Securelist
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog
F
Fortinet All Blogs
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Schneier on Security
Project Zero
Project Zero
Martin Fowler
Martin Fowler
C
Cybersecurity and Infrastructure Security Agency CISA
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic

Show HN

GitHub - steveking-gh/firmion: Firmion is DSL and engine for firmware image generation. GitHub - villagesql/villagesql-skills: Agent skills for VillageSQL - gemini-cli-extension; claude-code-plugin GitHub - flightdeckhq/flightdeck: Observability and control plane for AI agents. CSP Radar GitHub - Light-Heart-Labs/DreamServer: Turn your PC, Mac, or Linux box into an AI server. LLM inference, chat UI, voice, agents, workflows, RAG, and image generation. GitHub - Diplomat-ai/diplomat-agent-ts: What can your TypeScript AI agent do to the real world? Scan your code. See which tool calls have zero checks Code Block Selector - Visual Studio Marketplace Prometheus dependency graph — interactive showcase | Riftmap Show HN: I made a vi-like modal keyboard plugin for Figma GitHub - run-llama/liteparse: A fast, helpful, and open-source document parser GitHub - dalemyers/Roar: A macOS CLI tool for notifications GitHub - district-solutions/open-agent-tools-coder: Enables small-to-large self-hosted ai models to use local source code when running tool-calling agentic workloads. We actively data mine 20,900+ (2+ TB) popular github repos using large and small ai models to create reuseable: json, markdown and parquet files for local-first tool-calling models. GitHub - progapandist/stripeek: A local TUI proxy for real-time Stripe API debugging, built for navigating complex payloads fast. GitHub - sir1st/hermes-desktop: All-in-one cross-platform desktop app for Hermes Agent — bundles Python + hermes-agent + hermes-web-ui GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: Generate Claude Code Workflows using Spec Driven Development approach GitHub - nixys/nxs-universal-chart: The Helm chart you can use to install any of your applications into Kubernetes/OpenShift Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code. GitHub - tamerh/enju: Coordinating Humans, AI Agents, and Compute as Peers on a Shared Workflow Graph Show HN: Continuity-auth – Respect-weighted rate limits for the open web GitHub - luml-ai/luml: AI lifecycle platform where engineers and agents track experiments, train models, and ship to production. GitHub - mrdanielcasper/CoreTex: A UNIX-inspired, biomimetic, flat-file AI harness and knowledge engine. GitHub - clemg/pierre-github: Pierre's diffs.com and trees.software for Github GitHub - lyriks-io/unspaghettit: Behavior-driven AI development without prompt spaghetti. GitHub - sofumel/claude-handoff-revive: Resume Claude Code work after rate/usage/context limits without replaying the prior transcript. Auto-saves at 90%/95% usage. Plugin-installable, 10 languages. GitHub - dotexorg/saferpc: Typed, end-to-end encrypted RPC over any bidirectional channel. GitHub - BeeZeeAgent/beezee: Agent harness orchestration Legato Next.js Boilerplate for Internal Tools · CoreUI GitHub - clark-labs-inc/clark-hash: Clark Hash, 32x smaller searchable sketches for embeddings GitHub - ZeroPointRepo/youtube-mcp: The fastest YouTube transcript + YouTube search MCP for AI agents. Try for free. Typing Mastery — climb toward 100+ WPM, deliberately GitHub - Andebugulin/Awareen GitHub - fayzan123/claude-workflow-composer: Visual desktop app for composing multi-agent coding workflows. Drag agents, attach skills and MCPs, wire handoffs, export to .claude/ GitHub - harshaneel/humanize: Best static AI text humanizer. Two research-grounded skills that work in any LLM (Claude, ChatGPT, Gemini, Codex): humanize beats perplexity-based detectors, ai-check produces forensic scoring with evidence-quoted flags. Nine levers, 50+ peer-reviewed sources, 2024-2026 detection literature. GitHub - StackOneHQ/stack-nudge GitHub - nodes-app/swift-markdown-engine: A native AppKit Markdown editor for macOS, built on TextKit 2 and bridged to SwiftUI. We hardened an LLM agent. Each defense we added made it more exploitable. GitHub - alkait/WhatsKept: Agent-queryable WhatsApp history from an iOS backup — a single Go binary. GitHub - octelium/cordium: Open-source, general-purpose sandbox platform for devs and AI agents that provides identity-based secure access to infrastructure without credentials. WAR.GOV/UFO Microfilm5 GitHub - scosman/videowright: Build animated explainer videos with your coding agent GitHub - dipankar/dscode: The code editor you can take apart. GitHub - zoharbabin/web-researcher-mcp: MCP server (Go) for AI assistants: web search, content extraction, academic/patent/news research. Multi-provider routing, 4-tier scraping, search lenses. Works with Claude, Cursor, and any MCP client. GitHub - ruvnet/RuView: π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video. GitHub - scanaislop/aislop: Catch the slop AI coding agents leave in your code: narrative comments, swallowed exceptions, as-any casts, dead code, oversized functions. 50+ rules across 7 languages (TypeScript, JavaScript, Python, Go, Rust, Ruby, PHP). Sub-second, deterministic, no LLM at runtime. MIT-licensed. GitHub - kouhxp/cheap-im: CPU-only voice agent approximating Thinking Machines' Interaction Models demo GitHub - unprovable/OrchidMantis: Orchid Mantis — standalone framework for Zero-Knowledge Proofs of eXploit (ZKPoX). GitHub - MarcellM01/TinySearch: Shrink the web for your local LLMs! GitHub - TangibleResearch/Halgorithem: A Algo designed to detect AI Hallucitions GitHub - DO-SAY-GO/freelang: I love freelang GitHub - CarpseDeam/Aura-IDE: An AI coding harness that shaped itself - Planner/Worker agents, repo awareness, surgical edits, validation, recovery, and safe diff approvals. GitHub - chojs23/concord: A feature-rich TUI client for Discord GitHub - tommyjepsen/awesome-ux-skills: UX & AI Product designs skills you can use today in Claude Code GitHub - aerf-spec/aerf: Agent Evidence Receipt Format (AERF) — an open specification for tamper-evident, independently verifiable records of AI agent actions. GitHub - kklimuk/docx-cli: CLI for AI agents (Claude, Codex) to read, edit, and comment on .docx files with full format fidelity. GitHub - Jwrede/tokentoll: Catch LLM cost changes in code review. Infracost for LLM spend. GitHub - samchon/ttsc: A `typescript-go` toolchain for compiler-powered plugins and type-safe execution + 500x faster lint integrated into compiler GitHub - Higangssh/homebutler: 🏠 Manage your homelab from chat. Single binary, zero dependencies. GitHub - olalie/tapmap: See where your computer connects and what stands out on a live world map. GitHub - Diplomat-ai/diplomat-agent: What can your AI agent do to the real world? Scan your code. See which tool calls have zero checks GitHub - Bajusz15/beacon: Open-source agent for secure remote access, monitoring, and deploys across home-lab and self-hosted machines like Raspberry Pi, N100, or any Linux server. Open web based TTY or tunnel Home Assistant and other local services securely without opening ports. BigTech AI News - Chrome 应用商店 GitHub - vinhnx/VTCode: VT Code is an open-source coding agent with LLM-native code understanding and robust shell safety. Supports multiple LLM providers with automatic failover and efficient context management. GitHub - michaelaz774/decision-engine: A decision operating system for startup founders, powered by Claude Code. Synthesizes wisdom from 25+ legendary founders and investors into interactive AI-driven decision frameworks. GitHub - Chrilleweb/dotenv-diff: Validate environment variable usage in your codebase GitHub - Lumen-Labs/brainapi2: BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications. GitHub - familiar-software/familiar: Let AI watch you work. Familiar lets your AI update its memory, skills, and knowledge by watching your screen. GitHub - skorotkiewicz/rudo: A small, elegant dock for Wayland GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. make sidebar/address bar rounded corner toggleable
GitHub - yonk-labs/claude-session-analyzer: See what Claude Code is really doing to your context — per-session & per-skill token/cost/time analysis and a Textual TUI over local transcripts. Find the prompt or skill quietly slowing you down. Python.
TheMadHatter · 2026-06-25 · via Show HN

See what Claude Code is really doing to your context — and which prompt or skill is quietly slowing you down.

Claude Code already writes a full JSONL transcript of every session to ~/.claude/projects/. csa reads those transcripts and turns them into tokens, cost, time, and per-skill behavior — no wrapper, no instrumentation, no extra capture step. The data is already there; this just reads it.

A big global CLAUDE.md, dozens of skills, and a pile of MCP servers ride in your context on every turn. One skill can balloon a single turn by 100k+ tokens. A "helpful" skill can interrupt you with questions you never asked for. You usually can't see any of it. Now you can.


Quickstart

pipx install claude-session-analyzer       # recommended (isolated CLI)
# or: uv tool install claude-session-analyzer
# or: pip install claude-session-analyzer

csa            # corpus profile: spend, bloat ratio, top sessions
csa --tui      # the interactive browser (main surface)

csa is a command-line app, so pipx/uv tool keep it out of your global site-packages — but plain pip install claude-session-analyzer works too.

From source (for development)
git clone git@github.com:yonk-labs/claude-session-analyzer.git
cd claude-session-analyzer
uv venv .venv && uv pip install --python .venv/bin/python -e .
# or: python3 -m pip install -e .

The text CLI is stdlib-only. The TUI's one dependency is Textual.


What you get

csa                  # one-shot text report over every session
csa --tui            # interactive: projects → sessions → drill down
csa --local          # only the current directory's sessions (the cwd's project)
csa --session FILE   # per-turn breakdown of one transcript
csa /other/projects  # point at a different root

--local works for both the text report and --tui — it maps the current directory to its Claude Code project and scopes everything to it.

The CLI report

======================================================================
USAGE PROFILE  (1,240 sessions under ~/.claude/projects)
======================================================================
  OUT (generated)    :      42,118,540 tok
  IN  fresh (full $) :      14,002,221 tok
  IN  cache-read     :  10,540,883,002 tok   <- standing context, replayed
  IN  cache-write    :     280,114,907 tok
  BLOAT (read/fresh) :           752.8x
  EST. SPEND         :      ~$8,431.55

TOP 15 SESSIONS BY SPEND
        $       out     in+cache  turns   wall  tok/s  project
   612.40 2,901,033 1,201,557,011    225  7740m    6.3  ~/acme-api
   498.10 2,344,981 1,004,219,540    204  9060m    4.3  ~/web-app
   ...

BLOAT is the headline: for every token you actually type, ~750 tokens of standing config (CLAUDE.md + skills + MCP tool defs) replay each turn. It's cheap per token (cache-read is ~10% price) but it's a huge, constant footprint.


The TUI

It opens on a Projects overview — sessions rolled up per project. Drill into one project to see its sessions, or press a for every session across all projects. (csa --tui --local skips straight to the current directory's sessions.) Sample data below is illustrative.

1 · Projects — sessions rolled up per project (landing screen)

┌ csa · projects ─────────────────────────────────────────────────────────────┐
│ 52 projects · 1,240 sessions · ~$8,432 · Enter a project · a=all sessions      │
├──────────────────────────┬──────────┬──────────┬───────┬──────────┬───────────┤
│ project                  │ sessions │       $ ▼│  out  │ in+cache │ last used │
├──────────────────────────┼──────────┼──────────┼───────┼──────────┼───────────┤
│ ~/acme-api               │    41    │ $2,788   │ 9.2M  │   3.1B   │ 2026-06-21│
│ ~/web-app                │    33    │ $1,799   │ 6.1M  │   2.0B   │ 2026-06-20│
│ ~/data-pipeline          │    10    │ $1,386   │ 2.4M  │   1.0B   │ 2026-06-18│
└──────────────────────────┴──────────┴──────────┴───────┴──────────┴───────────┘
  Enter open project · a all sessions · s skills · t tools · q quit

2 · Browser — sessions in a project (or all), sortable

┌ csa ───────────────────────────────────────────────────────────────┐
│ 1,240 sessions · ~$8,432 token-value · s skills · t tools · m MCP · 1-9 sort  │
├─────────┬──────┬──────────┬───────┬──────┬───────┬──────────┬─────────────────┤
│      $ ▼│  out │ in+cache │ turns │ wall │ tok/s │ model    │ project         │
├─────────┼──────┼──────────┼───────┼──────┼───────┼──────────┼─────────────────┤
│ $612.40 │ 2.9M │   1.2B   │  225  │ 129h │  6.3  │ opus-4-8 │ ~/acme-api      │
│ $498.10 │ 2.4M │   1.0B   │  204  │ 151h │  4.3  │ opus-4-8 │ ~/web-app       │
│ $372.30 │ 882k │ 564.7M   │   60  │  43h │  5.7  │ opus-4-8 │ ~/data-pipeline │
│ $187.30 │ 896k │ 285.3M   │  140  │  26h │  9.7  │ sonnet-4 │ ~/web-app       │
└─────────┴──────┴──────────┴───────┴──────┴───────┴──────────┴─────────────────┘
  Enter open · s skills · t tools · m MCP · q quit

3 · Session — control panel + sortable turns

Opens on a control panel of session stats — friction, skill loads, MCP calls, how often it asked you, and more. Press g to swap it for the time-bucketed bar graphs. The turns table (now with the prompt of each turn) is always below.

┌ ~/acme-api ─────────────────────────────────────────────────────────────────┐
│ 3f9c0e1a · opus-4-8 · 225 turns · out 2.9M · peak-ctx 358,958 · $612.40       │
│ 6.3 tok/s · g=stats⇄graphs · a=all turns · t=tools · m=MCP · Enter for commands│
├───────────────────────────────────────────────────────────────────────────────┤
│ started 2026-06-18 09:14   ended 2026-06-21 17:40   (7740m elapsed wall-clock) │
│                                                                                │
│ turns 225   tool calls 1840   skill loads 12   MCP calls 47 (plugin_playwright│
│   ×29, stele×14, …)   subagents 9   asked you 6                                │
│                                                                                │
│ friction 41/225 turns · corrections 7 · walkbacks 3 · self-corrections 12 ·   │
│   error-turns 5 (18 tool errors) · retry-loops 9   (suspicion, not proof)     │
│                                                                                │
│ skills used: brainstorming×4, writing-plans×3, test-driven-development×2, …     │
├────┬──────┬──────┬───────┬─────────┬───────┬─────┬──────┬──────┬───────────────┤
│  # │ gap  │ dur  │   out │     ctx │     $ │ t/s │ tools│ fric │ prompt        │
├────┼──────┼──────┼───────┼─────────┼───────┼─────┼──────┼──────┼───────────────┤
│  1 │   0s │ 726s │ 29.1k │  92,008 │ $2.09 │  40 │  12  │  S·  │ Build the …   │
│  2 │ 599s │  95s │  6.1k │  96,894 │ $0.20 │  65 │   0  │   ·  │ Also add …    │
│  3 │ 117s │1217s │ 64.2k │ 384,334 │ $9.96 │  53 │  44  │  WEL │ current pri…  │
└────┴──────┴──────┴───────┴─────────┴───────┴─────┴──────┴──────┴───────────────┘
  g graphs · Enter a turn · t tools · m MCP · a all · Esc back · q quit

Press g for the bar graphs. Each row is a real clock-time bucket (no more "+120m" mystery) — click a bucket to filter the turns below to that window:

│ when         │ tokens          │ spend          │ turns            │
│ 06-18 09:14  │ ████████ 412k   │ ██████ $88.10  │ ██████████ 41    │
│ 06-19 09:14  │ ██ 96k          │ █ $14.20       │ ███ 12           │
│ 06-20 09:14  │ ██████████ 511k │ ███████ $140   │ █████ 22  ←spike │

fric flags (suspicion, not proof): C=you corrected it next · W=you pivoted to a different approach next · S=it walked itself back · E=2+ tool errors · L=retried the same command.

4 · Turn detail — the commands

┌ turn 3 commands ────────────────────────────────────────────────────────────┐
│ Turn 3 · gap 117s · dur 1217s · in 1.9k / out 64.2k tok · ctx 384,334 · $9.96 │
│ skills: claude-api                                                            │
│ time 1217s = exec 320s · you 0s · model-think 897s  (you = time on AskUser…)  │
│ friction (suspicion, not proof): 2 tool-error(s), tool-loop, user-walkback-next│
│ ✗ 2 failing call(s): Bash, Bash  (Enter to read the error)                    │
│ next user pivoted: "instead, use a different tool to load prices…"            │
│ exec = tool run · wall = call→next step · Δ = model think + idle after         │
│                                                                               │
│ prompt: current pricing per million tokens for Opus 4.x, Sonnet 4.x…          │
├────┬─────────────┬──────┬──────┬──────┬─────────────────────────────────────┤
│  # │ tool        │ exec │ wall │  Δ   │ summary                             │
├────┼─────────────┼──────┼──────┼──────┼─────────────────────────────────────┤
│  1 │ Skill       │   3s │  46s │  43s │ claude-api                          │
│  2 │ Bash ✗      │   8s │  40s │  32s │ time python3 profile.py --top 15    │
│  3 │ ToolSearch  │   0s │  29s │  29s │ select:mcp__plugin_abe_abe__debate… │
│  4 │ Write       │   0s │  25s │  25s │ csa/pricing.py                      │
└────┴─────────────┴──────┴──────┴──────┴─────────────────────────────────────┘

The header shows the 3-way split of turn duration: how much was tool execution (321s), how much was the model thinking between calls (897s), and how much was you answering AskUserQuestion prompts. Failing calls (✗) now show in the table — previously the data was tracked but the ✗ marker was never wired. Enter any of them to see the full input + the error result text.

The Δ column is the quiet one: time python3 profile.py ran 8s, but the model then thought 32s before its next move. Instant tools (Write, ToolSearch) with a big Δ are pure think time you'd never have seen.

Press Enter on any command to open its full step — the complete tool input (the whole Bash command, the full file written, the entire prompt to a subagent) plus the captured result:

┌ Bash — full step ───────────────────────────────────────────────────────────┐
│ Bash · exec 8s · wall 40s · Δ 32s                                             │
│                                                                               │
│ INPUT                                                                         │
│ ────────────────────────────────────────────────────────────                 │
│ {                                                                             │
│   "command": "time python3 profile.py --top 15",                              │
│   "description": "Run full usage profile across all transcripts"              │
│ }                                                                             │
│                                                                               │
│ RESULT  (capped)                                                              │
│ ────────────────────────────────────────────────────────────                 │
│ USAGE PROFILE  (1,240 sessions under ~/.claude/projects) …                    │
└───────────────────────────────────────────────────────────────────────────────┘

5 · Skill regret — which skill is slowing you down (s)

asks = how often a skill interrupts you for input. regret% = share of its turns with friction (correlation, not proof — out/asks/tools are the trustworthy columns).

Skills that fired fewer than 5 times show n<5 in dim text and sink to the bottom when sorted by regret% — a 100% from one fire is noise, not data.

┌ skill regret — suspicion, not proof ────────────────────────────────────────┐
│ turns=turns it ran · tools=tool calls it triggered · asks=times it asked YOU  │
│ a question · regret%=turns with friction. Enter a skill to see what it does.  │
│ 8 skills fired <5× (regret% dimmed, sunk in sort)                             │
├────────────────────────────────────┬───────┬──────┬───────┬──────┬───────────┤
│ skill                              │ turns │ out ▼│ tools │ asks │ regret%   │
├────────────────────────────────────┼───────┼──────┼───────┼──────┼───────────┤
│ (none)                             │  4598 │ 33.4M│ 22334 │  270 │   14%     │
│ writing-plans                      │    59 │ 3.2M │  2010 │   33 │   69%     │
│ subagent-driven-development        │    41 │ 2.2M │  1629 │   13 │   66%     │
│ brainstorming                      │    69 │ 2.1M │  1378 │  145 │   61%     │
│ test-driven-development            │    21 │ 1.7M │  1478 │   16 │   86%     │
│ some-one-shot-skill                │     1 │  3.1k│     8 │    0 │   n<5     │
└────────────────────────────────────┴───────┴──────┴───────┴──────┴───────────┘
  Enter a skill for its profile · Esc back

6 · Skill detail — what it loads + what it triggers

Open a skill to see its context weight (how many tokens its SKILL.md injects each run), the friction breakdown (WHERE the regret came from), and the histogram of what it actually does in your traces.

┌ what this skill really does ────────────────────────────────────────────────┐
│ claude-api                                                                   │
│ ran in 1 turns · spent 20m (1217s/turn) · generated 64.2k output tok ·       │
│ triggered 44 tool calls (44.0/turn) · friction in 100% of its turns          │
│ friction breakdown: tool-errors 5 (1 turn) · self-correction 1               │
│ context weight: loads ~509.2 KB (~130,354 tok, est) each run · 1 load (heavy!)│
│                                                                              │
│ What it actually triggers — calls · exec vs wall · out tok                   │
│ (wall−exec = model think after; AskUserQuestion exec = you answering;        │
│ out tok = per-response attribution, overlaps if one response emits several): │
├─────────────────┬───────┬───────┬───────┬───────┬───────────────────────────┤
│ tool            │ calls │ exec  │ wall  │out tok│ % of its tool use         │
├─────────────────┼───────┼───────┼───────┼───────┼───────────────────────────┤
│ Bash            │   26  │   7m  │  22m  │ 38.1k │ 59%                       │
│ Edit            │    9  │   0m  │   4m  │ 14.2k │ 20%                       │
│ Write           │    5  │   0m  │   2m  │  7.8k │ 11%                       │
│ Read            │    4  │   0m  │   1m  │  4.1k │ 9%                        │
└─────────────────┴───────┴───────┴───────┴───────┴───────────────────────────┘

The friction breakdown is the new part: a 100% regret can come from one self-correction (a mistake the model fixed itself) or 20 tool errors (struggling). They're not the same. The breakdown surfaces where each skill's friction actually lives, so the leaderboard can be read with the right skepticism.

This is the payoff: claude-api silently loads ~130k tokens of reference doc every time it fires. brainstorming is lighter (~2.5k) but asks you 2+ questions per turn. Different costs, both invisible until now.

7 · Tools — what got called, how often (t)

Corpus-wide from the browser, or for one session from inside it. Session view also shows per-tool out tokens (per-response attribution; if one response emits several tools the tokens are split across them, so they overlap and the sum can exceed turn tokens — labeled in the header).

┌ tools called ───────────────────────────────────────────────────────────────┐
│ Tools — 3f9c0e1a · 1,840 tool calls across 12 tool types · click to sort    │
│ out tokens per-response (overlap if one response emits several tools)         │
├───────────────────┬─────────┬─────────┬──────────────────────────────────────┤
│ tool              │ calls ▼ │ out tok │ % of all calls                       │
├───────────────────┼─────────┼─────────┼──────────────────────────────────────┤
│ Bash              │    684  │ 1.2M    │ ████████ 37.2%                       │
│ Read              │    421  │ 312k    │ ████ 22.9%                           │
│ Edit              │    298  │ 245k    │ ███ 16.2%                            │
│ Write             │    167  │ 134k    │ █ 9.1%                               │
│ AskUserQuestion   │      6  │   3k    │  0.3%                                │
│ mcp__plugin_…__…  │     47  │  29k    │  2.6%                                │
└───────────────────┴─────────┴─────────┴──────────────────────────────────────┘

8 · MCP — which servers got called (m)

MCP tools are namespaced mcp__<server>__<tool>. Press m from any session or browser screen to see calls grouped by server. From a session the screen also shows out tokens per server (per-response attribution).

┌ MCP servers — 3f9c0e1a ──────────────────────────────────────────────────────┐
│ 47 calls across 3 servers                                                    │
│   plugin_playwright  ████████ 29 calls · 4 tools · out 18.2k tok              │
│   stele              █████ 14 calls · 2 tools · out 8.4k tok                 │
│   plugin_abe_abe     █ 4 calls · 1 tool · out 2.1k tok                       │
├──────────────────┬────────┬─────────┬──────────────────────────────────────┤
│ server           │ calls ▼│ out tok │ share                                │
├──────────────────┼────────┼─────────┼──────────────────────────────────────┤
│ plugin_playwright│   29   │  18.2k  │ ████████ 61.7%                       │
│ stele            │   14   │   8.4k  │ █████ 29.8%                          │
│ plugin_abe_abe   │    4   │   2.1k  │ █ 8.5%                               │
└──────────────────┴────────┴─────────┴──────────────────────────────────────┘

Keys: Enter drill in · Esc back · 19 (or click a header) sort · s skills · t tools · m MCP · a all (sessions / turns) · q quit.

➡ Full per-screen reference: docs/USER-GUIDE.md


What it measures (and how honestly)

csa measures tax — tokens, cost, time — not answer quality. It's careful about what the numbers can and can't say:

  • tok/s is end-to-end throughput (output ÷ turn wall-clock), not decode speed. Transcripts only have completion timestamps, so there's no time-to-first-token.
  • Friction / regret (corrections, walkbacks, self-corrections, tool errors, retry loops) is correlation, not proof. It's labeled that way everywhere it appears. Skills fired <5× show n<5 and sink in the sort — a 100% from one fire is noise.
  • attributionSkill is which skill fired, not which is loaded. Per-skill "passive" context cost is never inferred from it.
  • Context weight (injected SKILL.md size) is estimated as chars ÷ 4. Good for ranking skills by weight; not a billing figure.
  • Per-tool out tokens are per-response attribution: when one response emits several tool calls, the response's output_tokens are split across them, so the per-tool tokens OVERLAP and the sum can exceed turn tokens. This is the honest approximation given Claude records tokens per request, not per call — per-turn attribution would double-count everything. Labeled in the UI.
  • Turn wall-time breakdown splits duration into exec (tool run time), you (AskUserQuestion's exec time — honest because the tool's purpose is to wait for you), and model-think (everything else, which is the time the model spent between calls and idle after the last one).

How it works

Each transcript line carries a millisecond timestamp, a uuid/parentUuid tree, per-request token usage (output / input / cache-read / cache-creation, keyed by requestId), and an attributionSkill tag. csa:

  1. folds requests that share a requestId into one turn (no double-counting),
  2. rolls turns up between user prompts,
  3. prices each request with a verified per-model table (5m vs 1h cache split exactly),
  4. attributes injected SKILL.md text to the skill that loaded it, by position.

Pricing

Base rates from Anthropic's pricing reference (Opus $5/$25, Sonnet $3/$15, Haiku $1/$5, Fable $10/$50 per MTok); cache-read 0.1×, cache-write-5m 1.25×, cache-write-1h 2× input. Unknown/older models fall back to a default rate and are flagged (est.). Edit csa/pricing.py when rates change.

Limits

  • Completion-only timestamps → no first-token latency.
  • Friction is a heuristic (suspicion, not proof); a single tool error is not flagged (≥2 is).
  • Skill-content attribution is by proximity (the SKILL.md body has no id link in the transcript); verified accurate on real data.

License

Apache-2.0 © 2026 yonk-labs