Skip to main content

fased sessions

List stored conversation sessions across one agent or all configured agent stores. Sessions are the durable context layer under Agents. They can own scheduled tasks, model overrides, token usage, delivery hints, and transcript metadata. For the full model, see Agents, Sessions, And Tasks.
Scope selection:
  • default: configured default agent store
  • --agent <id>: one configured agent store
  • --all-agents: aggregate all configured agent stores
  • --store <path>: explicit store path (cannot be combined with --agent or --all-agents)
JSON examples: fased sessions --all-agents --json:

Cleanup maintenance

Run maintenance now (instead of waiting for the next write cycle):
fased sessions cleanup uses session.maintenance settings from config:
  • Scope note: fased sessions cleanup maintains session stores/transcripts only. It does not prune task activity logs (cron/runs/<jobId>.jsonl). Those are managed by cron.runLog.maxBytes and cron.runLog.keepLines, as explained in Task configuration and Task maintenance.
  • --dry-run: preview how many entries would be pruned/capped without writing.
    • In text mode, dry-run prints a per-session action table so you can see what would be kept vs removed.
  • --fix-missing: also remove store entries whose transcript files are missing. Use it with --dry-run first.
  • --enforce: apply maintenance even when session.maintenance.mode is warn.
  • --active-key <key>: protect a specific active key from disk-budget eviction.
  • --agent <id>: run cleanup for one configured agent store.
  • --all-agents: run cleanup for all configured agent stores.
  • --store <path>: run against a specific sessions.json file.
  • --json: print a JSON summary. With --all-agents, output includes one summary per store.
fased sessions cleanup --all-agents --dry-run --json:
Related: