Skip to content

Commit 53b235f

Browse files
committed
Merge branch 'main' into xml-tools
2 parents 8d39136 + 5abff4c commit 53b235f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1606
-2317
lines changed

.agents/base/ask.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,7 @@ Messages from the system are surrounded by <system>${closeXml('system')} or <sys
9999
100100
## Verifying Your Changes at the End of Your Response
101101
102-
### User has a \`codebuff.json\`
103-
104-
If the user has a \`codebuff.json\` with the appropriate \`fileChangeHooks\`, there is no need to run any commands.
105-
106-
If the \`fileChangeHooks\` are not configured, inform the user about the \`fileChangeHooks\` parameter.
107-
108-
### User has no \`codebuff.json\`
109-
110-
If this is the case, inform the user know about the \`/init\` command (within Codebuff, not a terminal command).
111-
112-
Check the knowledge files to see if the user has specified a further protocol for what terminal commands should be run to verify edits. For example, a \`knowledge.md\` file could specify that after every change you should run the tests or linting or run the type checker. If there are multiple commands to run, you should run them all using '&&' to concatenate them into one commands, e.g. \`npm run lint && npm run test\`.
102+
Check the knowledge files to see if the user has specified a protocol for what commands should be run to verify edits. If so, follow it. Otherwise, suggest the most relevant checks for the change.
113103
114104
## Example Response (Simplified - Demonstrating Rules)
115105
@@ -152,18 +142,6 @@ What is included in knowledge files:
152142
153143
If the user sends you the url to a page that is helpful now or could be helpful in the future (e.g. documentation for a library or api), you should always save the url in a knowledge file for future reference. Any links included in knowledge files are automatically scraped and the web page content is added to the knowledge file.
154144
155-
# Codebuff Configuration (codebuff.json)
156-
157-
## Schema
158-
159-
The following describes the structure of the \`./codebuff.json\` configuration file that users might have in their project root. You can use this to understand user settings if they mention them.
160-
161-
${PLACEHOLDER.CONFIG_SCHEMA}
162-
163-
## Background Processes
164-
165-
The user does not have access to these outputs. Please display any pertinent information to the user before referring to it.
166-
167145
${PLACEHOLDER.FILE_TREE_PROMPT}
168146
169147
${PLACEHOLDER.SYSTEM_INFO_PROMPT}

.agents/base/base-prompts.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ ${
104104
105105
## Verifying Your Changes at the End of Your Response
106106
107-
### User has a \`codebuff.json\`
108-
109-
If the user has a \`codebuff.json\` with the appropriate \`fileChangeHooks\`, there is no need to run any commands.
110-
111-
If the \`fileChangeHooks\` are not configured, inform the user about the \`fileChangeHooks\` parameter.
112-
113-
### User has no \`codebuff.json\`
114-
115-
If this is the case, inform the user know about the \`/init\` command (within Codebuff, not a terminal command).
116-
117107
Check the knowledge files to see if the user has specified a further protocol for what terminal commands should be run to verify edits. For example, a \`knowledge.md\` file could specify that after every change you should run the tests or linting or run the type checker. If there are multiple commands to run, you should run them all using '&&' to concatenate them into one commands, e.g. \`npm run lint && npm run test\`.
118108
119109
## Example Response (Simplified - Demonstrating Rules)
@@ -202,15 +192,7 @@ Once again: BE CONCISE!
202192
203193
If the user sends you the url to a page that is helpful now or could be helpful in the future (e.g. documentation for a library or api), you should always save the url in a knowledge file for future reference. Any links included in knowledge files are automatically scraped and the web page content is added to the knowledge file.
204194
205-
# Codebuff Configuration (codebuff.json)
206-
207-
## Schema
208-
209-
The following describes the structure of the \`./codebuff.json\` configuration file that users might have in their project root. You can use this to understand user settings if they mention them.
210-
211-
${PLACEHOLDER.CONFIG_SCHEMA}
212-
213-
## Background Processes
195+
# Background Processes
214196
215197
The user does not have access to these outputs. Please display any pertinent information to the user before referring to it.
216198

.agents/types/secret-agent-definition.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export interface SecretAgentDefinition
2323
const placeholderNames = [
2424
'AGENT_NAME',
2525
'AGENTS_PROMPT',
26-
'CONFIG_SCHEMA',
2726
'FILE_TREE_PROMPT_SMALL',
2827
'FILE_TREE_PROMPT',
2928
'FILE_TREE_PROMPT_LARGE',

CONTRIBUTING.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to Codebuff
22

3-
Hey there! 👋 Thanks for wanting to contribute to Codebuff. Whether you're squashing bugs, building cool features, or making our docs better, we're excited to have you aboard!
3+
Hey there! 👋 Thanks for contributing to Codebuff. Bug fixes, features, and documentation improvements are welcome.
44

55
## Getting Started
66

@@ -147,15 +147,13 @@ Not sure where to start? Here are some great ways to jump in:
147147

148148
### Development Workflow
149149

150-
Here's how we like to work together:
150+
1. **Fork and branch** - Create a fork and a new branch
151+
2. **Follow style guidelines** - See below
152+
3. **Test** - Write tests for new features, run `bun test`
153+
4. **Type check** - Run `bun run typecheck`
154+
5. **Submit a PR** - Clear description of changes
151155

152-
1. **Fork and branch** - Create your own fork and a new branch for your changes
153-
2. **Code away** - Follow our style guidelines (more on that below)
154-
3. **Test it** - Write tests for new features and run `bun test` to make sure everything works
155-
4. **Type check** - Run `bun run typecheck` to catch any TypeScript issues
156-
5. **Submit a PR** - Open a pull request with a clear description of what you built and why
157-
158-
_Pro tip: Small, focused PRs are easier to review and merge quickly!_
156+
Small PRs merge faster.
159157

160158
### Code Style Guidelines
161159

@@ -218,27 +216,25 @@ test: add unit tests for file operations
218216

219217
## Areas Where We Need Help
220218

221-
There are tons of ways to make Codebuff better! Here are some areas where your skills could really shine:
222-
223219
### 🤖 **Agent Development**
224220

225-
Build specialized agents in `.agents/` for different languages, frameworks, or workflows. Think React experts, Python debuggers, or Git wizards!
221+
Build agents in `.agents/` for different languages, frameworks, or workflows.
226222

227223
### 🔧 **Tool System**
228224

229-
Add new capabilities in `common/src/tools` and the SDK helpers - file operations, API integrations, development environment helpers. The sky's the limit!
225+
Add capabilities in `common/src/tools` and SDK helpers: file operations, API integrations, dev environment helpers.
230226

231227
### 📦 **SDK Improvements**
232228

233-
Make the SDK in `sdk/` even more powerful with new methods, better TypeScript support, or killer integration examples.
229+
New methods, better TypeScript support, integration examples in `sdk/`.
234230

235-
### 💻 **CLI Magic**
231+
### 💻 **CLI**
236232

237-
Enhance the user experience in `cli/` with smoother commands, better error messages, or interactive features that make developers smile.
233+
Improve `cli/`: better commands, error messages, interactive features.
238234

239235
### 🌐 **Web Dashboard**
240236

241-
Level up the web interface in `web/` with better agent management, project templates, analytics, or any UX improvements you can dream up.
237+
Improve `web/`: agent management, project templates, analytics.
242238

243239
## Getting Help
244240

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ To get started building your own agents, run:
8383
codebuff init-agents
8484
```
8585

