{
  "slug": "semgrep-max-match-context-size-limits-source-context-per-match-32dfd04c5fe1",
  "title": "semgrep --max-match-context-size limits source context per match",
  "tools": [
    "semgrep"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-03T22:02:47.000Z",
  "announced_at": "2026-06-03T22:02:47.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When scanning minified source files, pass `--max-match-context-size <characters>` to limit source-code context included for each match. Use `0` for unlimited context, the default.",
    "examples": [
      "semgrep scan --max-match-context-size <characters> <path>"
    ],
    "gotchas": [
      "Version: v1.165.0",
      "--max-match-context-size <characters>: Maximum number of source-code characters included as context for each match in output. `0` means unlimited and is the default.",
      "The limit applies to source code included as context for each match in the output.",
      "A value of 0 means unlimited and is the default."
    ]
  },
  "why_it_matters": "Limit output context when scanning minified source files.",
  "sources": [
    "https://github.com/semgrep/semgrep/releases/tag/v1.165.0"
  ],
  "rank": 0.95023,
  "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": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-8885ca436e6601b9-0:gate",
    "evidence_hash": "d6f06dd0a6c55a0e76e75dad81e4c2464812b895af46726e3ac7fe75287bb6b6"
  },
  "review": {
    "draft_hash": "286618bbcb856d6ad1a96e550bb10f34a30f778fcd6dedfd9debf04b80780d10",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
