neutron-log
БесплатноБез исполняемых скриптовНе проверенMeasure whether a token-saving tool actually saves tokens and keeps answers correct. Use before adopting or recommending RTK, headroom, caveman or any…
от frankxai★ 51 звезда на GitHubОб этом скилле
Neutron log
A savings figure from a README is a claim. A figure from your own session is a result. This skill produces results.
What counts as a result
A result needs all four:
- Same task, same repo, same starting commit for the baseline and the candidate.
- Quality held. The tests, checks or acceptance criteria that passed in the baseline pass in the candidate. A cheaper wrong answer is a loss.
- A named unit. Bytes, estimated tokens, or billed tokens. Say which. RTK estimates tokens as bytes divided by four, so its percentages are reliable and its absolute token counts are not.
- A date and a machine. Tool versions drift. Record them.
Anything else is written down as unmeasured.
Fast check: command output
For shell-output compressors, compare raw and compressed output on real commands in a real repo:
node <pack>/scripts/neutron.mjs bench # table
node <pack>/scripts/neutron.mjs bench --md # markdown, for docs
node <pack>/scripts/neutron.mjs bench --json # with RTK version, platform and repo commit
<pack> is the plugin root, or .claude/neutron after install.mjs. Run it from the repo you care about. Its git diff HEAD~5 needs at least six commits.
The bench only compares commands whose filtered output is meant to carry the same information. A row is skipped, not counted as a saving, when the filter fails or exits differently from the raw command.
This measures bytes only. It proves the filter shrinks the output. It does not prove the agent still has what it needs, so spot-check one compressed output by hand for each command class before trusting it.
Full check: a session
- Pick two or three tasks you actually do. A bug fix with a failing test, a repo-wide search and summary, a review of a medium diff.
- Run each task twice from the same commit: once with the candidate off, once on. Use a fresh session each time.
- Record, for each run: tokens in, tokens out, cache read and cache write if shown, tool-call count, wall time, and whether the acceptance check passed.
- Read the sources:
ccusage sessionfor per-session tokens and cost.rtk gainfor what RTK filtered, andrtk gain --historyif you need per-command detail.headroom perffor proxy-side savings, with the proxy running.
- Compare. Report the delta per metric and the quality verdict side by side.
Three tasks is a sanity check, not a benchmark. Say so in the write-up.
Record
Save bench output under the pack's results/ folder (see results/2026-10-12-rtk-bench.json) and put session results in the PR description or a file beside it:
date: 2026-10-12
machine: <name>
tool: rtk 0.50.0
task: <one line>
unit: bytes | est-tokens | billed-tokens
baseline: <number>
candidate: <number>
saved: <percent>
quality: pass | fail | not-checked
notes: <what was filtered, what was lost, surprises>
Reference baseline
The pack's own bench results live in results/ and are summarised in the README. The README table is copied from the JSON, never typed by hand. Do the same with yours: generate the table with bench --md, so a document and its source cannot disagree.
Short outputs and file reads come out unchanged: the filters help where output is long and repetitive and do nothing where it is already small. Do not expect a flat percentage across a session.
Failure modes to check for
- Lost signal. The filter dropped the one line that mattered. Re-run the failing case uncompressed once.
- Double compression. Two proxies or two hooks on the same stream. Run one input-side compressor at a time until a result shows stacking helps.
- Cache breakage. An instruction or tool change mid-session invalidated the cached prefix. Compare cache-read tokens before and after.
- Savings that only exist on the benchmark. A tool tuned on its own fixtures can underperform on your repos. Use your repos.
Установить neutron-log в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл neutron-log?
Measure whether a token-saving tool actually saves tokens and keeps answers correct. Use before adopting or recommending RTK, headroom, caveman or any compressor, after changing a hook or instruction file, and when someone quotes a savings percentage. Runs a same-task before and after protocol and records only measured numbers.
Как установить скилл neutron-log?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл neutron-log запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic