Skip to content

Commit d2352a9

Browse files
committed
Add more info about custom agents including init-agents command
1 parent fc2cd94 commit d2352a9

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ npm install -g codebuff
3535

3636
Run:
3737

38-
```
38+
```bash
3939
cd your-project
4040
codebuff
4141
```
@@ -48,9 +48,17 @@ Then just tell Codebuff what you want and it handles the rest:
4848

4949
Codebuff will find the right files, makes changes across your codebase, and runs tests to make sure nothing breaks.
5050

51-
### Create custom agents
51+
## Create custom agents
52+
53+
To get started building your own agents, run:
54+
55+
```bash
56+
codebuff init-agents
57+
```
58+
59+
You can write agent definition files that give you maximum control over agent behavior.
5260

53-
You can create specialized agents for your workflows using TypeScript generators for more programmatic control.
61+
Implement your workflows by specifying tools, which agents can be spawned, and prompts. We even have TypeScript generators for more programmatic control.
5462

5563
For example, here's a `git-committer` agent that creates git commits based on the current git state. Notice that it runs `git diff` and `git log` to analyze changes, but then hands control over to the LLM to craft a meaningful commit messagea and perform the actual commit.
5664

@@ -107,6 +115,7 @@ await client.run({
107115
agent: 'greeter',
108116
agentDefinitions: [myCustomAgent],
109117
prompt: 'My name is Bob.',
118+
customToolDefinitions: [], // Add custom tools too!
110119
handleEvent: (event) => {
111120
console.log('Progress', event)
112121
},
@@ -117,9 +126,11 @@ Learn more about the SDK [here](https://www.npmjs.com/package/@codebuff/sdk).
117126

118127
## Why choose Codebuff
119128

129+
**Deep customizability**: Create sophisticated agent workflows with TypeScript generators that mix AI generation with programmatic control. Define custom agents that spawn subagents, implement conditional logic, and orchestrate complex multi-step processes that adapt to your specific use cases.
130+
120131
**Any model on OpenRouter**: Unlike Claude Code which locks you into Anthropic's models, Codebuff supports any model available on [OpenRouter](https://openrouter.ai/models) - from Claude and GPT to specialized models like Qwen, DeepSeek, and others. Switch models for different tasks or use the latest releases without waiting for platform updates.
121132

122-
**Deep customizability**: Create sophisticated agent workflows with TypeScript generators that mix AI generation with programmatic control. Define custom agents that spawn subagents, implement conditional logic, and orchestrate complex multi-step processes that adapt to your specific use cases.
133+
**Reuse any published agent**: Compose existing [published agents](https://www.codebuff.com/agents) to get a leg up. Codebuff agents are the new MCP!
123134

124135
**Fully customizable SDK**: Build Codebuff's capabilities directly into your applications with a complete TypeScript SDK. Create custom tools, integrate with your CI/CD pipeline, build AI-powered development environments, or embed intelligent coding assistance into your products.
125136

0 commit comments

Comments
 (0)