sipcode-why

sipcode-why is a skill for Claude Code from Anuj7411/sipcode. It costs 73 tokens per session (1,255 once invoked), scanned A, original, MIT.

A local-log analysis workflow for Codex, a coding assistant, using the Sipcode command-line tool to explain token use in a session.

In plain words
What is it for?
It analyzes the last or selected Codex session and reports what contributed to its token usage and cost.
Why use it?
It shows which requests were largest, which files were read repeatedly, and whether context was kept while idle, instead of leaving session cost unexplained.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; mentions Claude Code; reads ~/.codex paths.

Part of the sipcode plugin — 8 skills, 1 MCP server shipped together

Good fit It analyzes the last or selected Codex session and reports what contributed to its token usage and cost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anuj7411/sipcode/sipcode-why
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Anuj7411/sipcode --skill sipcode-why
Clone the repo
git clone --depth 1 https://github.com/Anuj7411/sipcode

Made for: Claude Code.

Or install sipcode, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sipcode-why

README.md
[![agentmods](https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-why/github.svg)](https://agentmods.dev/skills/anuj7411/sipcode/sipcode-why)
Your own site
<a href="https://agentmods.dev/skills/anuj7411/sipcode/sipcode-why"><img src="https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-why/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sipcode-why

Your own site · 80×15
<a href="https://agentmods.dev/skills/anuj7411/sipcode/sipcode-why"><img src="https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-why.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01255
Opus 5.5 $0.00029 $0.00502
Sonnet 5.5 $0.00015 $0.00251
Haiku 4.5 $0.00007 $0.00126

Measured 3d ago against content hash cc3295c709af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sipcode-why scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/sipcode/skills/sipcode-why/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Why a Codex session was expensive

Answer from the user's own Codex logs on this computer, through the published sipcode command. Explicit instructions from the user take priority over this skill.

Run Sipcode

  1. Run the command for the question below straight away. Do not check the Sipcode version first: every extra command is another request that re-sends this whole chat. If the shell says sipcode is not found or not recognized, tell the user: "Sipcode is not installed. Run npm i -g sipcode once in a terminal, then ask again." and stop. If Sipcode says the command or an option is unknown, tell the user: "Your Sipcode is older than this plugin. Run npm i -g sipcode@latest, then ask again." and stop. Do not try npx (the sandbox usually blocks network access) and do not install anything yourself.
  2. Sipcode reads ~/.codex (or the folder CODEX_HOME points to). If the sandbox blocks that folder (a permission error, or a result that says no sessions while the user clearly uses Codex), request permission to run the same command again with read access to that folder, for example by running it outside the sandbox. Do not report an empty result caused by the sandbox.
  3. Never open, read, search or summarise the log files yourself, and never paste their contents. Work only from Sipcode's output.

Pick one command

The user asks about Run
the last (most recent) session sipcode why --agent codex --json
a specific session sipcode why --agent codex --list to find its id, then sipcode why --agent codex --session <id> --json

The session you are in right now is also a Codex session: if the user means an earlier one, use --list and ask which one when it is not clear. Lines Sipcode prints on stderr that start with note: are part of the answer. If Sipcode prints a line starting "warning:" that log files could not be read, say it first in your answer, as printed: the numbers leave those logs out. With --json the same thing comes on stderr as a note: that log files or folders could not be read or parsed, or that compressed logs were skipped: say that first too.

Read the full file on GitHub · 44 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed cc3295c709af
  2. 4d ago Changed · +12 lines 1a1386a9eaae
  3. 6d ago First seen · 32 lines · 73 tokens per session scan A 06b5f0aa9257

Subscribe to this mod's changes

sipcode-why is a skill published in the GitHub repository Anuj7411/sipcode (46 stars, last pushed 2d ago), licensed MIT. It adds 73 tokens to every session and 1,255 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

Other skills, from other repositories

loongsuite-pilot-insight

A reporting workflow for turning LoongSuite Pilot and AI coding-agent logs into structured reports about events, teams, data quality, development efficiency, and AI use. It defines the meaning of the log fields and the measurements used in dashboards.

alibaba/loongsuite-pilot · 91 tokens

loongsuite-pilot-ops

Skill "loongsuite-pilot-ops" from alibaba/loongsuite-pilot, covering loongsuite-pilot-ops, quick start, todo: add quick start commands and usage.

alibaba/loongsuite-pilot · 15 tokens

atomic-visual-options

Planning-phase visual comparison aid. Renders 2-4 side-by-side variants per decision dimension as a single throwaway, self-contained HTML file and captures the user's pick as typed terminal codes (e.g. "A2 B3"). Auto-fires on phrases like "show me a few options", "mock up some variants", "let me see this side by…

damusix/atomic-claude · 150 tokens

atomic-wiki

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the block in /.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via atomic wiki bucket add rather than a…

damusix/atomic-claude · 204 tokens

atomic-review

Compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", or invokes /atomic-review. Auto-triggers when reviewing pull requests.

damusix/atomic-claude · 63 tokens

atomic-tdd

Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…

damusix/atomic-claude · 142 tokens