Thread
Tweet 1
Mentat can now run configurable pre-commit checks for your repository!
---
Tweet 2
The bot could already see CI failures and attempt fixes but for formatting checks this is inefficient and difficult to do with an LLM. Now you can tell the bot to use the formatter!
---
Tweet 3
Of course the bot can figure out how to use the formatter itself. But it's again inefficient to ask it to figure out basic things like this every time. You can request it to generate a setup and precommit script at
---
Tweet 4
Here's the example from the video. Of course it's up to you what you put in it. It may make more sense to just put things like formatters in it and have it only iterate on tests from CI.
---