The claude agents --json scripting command now accepts an --all flag that includes completed (archived) sessions in the output, not just currently active ones.
Usage
claude agents --json --all
Details
Without --all, --json continues to show only active sessions (renamed from "live sessions" to "active sessions" in the help text)
With --all, the full agent view list — including completed sessions — is returned as JSON
Useful for post-run scripting or auditing completed cloud agent sessions
Evidence
CLI option addition (search for "With --json: include completed sessions") — --all option at line ~23293
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed claude agents --json omitting blocked and just-dispatched background sessions; added --all to include completed sessions, plus new id…