usage: agentbreeder logs [-h] [--state-dir STATE_DIR] [--json] [--failed NAME]
                         [--tail N] [--since D] [--follow] [--previous]
                         [--level {warning,error}] [--raw] [--stack DIR]
                         [--environment ENVIRONMENT]
                         [ID]

positional arguments:
  ID                    Deployment ID (from `list`): its container's logs

options:
  -h, --help            show this help message and exit
  --state-dir STATE_DIR
  --json
  --failed NAME         Agent name: show its last failed release candidate's
                        log tail (redacted)
  --tail N              With ID: the last N lines (default 200, at most 10000)
  --since D             With ID: only lines since D (10m, 2h,
                        2026-11-11T09:00:00Z)
  --follow              With ID: keep printing new lines until the container
                        stops, Ctrl-C, SIGTERM, SIGHUP or the end of a non-
                        terminal stdin
  --previous            With a Kubernetes ID: the last restarted container's
                        output (a crash loop)
  --level {warning,error}
                        With ID: only records at this level or above, for a
                        known log format (a heuristic; continuation lines stay
                        with their record)
  --raw                 Print control characters as they are (unsafe; --json
                        always escapes)
  --stack DIR           Use the operator config and state that `services up`
                        wrote for DIR
  --environment ENVIRONMENT
                        With --stack: the stack environment
