Create AI reviewer script
We want to create a system similar to llm_transform, called ai_reviewer.py that
-
Read the file from https://github.com/causify-ai/helpers/pull/710#discussion_r2089201962
-
Run the checks from the file and create a file similar to the linter with the violations to the our rules from the guidelines
-
Then we can use
llm_apply.pyto fix the problems automatically but this requires human supervision. The flow I use is something like:- Use
ai_reviewer.pyto find the problems as cfile - Jump around accepting / rejecting the suggestions
- Use
llm_apply.pyto utilize LLMs to address the issues (we can apply changes in multiple commits, e.g., by type of violation). It seems that giving all the rules at once, confused the LLMs
- Use
Most of the code (if not everything) is already in llm_transform.py and llm_apply.py, we just have to stitch things together.
Let me know if you want PP to build the skeleton. Then we can start outsourcing testing and adding more stuff to the good collaborators
Some notes from this AM discussion
- The goal is to create a script ai_reviewer.py
- Automate the usual complaints
- People run the script, fix the code by hand (or use llm_apply to fix them, but then they won't learn)
- Submit code that doesn't upset the reviewers too much
Merged the script from @sonniki
Next steps are
- Merge my code on top of it
- inject_todo.py
- Split the md files into chunks for different "targets" (e.g., linter, llm, correctness)