Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore whether stack graphs may be useful in this tool #534

Open
0xdevalias opened this issue Apr 5, 2024 · 2 comments
Open

Explore whether stack graphs may be useful in this tool #534

0xdevalias opened this issue Apr 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@0xdevalias
Copy link

I'm not sure if this would add anything substantially different/better than the existing tree-sitter implementation, but I spent some time recently looking into stack graphs + related tooling, and I'm wondering if there may be benefits to this project to look at using tree-sitter-graph and/or the stack-graphs project (eg. tree-sitter-stack-graphs-javascript, etc); rather than just plain tree-sitter.

A few notes/links/references I recently collated RE: stack graphs + related libs:

Stack Graphs (an evolution of Scope Graphs) sound like they could be really interesting/useful with regards to code navigation, symbol mapping, etc. Perhaps we could use them for module identification, or variable/function identifier naming stabilisation or similar?

Originally posted by @0xdevalias in 0xdevalias/chatgpt-source-watch#11

@0xdevalias
Copy link
Author

This seems to be aligned to how some other agents have chosen to go, eg.

Where they saw it as an improvement on their older method:

I understand it not being a current priority; but to discount the concept entirely (particularly without reasoning beyond seemingly personal opinion) seems counterintuitive to getting the best agent/outcome here.

Further to this, aider just set a new SOTA and topped the SWE-bench lite leaderboard with 26.3%. While all of that performance gain can't be attributed to just their smart code search/repo map'; I would happily bet that it helped it achieve it:

It will be interesting to see if they end up exploring stack graphs directly, and if that improves their performance further again:

Originally posted by @0xdevalias in SWE-agent/SWE-agent#38 (comment)

It would be interesting to see how aider's existing repo map compares/contrasts with stack graphs/similar; and whether that would improve the performance on the SWE-bench lite even further.

@paul-gauthier paul-gauthier added enhancement New feature or request and removed question Further information is requested labels Sep 9, 2024
@maks-ivanov
Copy link

I've looked into this before, it's a super promising project that's not quite ready for primetime. The issues boil down to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants