commit-critic is an extensible Python-based command-line application that helps developers get AI-powered code reviews. It takes your source code file

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-11-16 11:00:03

commit-critic is an extensible Python-based command-line application that helps developers get AI-powered code reviews. It takes your source code files and review guidelines as input, then generates a detailed prompt that can be used with you favourite AI to perform detailed code reviews.

The code reviewing guidelines are described by a series of files written in "Metaphor", a structured natural language format designed to generate structured prompts for LLMs.

While the application is a demonstration of using Metaphor and the m6rclib parser/prompt compiler, commit-critic was itself coded by an AI, based on a metaphor description.

The environment variable COMMIT_CRITIC_GUIDELINE_DIR can also be used to specify the directory, or directories, to search for .m6r review guidelines files.

The tool will include all guidelines it can find. If you want to add new ones for a particular language then create a new file for that language and add content in the same format as the examples provides.

Leave a Comment