Earlier quoted context omitted.
Thats a good point, I really dislike when Sweep fails. That's why we're so focused on PR validation like self-review and GitHub actions, which brings it even closer to a junior dev. We wrote another blog on it here: https://docs.sweep.dev/blogs/giving-dev-tools There's still a long way to go on automated testing, building, and running code, but I don't see any reason it's not possible!
Another buisness idea is to make repos look more active by giving Sweep different personas.
Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
51–60 of 117 posts
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#52Earlier quoted context omitted.
If I may ask - why? Why is increasing your code coverage to 100% matter? Would that reduce bugs or speed up development in any way? Wouldn't it just add lots more code to maintain and make refactors more time consuming?
100% code coverage doesn't guarantee there are no bugs, but less than 100% code coverage does mean that there is code that you definitely aren't testing. To put it another way, code coverage isn't a direct measure of how good your testing is, but it is still a useful metric to try and improve. In most cases 100% is too hardcore a target, but you should probably aim for at least 80%.
(Shameless plug) I wrote a short post about this here: https://about.codecov.io/blog/the-case-against-100-code-cove...
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#53Earlier quoted context omitted.
100% code coverage doesn't guarantee there are no bugs, but less than 100% code coverage does mean that there is code that you definitely aren't testing. To put it another way, code coverage isn't a direct measure of how good your testing is, but it is still a useful metric to try and improve. In most cases 100% is too hardcore a target, but you should probably aim for at least 80%.
Tom from Codecov here. This is so true, 80% is usually a much more reasonable approach. It’s better to write good tests than all the tests. (Shameless plug) I wrote a short post about this here: https://about.codecov.io/blog/the-case-against-100-code-cove...
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#54Your demo video https://www.youtube.com/watch?v=WBVna_ow8vo is ridiculously compelling. You need to make a better version of the video, and maybe a few more of them.
All this does is making sure your website will crap all over itself 2 weeks into using this tool (death by a thousand cuts style) and you'll need to hire more people to fix whatever this thing fucks up. Just about the opposite of what automation is supposed to help with.
Good luck!
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#55A weird question: How do you feel about possibly ~wasted efforts of these techniques when gpt in a year or so is probably gonna be 100k+ in context length? I've felt this a bit. E.g. I really want to create a 'massive document' conversational agent but I'm doing around 90% of work just juggling and preempting token constraints with super hueristic indexing. I just feel it's all a bit.. wasted, in terms of effort. At some point the LLM apis (openai, claude, ..) will just accept massive zips of code and use them as entire prompts without need for these creative trickeries. Thoughts?
Oh! And have you tried out the function-calling APIs? I see you've found that XML is far more reliable as it's semantically enriched. I have found this to be the case as well, which is a shame because I really want the function-calling stuff to work equally well.
I'm loving stuff like this that starts to pseudo-expand the token limit.
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#56Your demo video https://www.youtube.com/watch?v=WBVna_ow8vo is ridiculously compelling. You need to make a better version of the video, and maybe a few more of them.
The code produced in the "getInitials" function handles absolutely no corner cases whatsoever. It also didn't add any tests to the PR. All this does is making sure your website will crap all over itself 2 weeks into using this tool (death by a thousand cuts style) and you'll need to hire more people to fix whatever this thing fucks up. Just about the opposite of what automation is supposed to help with. Good luck!
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#57E.g. in the demo video, the code doesn't cover if splitName.length === 0. I would want to prompt it to cover that case as well
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#58Love it!! The chunking stuff especially is really impressive. Hitting those token limits often is the annoying bit of working with LLMs. A weird question: How do you feel about possibly ~wasted efforts of these techniques when gpt in a year or so is probably gonna be 100k+ in context length? I've felt this a bit. E.g. I really want to create a 'massive document' conversational agent but I'm doing around 90% of work j…
My stance is with models ignoring long contexts(https://arxiv.org/pdf/2307.03172.pdf), we'll have this problem for a long time. I could be wrong though.
Also we did try function calling, but it doesn't allow for a chain of thought step. This made the plan/code way worse. Cool to see you found the same!
Re: Launch HN: Sweep (YC S23) – A bot to create simple PRs in your codebase
#59Is it possible to provide feedback to a PR? One of the best parts about these AIs is their ability to adapt based on feedback. E.g. in the demo video, the code doesn't cover if splitName.length === 0. I would want to prompt it to cover that case as well