{
  "slug": "jj-file-search-adds-line-numbers-32c8e6895a2e",
  "title": "jj file search adds line numbers",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-06T01:42:10.000Z",
  "announced_at": "2026-08-06T01:42:10.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing repository search results, run `jj file search -n --pattern <PATTERN>` to prefix each matching line with its file path and 1-based line number. The pattern is required and defaults to regex syntax when no kind prefix is given.",
    "examples": [
      "jj file search -n --pattern '<PATTERN>'"
    ],
    "gotchas": [
      "Version: v0.44.0",
      "-n, --line-number: Prefix each matched line with its 1-based line number within the file.",
      "-p, --pattern <PATTERN> (required): Pattern to search for in a single line; supports string pattern syntax such as `kind:pattern`, defaulting to regex if the kind is omitted.",
      "Line numbers are 1-based and within the file."
    ]
  },
  "why_it_matters": "When reviewing repository search results, include each match's line number.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.44.0",
    "https://github.com/jj-vcs/jj/blob/v0.44.0/cli/src/commands/file/search.rs"
  ],
  "rank": 0.92031,
  "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": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-308141f59d306654-13:gate",
    "evidence_hash": "45541c81170897c549c60174d7b60409c4ed2f6670195de1cd807c7d79ca2b19"
  },
  "review": {
    "draft_hash": "330cb033673fd5cf460aa726ee98424bc70f7ec3ee0f6f007c1b648eb40ab5bf",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
