Cofounder, CTO at Sweep | AI-powered Junior Developer for Fixing Bugs (Y Combinator-backed) | 7.1k+ GitHub Stars
We just revamped Sweep's refactoring capabilities! Sweep now refactors each function individually and passes in their dependencies. For example, if Sweep is refactoring function f, which calls g in its body, we would pass the function g's body into the context. We would previously include the entire imported file is not very granular and often confuses GPT-4. We also improved our prompts and error handling around GPT-4, and fixed a major bug with file modifications.