agent-toolkit: Skill for Claude Code

.agents/skills/ox-session-review/SKILL.md

ox-session-review is a skill for Claude Code, Codex from sageox/agent-toolkit. It costs 111 tokens per session (3,624 once invoked), scanned A, a copy of ox-cli-session-review, Apache-2.0.

A session-ledger audit skill that checks recorded coding-agent sessions and offers cleanup or regeneration actions.

In plain words
What is it for?
Use it to review every project session, check stored session data, and report failures such as unavailable downloads or invalid cached files.
Why use it?
It helps detect damaged, missing, or incorrectly stored session records before further ledger operations make the problem worse.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

This is sageox/agent-toolkit's own configuration. It tells Claude Code and Codex how to work on agent-toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-toolkit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sageox/agent-toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sageox/agent-toolkit/main/.agents/skills/ox-session-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sageox/agent-toolkit

Made for: Claude Code, Codex.

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 ox-session-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/sageox/agent-toolkit/ox-session-review/github.svg)](https://agentmods.dev/skills/sageox/agent-toolkit/ox-session-review)
Your own site
<a href="https://agentmods.dev/skills/sageox/agent-toolkit/ox-session-review"><img src="https://agentmods.dev/badge/skills/sageox/agent-toolkit/ox-session-review/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 ox-session-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/sageox/agent-toolkit/ox-session-review"><img src="https://agentmods.dev/badge/skills/sageox/agent-toolkit/ox-session-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,624 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 98% copy Near-identical to another mod 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.00111 $0.03624
Opus 5 $0.00056 $0.01812
Sonnet 5 $0.00022 $0.00725
Haiku 4.5 $0.00011 $0.00362

Measured yesterday against content hash 53ac0ccefe01, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ox-session-review 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 yesterday.

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.

Origin

This is a copy

98% identical to ox-cli-session-review — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/ox-session-review/SKILL.md · 309 lines

How it starts

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

This skill carries the operational knowledge from the 2026-04-25 cleanup (see PRs #559–#564 and bd ox-b917, ox-9o29, ox-4ncz, ox-1i3k). Read the Failure-mode watch-list before acting — it is the difference between a routine audit and re-causing the same incident.

Failure-mode watch-list (READ FIRST)

When operating on the ledger, watch for and handle each of these explicitly. Silent skipping is not allowed — surface them in the report.

Mode Symptom Right action
Cache-only invariant break After hydration, the in-place <ledger>/sessions/<name>/raw.jsonl is real content (not a ~140B LFS pointer). Stop. Do not run any ox command that may git add the session dir. Investigate which code path wrote in-place — likely a regression of .claude/rules/cache-only-design.md.
Phantom LFS OID ox session download returns HTTP 404 from the LFS Batch API for an OID referenced in meta.json. Unrecoverable from client. ox session remove <name> --force and report the lost session in the final summary.
0-byte in-place stub meta.json references a real OID, but in-place file is 0 bytes (and not a pointer). Treat as needing download. Confirm cmd/ox/session_hydrate.go has the info.Size() > 0 guard (PR #564). Without it, the resolver will silently return "" forever.
Daemon anti-entropy clobber A freshly-pushed good summary gets overwritten with a failure-marker stub minutes later. The daemon scheduled finalize before our regen landed. Look at internal/daemon/agentwork/session_finalize.go workNoLongerNeeded re-verify guard (PR #561). If running a long batch regen, prefer a quiet daemon window.
Validation banner on the website Site shows "Summary failed content validation: title too short" but the ledger has good content. Likely browser-side React Query cache (staleTime 5m, gcTime 30m). Verify origin/main HEAD has the right summary; advise hard refresh. Do not "fix" by re-pushing.
LLM regenerate hangs / asks for permission Regenerate spawns Claude Code and times out without writing. Pass --permission-mode bypassPermissions to the headless invocation (PR #560 / regenerate flow).

Read the full file on GitHub · 309 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. yesterday First seen · 309 lines · 111 tokens per session scan A 53ac0ccefe01

Subscribe to this mod's changes

ox-session-review is a skill published in the GitHub repository sageox/agent-toolkit (10 stars, last pushed today), licensed Apache-2.0. It adds 111 tokens to every session and 3,624 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to ox-cli-session-review, differing in 2 lines, and is treated as a copy.