{"version":"2.1.169","anchor":"agents-json-gains-all-flag","canonical_anchor":"agents-json-gains-all-flag","heading":"\/agents --json Gains --all Flag","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.169\/e\/agents-json-gains-all-flag","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.169","markdown":"### `\/agents --json` Gains `--all` Flag\n\n**What**\n\nThe `claude agents --json` scripting command now accepts an `--all` flag that includes completed (archived) sessions in the output, not just currently active ones.\n\n**Usage**\n\n`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 \u2014 including completed sessions \u2014 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\"`) \u2014 `--all` option at line ~23293"}