Skip to content

Graft does not index Godot .gd or GLSL .glsl files #293

Open

Description

@rikiyanai

Summary

Graft currently reports no indexed definitions for Godot GDScript (.gd) and GLSL shader (.glsl) files. In a Godot-heavy repository, this makes graft skeleton / MCP graft_file_api fail on core renderer files even though the files are tracked and present.

Reproduction

In a repo containing tracked files such as:

  • godot_project/scripts/render/PerspectiveProbePipeline.gd
  • godot_project/shaders/visible_surface_builder.glsl
  • godot_project/shaders/perspective_probe_march_pack.glsl
  • godot_project/shaders/cell_owner_product.glsl

Run:

graft skeleton godot_project/shaders/cell_owner_product.glsl .

Observed:

graft skeleton — godot_project/shaders/cell_owner_product.glsl

no definitions indexed for this file

The files are present in git. The issue is that src/graph/source-files.ts only enumerates files claimed by languageOf, genericLangOf, or containerLangOf; neither .gd nor .glsl is claimed by the current depth/generic/container registries.

Local verification against the current registry:

unsupported=.gd,.glsl
supported_has_gd=false
supported_has_glsl=false

Expected behavior

At minimum, .gd and .glsl files should be source-indexed with file nodes and useful definition nodes so skeleton, grep, ask, and MCP graft_file_api can route agents to real code instead of reporting an empty API surface.

A reasonable first pass would support:

  • .gd: class_name, func, static func, class, signal, enum, const, var, @export var
  • .glsl: struct, function definitions, layout/uniform declarations, const, preprocessor defines

Why this matters

In Godot projects, renderer ownership often lives in .gd orchestration files plus .glsl shader producers/consumers. Without these extensions, Graft can project failure-log/code references that mention the files, but the wiring graph has no definitions for the actual source files, so structural code tools are blind on the most important surfaces.

Activity

  1. Frankie-Xu commented on Sep 11, 2026

    @Frankie-Xu
    Contributor

    [email protected] already includes gdscript, glsl, and gdshader.

    .gd is already being added in #299 (breadth-tier row + tags query + preload/load imports). I am not opening a second GDScript PR.

    .glsl is still unclaimed there; I'll send a small registry-row PR for that remaining slice rather than closing this issue from the GDScript work alone.

  2. Frankie-Xu commented on Sep 11, 2026

    @Frankie-Xu
    Contributor

    .glsl slice: draft #358 (one GENERIC_LANGS row, walker symbols, no query). .gd remains #299.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions