β¨ Tricks for prompting Sweep
- π― Be specific: Donβt write βfix typosβ, "write tests" or βfix the first errorβ. Sweep will get confused and might crash. Put a real issue that you would like solved in your codebase, with as much detail as you would provide a junior developer.).
- π Mention important files: To ensure that Sweep scans a file, mention the file path or name (
src/main.py
ormain.py
) in your ticket. Sweep searches for relevant files at runtime, but specifying the file helps avoid missing important details. - β‘ Use GitHub Actions! We highly recommend linters, as well as Netlify/Vercel preview builds. Not only can Sweep auto-correct based on linter and build errors, but it also helps with iteration cycles by providing previews of static sites using Netlify (which we use
- β©οΈ Reply to Sweep: If Sweep's plan isn't accurate, reply to the same ticket and provide instructions on what changes should be made instead.
- π¨οΈ Comment on PRs: If Sweep creates a pull request with a few lines missing small changes, leave a review comment in the file where the change should be made.