agent-session-format-check

agent-session-format-check is a skill for Codex from jazzyalex/agent-sessions. It costs 62 tokens per session (12,220 once invoked), scanned B, original, MIT.

A compatibility-checking procedure for agent session data, including stored session details, usage limits, and discovery paths. It compares current session formats with the latest available agent builds.

In plain words
What is it for?
Use it for recurring compatibility checks, investigating agent CLI updates, checking monitoring flags, reviewing sample session files, and deciding whether supported-version records need attention.
Why use it?
It helps reveal when an agent update may have changed the data format or storage behaviour that monitoring tools depend on. It provides evidence before parsers, test fixtures, or documentation are changed.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/agent_watch.py --mode weekly.

Good fit Use it for recurring compatibility checks, investigating agent CLI updates, checking monitoring…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jazzyalex/agent-sessions
agentmods
npx agentmods add skills/jazzyalex/agent-sessions/agent-session-format-check

Made for: 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 agent-session-format-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/jazzyalex/agent-sessions/agent-session-format-check.svg)](https://agentmods.dev/skills/jazzyalex/agent-sessions/agent-session-format-check)
Your own site
<a href="https://agentmods.dev/skills/jazzyalex/agent-sessions/agent-session-format-check"><img src="https://agentmods.dev/badge/skills/jazzyalex/agent-sessions/agent-session-format-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,220 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00062 $0.12220
Opus 5 $0.00031 $0.06110
Sonnet 5 $0.00012 $0.02444
Haiku 4.5 $0.00006 $0.01222

Measured 3d ago against content hash 5e0db1dd7023, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

agent-session-format-check scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -ho '"model":"[^"]*"' ~/.codex/sessions/$(date +%Y/%m)/*/*.jsonl | sort -u
skills/agent-session-format-check/SKILL.md · 860 lines

How it starts

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

Agent Session Format Check

Answer one precise question for every supported agent:

Can current Agent Sessions code support the latest available session/storage/usage format from the latest available agent build?

The answer must be layered. Do not collapse version checks, stale samples, schema fingerprints, discovery contracts, and usage probes into a vague severity label.

Evidence-first:

  • Gather a report + sample paths first.
  • Do not change parsers/fixtures/docs without explicit user approval.

Related skill: agent-support-matrix — maintains the matrix YAML, ledger, and update-checklist workflow. This skill focuses on detection and evidence collection; agent-support-matrix focuses on recording and gating version bumps.

Process doc: docs/agent-support/monitoring.md — defines the compatibility verdicts, legacy severity model, cadence, and escalation workflow that feed into this skill.


1 Quick Start (all agents)

  1. Run weekly monitoring:

    ./scripts/agent_watch.py --mode weekly
    

    Report path prints to stdout and is written under scripts/probe_scan_output/agent_watch/*/report.json.

  2. In report.json, check each agent under results.<agent>:

    • compatibility.verdict, compatibility.scope, compatibility.blockers, and compatibility.next_action
    • verified_version, installed.parsed_version, upstream.parsed_version
    • compatibility.latest_status to distinguish current_fetch_known, cached_latest, and unknown latest-source states
    • weekly.local_schema (newest local session used for fingerprinting)
    • weekly.schema_diff and evidence.schema_matches_baseline
    • evidence.sample_freshness and evidence.fresh_evidence_source
    • compatibility.latest_real_session_failure when a prebump attempt failed
    • severity and recommendation only as legacy escalation fields
  3. Usage / limits reading (Codex + Claude) — always verify every weekly run. These drift independently of session schema (see §2), so a clean schema does not imply healthy usage reading. Each agent's results.<agent>.weekly.probes is a list; for every relevant entry confirm ok == true and exit_code == 0:

    • Codex — label == "codex_status_probe" (parse codex_status_json): the active CLI status channel (five_hour, weekly percent-left). The passive channel is the session JSONL token_count / rate_limits events, covered by the schema fingerprint above.
    • Claude — label == "claude_usage_probe" (parse claude_usage_json): the authenticated /usage reading (session_5h, week_all_models, week_opus). Also label == "claude_status" (parse claude_status_json): status.claude.com indicator/incidents. A failed or unparsed usage probe is a usage-format or auth regression even when versions match and the session schema is clean — never skip it, and report each probe's ok explicitly rather than collapsing it into the compatibility verdict.

Read the full file on GitHub · 860 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 · +65 lines 5e0db1dd7023
  2. 7d ago First seen · 795 lines · 62 tokens per session scan B ec6fb17eb515

Subscribe to this mod's changes

agent-session-format-check is a skill published in the GitHub repository jazzyalex/agent-sessions (845 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 12,220 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

do-it-verify

Use when selecting evidence for a delivery claim, regression fix, installation, or branch closeout.

tdwhere123/do-it · 24 tokens

vision-verifier

Use when verifying Computer Vision imports, fixtures, models, schemas, cameras, artifacts, cleanup, latency, and stated limitations with reproducible evidence.

Hipson47/Hipson · 33 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Hipson47/Hipson · 35 tokens

verification-loop

This skill should be used when the user asks to "verify code", "run verification", "check quality", "validate changes", or before creating a PR. Provides comprehensive verification including build, type check, lint, tests, security scan, and diff review.

Galaxy-Dawn/claude-scholar · 55 tokens

intuitive-tests

Use this skill whenever the user asks about unit test best practices, test organization, flat test suites, redundant tests, test refactors, pytest/JUnit/Jest/xUnit layout, test taxonomy, flaky tests, coverage quality, fixtures, mocks, parametrization, pruning existing UTs, or "which tests are worth keeping." It…

MiaoDX/intuitive-flow · 154 tokens

run-preflight

A release pre-check workflow that builds the mini-app, runs automated checks, explains errors, and lists review items that require a person to test the app on a real device. A preflight check is a final inspection before submission.

TOKTOKHAN-DEV/agent-company · 3 tokens