block / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block.github.io/goose/
Apache License 2.0
109 stars 17 forks source link

Ensure code quality / formatting on write #112

Open lily-de opened 2 weeks ago

lily-de commented 2 weeks ago

We have noticed Goose having issues with whitespacing/formatting with Python, and also producing errors with JS. It seems like this rarely happens the first time you ask it to do something, but if you ask it to repeatedly edit a file, it seems like it inevitably runs into issues. Not sure if anyone else has run into this. Could be an issue with how it sends data to be reprocessed after an initial request (just spitballing).

Potential approach: pair it with a linter/formatter (like black) and prompt with something like "the task is not successful until it passes this linter"