{
  "slug": "ast-grep-bindings-add-named-child-access-7bd13bac6b0c",
  "title": "ast-grep bindings add named-child access",
  "tools": [
    "ast-grep"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-23T19:48:48.000Z",
  "announced_at": "2026-08-23T19:48:48.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When traversing a parsed source tree, call `namedChildren()` in the WebAssembly or napi binding, or `named_children()` in PyO3, to get named AST nodes only.",
    "examples": [
      "const nodes = root.namedChildren()",
      "named = node.named_children()"
    ],
    "gotchas": [
      "Version: 0.45.2",
      "namedChildren() (required): Returns an array of named AST child nodes; takes no parameters.",
      "named_children() (required): Returns a list of named AST child nodes; takes no parameters.",
      "Prerequisite: WebAssembly: install `@ast-grep/wasm` and its `web-tree-sitter` peer dependency; initialize the runtime and register a parser for the language before parsing.",
      "Prerequisite: PyO3: install the Python library with `pip install ast-grep-py`."
    ]
  },
  "why_it_matters": "Traverse AST nodes through ast-grep's WebAssembly, napi, or PyO3 binding while working with a source tree.",
  "sources": [
    "https://github.com/ast-grep/ast-grep/releases/tag/0.45.2",
    "https://ast-grep.github.io/guide/api-usage/wasm-api",
    "https://ast-grep.github.io/guide/api-usage/py-api"
  ],
  "rank": 0.90027,
  "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": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-b7a0094125db9320-1:gate",
    "evidence_hash": "ebeea2b017b1eb22c7413d0c8201dbfd5a811a2b25affed955721b16b8683807"
  },
  "review": {
    "draft_hash": "1f761a95e10ba4dc280346c2fef06af3da13040c5893d46c0f2672866b1236fd",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.60 (>= 0.6 needed)."
  }
}
