Skip to content

Commit 6b2150f

Browse files
author
Marlon Costa
committed
Merge PR winfunc#379: Model Aliases
Updates model selection to use aliases instead of version numbers: - UI shows 'Sonnet' and 'Opus' with 'Uses latest X model' descriptions - Maintains i18n translations with fallbacks - calculate_cost now recognizes both aliases and full model names
2 parents 8364554 + a590b0e commit 6b2150f

5 files changed

Lines changed: 1476 additions & 3710 deletions

File tree

cc_agents/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
## 📦 Available Agents
1818

19-
| Agent | Model | Description | Default Task |
19+
| Agent | Model Alias | Description | Default Task |
2020
|-------|-------|-------------|--------------|
21-
| **🎯 Git Commit Bot**<br/>🤖 `bot` | <img src="https://img.shields.io/badge/Sonnet-blue?style=flat-square" alt="Sonnet"> | **Automate your Git workflow with intelligent commit messages**<br/><br/>Analyzes Git repository changes, generates detailed commit messages following Conventional Commits specification, and pushes changes to remote repository. | "Push all changes." |
22-
| **🛡️ Security Scanner**<br/>🛡️ `shield` | <img src="https://img.shields.io/badge/Opus-purple?style=flat-square" alt="Opus"> | **Advanced AI-powered Static Application Security Testing (SAST)**<br/><br/>Performs comprehensive security audits by spawning specialized sub-agents for: codebase intelligence gathering, threat modeling (STRIDE), vulnerability scanning (OWASP Top 10, CWE), exploit validation, remediation design, and professional report generation. | "Review the codebase for security issues." |
23-
| **🧪 Unit Tests Bot**<br/>💻 `code` | <img src="https://img.shields.io/badge/Opus-purple?style=flat-square" alt="Opus"> | **Automated comprehensive unit test generation for any codebase**<br/><br/>Analyzes codebase and generates comprehensive unit tests by: analyzing code structure, creating test plans, writing tests matching your style, verifying execution, optimizing coverage (>80% overall, 100% critical paths), and generating documentation. | "Generate unit tests for this codebase." |
21+
| **🎯 Git Commit Bot**<br/>🤖 `bot` | <img src="https://img.shields.io/badge/sonnet-blue?style=flat-square" alt="Sonnet"> | **Automate your Git workflow with intelligent commit messages**<br/><br/>Analyzes Git repository changes, generates detailed commit messages following Conventional Commits specification, and pushes changes to remote repository. Uses the `sonnet` alias to automatically use the latest Sonnet model. | "Push all changes." |
22+
| **🛡️ Security Scanner**<br/>🛡️ `shield` | <img src="https://img.shields.io/badge/opus-purple?style=flat-square" alt="Opus"> | **Advanced AI-powered Static Application Security Testing (SAST)**<br/><br/>Performs comprehensive security audits by spawning specialized sub-agents for: codebase intelligence gathering, threat modeling (STRIDE), vulnerability scanning (OWASP Top 10, CWE), exploit validation, remediation design, and professional report generation. Uses the `opus` alias to automatically use the latest Opus model. | "Review the codebase for security issues." |
23+
| **🧪 Unit Tests Bot**<br/>💻 `code` | <img src="https://img.shields.io/badge/opus-purple?style=flat-square" alt="Opus"> | **Automated comprehensive unit test generation for any codebase**<br/><br/>Analyzes codebase and generates comprehensive unit tests by: analyzing code structure, creating test plans, writing tests matching your style, verifying execution, optimizing coverage (>80% overall, 100% critical paths), and generating documentation. Uses the `opus` alias to automatically use the latest Opus model. | "Generate unit tests for this codebase." |
2424

2525
### Available Icons
2626

@@ -74,7 +74,7 @@ All agents are stored in `.opcode.json` format with the following structure:
7474
"agent": {
7575
"name": "Your Agent Name",
7676
"icon": "bot",
77-
"model": "opus|sonnet|haiku",
77+
"model": "sonnet|opus",
7878
"system_prompt": "Your agent's instructions...",
7979
"default_task": "Default task description"
8080
}
@@ -128,7 +128,7 @@ Export your agent to a `.opcode.json` file with a descriptive name.
128128

129129
- **Single Purpose**: Each agent should excel at one specific task
130130
- **Clear Documentation**: Write comprehensive system prompts
131-
- **Model Choice**: Use Haiku for simple tasks, Sonnet for general purpose, Opus for complex reasoning
131+
- **Model Aliases**: Use `sonnet` for general purpose tasks (fast and efficient), `opus` for complex reasoning and advanced capabilities. Model aliases automatically use the latest version of each model family.
132132
- **Naming**: Use descriptive names that clearly indicate the agent's function
133133

134134
## 📜 License

0 commit comments

Comments
 (0)