[codex] add go support#144
Conversation
|
Hi, @CaliLuke thanks you so much for the interests for this idea/project, kind already losing passion for it myself. I know this is a hard problem, so far still not good solution for it. On the PR side, because this is a very very early project, I am very flexiable to check stuff in (human or ai code all welcome), will take a brief review, and get it checked in so you can do more experiments with it. huge thanks. |
|
sure no problem, I wanted to experiment with the same concept and didn't want to rewrite the whole thing by hand so I added go support to your project instead. I think the tree built by the tool is a bit verbose and probably not hyper helpful but it helped the agent catch a few things that were genuinely in the wrong place after a refactor so it's the kind of tool that might end up in my personal harness as pre-commit or pre-push kind of check. |
|
"I think the tree built by the tool is a bit verbose", yes, thats great call, the reason its verbose, is becuase right now the tree is for people/human to render and see, not best fit the agents, should improve on that. |
Summary
Adds Go language support to llmcc using
tree-sitter-goand the existing language-crate architecture.The new
llmcc-gocrate covers parsing, token generation, symbol collection, binding, and basic type inference for package/file hierarchy, named types, structs, interfaces, fields, parameters, functions, methods, locals, return types, and straightforward call/type relationships.Details
--lang go/--lang golangin the CLI.Closedo not pollute package lookup.Validation
cargo fmt --all --checkcargo check --workspacecargo run -q -p llmcc-test -- run tests/go/render/01_named_types_and_functions.llmcc/Users/luca/code/autok/autok-serverwith 7,538 Go files:cargo run -q -p llmcc -- -d /Users/luca/code/autok/autok-server --lang go --graph --depth 3 --pagerank-top-k 200 -o <tmp.dot>