state.json
A Claude Code settings key, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Background job files can be stored somewhere other than disk, but nothing switches that on yet.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.223.
In the changelogs
7Releases whose published page names state.json.
-
v2.1.333
Background job records recover from damaged or oversized files
If a background job's state.json cannot be read, Claude Code uses the last good copy, and it saves a smaller record when the file is too large
named in this entry, found in this entry's text
-
v2.1.321
Background jobs can record how they were started
Saved state for background jobs can now hold an optional field recording which entry point launched the job
found in this entry's text
-
v2.1.311
Claude Code now reports when a background job's saved state is rejected
Claude Code now sends a usage report the first time a background job's state.json file fails its validity check
found in this entry's text
-
v2.1.304
New
CLAUDE_CODE_ATTRIBUTION_PROJECTsetting checked against claude.ai Project IDsClaude Code now recognises
CLAUDE_CODE_ATTRIBUTION_PROJECTand drops a value that is not a valid claude.ai Project ID from saved jobsfound in this entry's text
-
v2.1.296
Background jobs now say which saved environment entries they ignored and why
When a background job loads its
state.json, Claude Code now lists ignored environment entries with a reason for eachfound in this entry's text
-
v2.1.280
Provider env state validated against saved job state
Restored background-job provider environment variables are now validated, not just copied
found in this entry's text
-
v2.1.260
New kept-worktree state: unpushed_shared
Worktrees shared with another finished job's unpushed commits are now kept instead of offered for discard.
found in this entry's text
First cited
3The earliest release whose published evidence quoted state.json was v2.1.280, 22 Sep 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the settings key does. All settings keys.