Codebuff is a CLI tool that writes code for you.
- Run
codebuff
from your project directory - Tell it what to do
- It will read and write to files and run commands to produce the code you want
Note: Codebuff will run commands in your terminal as it deems necessary to fulfill your request.
To install Codebuff, run:
npm install -g codebuff
(Use sudo
if you get a permission error.)
After installation, you can start Codebuff by running:
codebuff [project-directory]
If no project directory is specified, Codebuff will use the current directory.
You can also control the cost/quality tradeoff with these flags:
codebuff --lite # Budget mode for more econonmical responses
codebuff --pro # Premium mode for higher quality responses
After running codebuff
, simply chat with it to say what coding task you want done.
- Understands your whole codebase
- Creates and edits multiple files based on your request
- Can run your tests or type checker or linter; can install packages
- It's powerful: ask Codebuff to keep working until it reaches a condition and it will.
Our users regularly use Codebuff to implement new features, write unit tests, refactor code,write scripts, or give advice.
To unlock the full benefits of modern LLMs, we recommend storing knowledge alongside your code. Add a knowledge.md
file anywhere in your project to provide helpful context, guidance, and tips for the LLM as it performs tasks for you.
Codebuff can fluently read and write files, so it will add knowledge as it goes. You don't need to write knowledge manually!
Some have said every change should be paired with a unit test. In 2024, every change should come with a knowledge update!
- Create a
knowledge.md
file and collect specific points of advice. The assistant will use this knowledge to improve its responses. - Type
undo
orredo
to revert or reapply file changes from the conversation. - Press
Esc
orCtrl+C
while Codebuff is generating a response to stop it.
If you are getting permission errors during installation, try using sudo:
sudo npm install -g codebuff
Or, we recommend installing node with a version manager. See below.
For Mac or Unix, use nvm. Run:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
For Windows, use nvm-windows:
Make sure to uninstall your existing node program. Then get this executable:
We value your input! Please email your feedback to founders@codebuff.com
. Thank you for using Codebuff!