Skip to content

Report and Scan

The two JSON documents loadsheet prints, and their JSON Schemas at loadsheet.dev/schema.

loadsheet prints two JSON documents. Each one has a JSON Schema at the URL its $id names:

DocumentPrinted bySchema
Reportnpx loadsheet --jsonloadsheet.dev/schema/v1.json
Scannpx loadsheet --scanloadsheet.dev/schema/scan.v1.json
curl -s https://loadsheet.dev/schema/v1.json | jq -r '."$id"'
https://loadsheet.dev/schema/v1.json
txt

Both carry schema: 1. A finding's rule may be the id of a rule a newer loadsheet added, so a reader should skip rule ids it does not know.

What loadsheet found: one sheet per harness and the findings.

npx loadsheet https://github.com/mattpocock/skills --json | jq -r .mode
pack
txt
FieldWhat it holds
schema1.
toolThe tool and version that wrote it, such as loadsheet@0.1.0.
generatedAtWhen it was made, as an ISO 8601 timestamp.
modelocal for this machine, fleet for several, pack for a skill pack with no usage.
sourceIn pack mode, the folder name or GitHub URL it read.
machinesThe machines read, with reachable and, for one that failed, error. Empty in pack mode.
windowThe first and last day it covers, inclusive.
configThe config it ran with, every default filled in.
coverageWhat each harness on each machine could tell: exact, inferred or nothing, per signal.
sheetOne sheet per harness: its sessions, fixedTokens for the tokens a session starts with, the model's contextWindow, and its lines.
findingsWhat the rules found.
skippedThe rules that did not run on a harness, and why.
usageSessions, compactions and tokens per project, summed over machines, on every day they hold. Absent when none do, and when shared.

Each line of a sheet has its item id, its size in chars, its tokens, the sessions that listed it in exposure, invocations by the model and by you in use, and for a skill or subagent its description.

Each finding has its rule, its level, the item or pack it is about, the evidence numbers the rule judged, savesTokens, and its fixes. A fix has an action, the path it changes, the machine it is for, and a run command or a set key and value. Apply fixes with your agent explains each action.

What one machine sends with --fleet, whether its host comes from the list after --fleet, or fleetrc's hosts.json: its items and usage counters, before any rule runs. A Scan holds every session in the window, and usage on every day the machine has a record of. --harness, --ignore, --via, --exclude-via and --rule shape the Report built from it, not the Scan.

npx loadsheet --scan | jq -r .schema
1
txt
FieldWhat it holds
schema1.
toolThe tool and version that wrote it.
machineThe machine's name.
scannedAtWhen it was scanned, as an ISO 8601 timestamp.
windowThe first and last day it covers, inclusive.
coverageWhat each harness on this machine could tell.
itemsThe installed pieces of context.
sessionsSession totals.
cellsUsage counters.
usageSessions, compactions and tokens per project.

Each coverage entry is one harness on one machine: whether it is installed, its sessions, the first and last day, its versions, how it grades each signal, and the model's contextWindow. Two fields come from its settings and stores:

  • settings holds what the harness's settings and environment set, as derived values, never their text: cacheTtl and subagentCacheTtl (5m or 1h) with cacheTtlFrom, the knob that set it, such as settings.promptCacheTtl; caching (on or off) with cachingFrom; retentionDays, how long transcripts are kept; docMaxBytes, the most of an instruction file the harness reads; autoCompact and autoCompactWindow.
  • unread names the session stores that exist and could not be read, such as opencode.db. Without it, every store was read.
  • backfill names each store that filled in sessions whose own transcripts are gone, such as statev2.sqlite (T3 Code) or codex-state (Codex's state database), with the firstDay and lastDay it added usage on and the sessions it added, subagents' included.

usage holds two lists of counters. Each counter is keyed by day (UTC), harness, via (the entrypoint), project and thread (main, or subagent for a subagent's own conversation). Its optional threads and titles lists keep threads apart; see below.

ListCounters
sessionssessions started that day, how many of them compacted at least once, their compactions, and of those the manualCompactions you asked for.
tokensAlso keyed by model. requests, then input (sent without the cache), output (reasoning is part of it), cacheRead and cacheWrite. Of the writes, cacheWrite5m and cacheWrite1h went to a cache that lives 5 minutes or 1 hour. cacheRewrite counts 5-minute writes 5 to 60 minutes after a request to the same model in the conversation: potential reuse with a longer cache, not guaranteed hits. unsplit, when present, counts tokens a source keeps as one total with no split, such as a thread's whole count; they are in no other counter, totals include them, and the cache's figures leave them out.

usage is not cut by the window: it holds every day the machines have a record of, unless loadsheet usage --days set config.usageWindow. A session counts on the day it started, a request on the day it was made. project is owner/repo when the folder's git remote or the transcript names one, else the folder as ~/... under your home or an absolute path elsewhere, or unknown. Totals are the sum of the cells.

threads holds one cell per thread a day, keyed by day, harness, via, project and id, a hash of the thread's id (a subagent counts under its parent), with its requests and tokens (input, output, cache read and write, and unsplit). titles names a thread by harness and id: its title from Claude Code (/rename, else the title it wrote), Codex's thread name, T3 Code's thread title or a Pi session's /name, at most 120 characters. A Report keeps its 500 heaviest threads.

activity holds one cell per thread lane, keyed by harness, id, via, agent (a hash of a subagent's own id; absent for the main conversation), project and model. Its runs are flattened triples: the first and last request's time in epoch seconds and the requests between, one run per stretch of requests at most 300 seconds apart. A Scan keeps the runs that end in its last 3 days. agents lists subagents with known types, keyed by harness, id and agent; every row has a type. The optional agentTree uses the same keys and holds known ancestry. Follow a node's parent to another node's agent in the same (harness, id). An opener stays in the tree even without a known type or retained runs. A missing parent means the main thread opened that agent or the source does not say.

Privacy lists what a Report and a Scan leave out.