Overview
Publish your custom agents to the Codebuff store to:- Share with team members: Distribute agents across your organization
- Reuse across projects: Access agents from any Codebuff project
- Version control: Track changes and maintain compatibility
- Build on published agents: Other agents can spawn your published agents
Using the /publish Command
The/publish command publishes agents from your .agents/ directory:
Prerequisites
1. Add Publisher ID
Your agent must have apublisher field:
2. Validate Agent Definition
Ensure your agent has all required fields:Agent Versioning
Automatic Versioning
If you don’t specify a version, Codebuff automatically:- Starts at
0.0.1for new agents - Increments the patch version on each publish
Manual Versioning
Specify versions manually for semantic versioning:Versioning Best Practices
Follow semantic versioning:- Patch (1.0.X): Bug fixes, no API changes
- Minor (1.X.0): New features, backward compatible
- Major (X.0.0): Breaking changes
Publishing Process
Step 1: Create Your Agent
Step 2: Test Locally
Test your agent before publishing:Step 3: Publish
Step 4: Use Published Agent
After publishing, reference by full ID:Reusing Published Agents
In Other Agents
In Other Projects
Published agents are available across all your projects:Version Pinning
Publishing Agent Families
Publish multiple related agents together:Example: Code Quality Suite
Dependency Management
Agents can depend on other published agents:- All dependencies exist
- Versions are valid
- No circular dependencies
Publishing Workflow Examples
Example 1: Initial Release
Example 2: Bug Fix
Example 3: New Feature
Example 4: Breaking Change
Real-World Publishing Examples
Example: File Utilities Suite
Example: Testing Suite
Best Practices
1. Use Descriptive IDs
2. Write Clear spawnerPrompts
3. Version Consistently
4. Test Before Publishing
Always test locally:5. Document Input Schema
6. Pin Dependency Versions
7. Use Appropriate Models
Choose models based on agent complexity:Troubleshooting
”Publisher field is required”
Add thepublisher field:
“Agent not found”
Ensure you’re using the full published ID:“Dependency not found”
Publish dependencies first:“Version conflict”
Use specific versions:Next Steps
Creating Agents
Start building your first agent
Agent Definition
Complete reference for all properties
Generators
Advanced programmatic control
Spawning Agents
Compose published agents

