{
  "slug": "stern-pager-pipes-output-into-a-pager-919fb0d7af5a",
  "title": "stern --pager pipes output into a pager",
  "tools": [
    "stern"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-22T13:57:05.000Z",
  "announced_at": "2026-10-22T13:57:05.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing logs interactively, run stern with `--pager <pager-command> <pod-query>`; stern uses the pager when stdout is a terminal and stops tailing when you quit. To always use a pager, set `pager: <pager-command>` in stern's config file.",
    "examples": [
      "stern --pager less backend",
      "pager: less"
    ],
    "gotchas": [
      "Version: v1.35.0",
      "--pager <command>: Command to pipe stern output into (for example, `less`); used when stdout is a terminal.",
      "<pod-query> (required): Regular expression or Kubernetes resource/name query selecting pods to tail.",
      "pager: Config-file value setting a pager command; the release note example uses `less`.",
      "The pager is used only when standard output is connected to a terminal (tty), unless configured to always use a pager."
    ]
  },
  "why_it_matters": "When reviewing tailed logs interactively, send stern output to a pager and stop tailing when you quit it.",
  "before": "Previously, pipe output in the shell, e.g. `stern --color=always backend | less -R`; this requires explicit color flags and quitting the pager does not state that stern stops tailing.",
  "sources": [
    "https://github.com/stern/stern/releases/tag/v1.35.0",
    "https://github.com/stern/stern/blob/v1.35.0/README.md"
  ],
  "rank": 0.9804,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261026-04",
    "verdict_id": "daily-20261026-04:daily-20261026-04-2bb809857702a5f4-0:gate",
    "evidence_hash": "92cc09ae9359c40e6295011164e5381205668838a445e5960e6992f5509942ca"
  },
  "review": {
    "draft_hash": "266378a4e4905f56c07f51090b52d07dbe96eb75537d1f1a592e1ecbe4d93d29",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-22T13:57:05.000Z",
    "decision": "daily-20261026-04:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
