7 ms·
How about looking at an ast-based method for making changes across code base? https://www.reddit.com/r/Python/comments/17tvm06/astgrep_and_python_api_a_tool_for
by r00tanon 2y ago
How about looking at an ast-based method for making changes across code base?
https://www.reddit.com/r/Python/comments/17tvm06/astgrep_and_python_api_a_tool_for_code_structural/ https://www.reddit.com/r/Python/comments/17tvm06/astgrep_and...
- miki123211 2y agoI think this is going to be the answer eventually. Once one of the AI companies figures out a decent (probably treesitter-based) language to express code selections and code changes in, and then trains a good model on it, they're going to blow everyone else out of the water. This would help with "context management" tremendously, as it would let the LLM ask for things like "all functions that are callers of this function", without having to load in entire files. Some simpler refactorings could also be performed by just writing smart queries.