LangChain's built in parser uses dumb regular expressions.
Simon Willson seems to have hit up against this and looked into tree-sitter.
Berger's OSDI paper at USENIX 2023 which won a best paper award, Triangulating Python Performance Issues with SCALENE seems to be using the profiler's line number ranges to drive queries to ChatGPT.
codreview.gpt part1 - part2 sends several prompts with the last prompt asking for a code review summary.