goose/llms are better at writing code when you get it to fetch the docs first. documentation and specifications are becoming more and more important, it's not just for humans anymore.
It keeps going over the files looking for code when it has already done so many times. Adding some caching like Claude does would help I think. But yeah gotta keep input tokens to minimum to not go broke
Goose is a tool that allows you to install tools to enable llms like ChatGPT to have free reign over your computer(if you want).
So you can tell it to go work on a program and keep iterating on it in a loop until the tests pass and stuff like that.