Live data from Hacker News

Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

news.ycombinator.com

61–70 of 248 posts

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#61

Does Codebuff / the tree sitter implementation support Svelte?

Yes, at least, partially. It will work, but maybe not as well as we don't parse out the function names from .svelte files.

I can add it if tree sitter adds support for Svelte. I haven't checked, maybe it already is supported?

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#62
post #47

Earlier quoted context omitted.

It's mainly from experience. From when I set it up I didn't have the feature to ask whether to run commands. It has been rawdogging commands this whole time and has never been a problem for me. I think we have many other users who are similar. To be fair, sometimes after watching it install packages with npm, people are surprised and say that they would have preferred that it asked. But usually this is just the initi…

Do you have any sandbox-like restrictions in place to ensure that commands are limited to only touching the project folder not any other places in the system?

We always reset the directory back to the project directory on each command, so that helps.

But we're open to adding more restrictions so that it can't for example run `cd /usr && rm -rf .`

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#64
post #49

Quality of code wise, is it worse or better than Cursor? I pay for Cursor now and it saves me a LOT of time to not copy files around. I actually still use the chatGPT/claude interfaces to code as well.

Cool, it's probably about the same, since we're both using the new Sonnet 3.5 for coding. We might have a bit of an advantage because we pull more files as context so the edit can be more in the style of your existing code. One downside to use pulling more context is we burn more tokens. That's partly why we have to charge $99 whereas cursor is $20 per month.

If its the same, hard to justify $100/month vs $20/month . I code mostly from vim so I'm searching for my vim/cli replacement while I still use both vim and Cursor.

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#65
post #14

Noting Codebuff is manicode renamed. It's become my go-to tool for handling fiddly refactors. Here’s an example session from a Rust project where I used it to break a single file into a module directory. https://gist.github.com/cablehead/f235d61d3b646f2ec1794f656e... Notice how it can run tests, see the compile error, and then iterate until the task is done? Really impressive. For reference, this task used ~100 credi…

Haha yes, here's the story of why we rebranded: https://manifold.markets/JamesGrugett/what-will-we-rename-ma...

Thanks for sharing! haxton was asking about practical use cases, I'll link them here!

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#66
post #30
post #27

Earlier quoted context omitted.

but that doesn’t answer the question? are these test files?

Oh, it was a tool call I originally implemented so that Codebuff could look up the probabilities of markets to help it answer user questions. I thought it would be fun if you asked it about the chance of the election or maybe something about AI capabilities, it could back up the answer by citing a prediction market.

Why not simply remove that dependency now?

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#67
post #63

Are there any plans to add a sandbox? This seems cool, but it seems susceptible to prompt injection attacks when for example asking questions about a not necessarily trusted open source codebase.

We might! You could also set up your project within a docker container pretty simply (Codebuff would be great at setting that up :P).

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#68
post #10

Comparison with Aider?

Great question! In Codebuff you don't have to manually specify any files. It finds the right ones for you! It also pulls more files to get you a better result. I think this makes a huge difference in the ergonomics of just chatting to get results. Codebuff also will run commands directly, so you can ask it to write unit tests and run them as it goes to make sure they are working.

That's why I like aider tbh. I know it's not going nuts on my repo.

Re: Launch HN: Codebuff (YC F24) – CLI tool that writes code for you

#69
post #23

Earlier quoted context omitted.

Nope, if you go over the allotted credits on the $99 plan, then you pay per usage (with a 5% discount). We actually ended up not charging this guy since there was a bug where we told him he got 50,000 credits instead of 10,000. Oops!

Can you speak more to how efficiency towards context management works (to reduce token costs)? Or are you loading up context to the brim with each request?

I think managing context is the most important aspect of today's coding agents. We pick only files we think would be relevant to the user request and add those. We generally pull more files than Cursor, which I think is an advantage.

However, we also try to leverage prompt-caching as much as possible to lower costs and improve latency.

So we basically only add files over time. Once context gets too large, it will purge them all and start again.

Post reply on HN