86-
> 💡 **Tip**: This command creates a comprehensive agent development guide at `.agents/README.md` (293 lines) with detailed documentation, complete examples, and full TypeScript type definitions. Start there for complete guidance.
86+
> 💡 **Tip**: This creates an agent development guide at `.agents/README.md` with examples and TypeScript types.
8787
8888
This creates:
8989
```
9090
.agents/
91-
├── README.md # Comprehensive 293-line agent guide
92-
├── my-custom-agent.ts # Working agent template to edit
93-
├── package.json # NPM package configuration
94-
├── LICENSE # Apache-2.0 license for publishing
95-
├── examples/ # 3 example agents (basic → advanced)
96-
└── types/ # Complete TypeScript definitions
91+
├── README.md # Agent development guide
92+
├── my-custom-agent.ts # Working agent template
93+
├── package.json # NPM package config
94+
├── LICENSE # Apache-2.0 license
95+
├── examples/ # 3 example agents
96+
└── types/ # TypeScript definitions
9797
```
9898

9999
You can write agent definition files that give you maximum control over agent behavior.
@@ -146,7 +146,7 @@ const client = new CodebuffClient({
146146
// 2. Do a coding task...
147147
const result = await client.run({
148148
agent: 'base', // Codebuff's base coding agent
149-
prompt: 'Add comprehensive error handling to all API endpoints',
149+
prompt: 'Add error handling to all API endpoints',
150150
handleEvent: (event) => {
151151
console.log('Progress', event)
152152
},
@@ -174,13 +174,13 @@ Learn more about the SDK [here](https://www.npmjs.com/package/@codebuff/sdk).
174174

175175
## Why choose Codebuff
176176

177-
**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.
177+
**Custom workflows**: TypeScript generators let you mix AI generation with programmatic control. Agents can spawn subagents, branch on conditions, and run multi-step processes.
178178

179179
**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.
180180

181181
**Reuse any published agent**: Compose existing [published agents](https://www.codebuff.com/store) to get a leg up. Codebuff agents are the new MCP!
182182

183-
**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.
183+
**SDK**: Build Codebuff into your applications. Create custom tools, integrate with CI/CD, or embed coding assistance into your products.
184184

185185
## Contributing to Codebuff
186186

@@ -232,7 +232,7 @@ Some ways you can help:
232232

233233
**Documentation**: [codebuff.com/docs](https://codebuff.com/docs)
234234

235-
**Community**: [Discord](https://codebuff.com/discord) - Join our friendly community
235+
**Community**: [Discord](https://codebuff.com/discord)
236236

237237
**Issues & Ideas**: [GitHub Issues](https://github.com/CodebuffAI/codebuff/issues)
238238

0 commit comments

Comments
 (0)