Problem
Currently mc-code doesn't support defining named agents with specific model assignments. Users who work with multiple AI models have no way to consistently route specific task types to specific models.
Use Case
When building a multi-agent workflow (similar to magic-powers), different agents need different models:
- Architecture/design tasks → Opus (deep reasoning)
- Implementation/coding → Sonnet (balanced)
- Review/classification → Haiku (fast, cheap, 60x cheaper than Opus)
Proposed Solution
Support agent definition files in .magic-code/agents/*.md (or similar path) with frontmatter:
---
name: reviewer
description: "Code review agent — fast, pattern-matching"
model: haiku
tools: ReadFile, GlobSearch, GrepSearch
---
You are a code reviewer focused on...
When user invokes @reviewer, mc-code:
- Loads this agent's system prompt
- Routes the conversation to the specified model
- Restricts available tools to the declared list
Benefits
- Cost optimization: Route simple review/classification to Haiku (15x cheaper than Opus)
- Consistency: Same task always gets same model — reproducible results
- Team sharing: Agent definitions checked into repo, used by whole team
- Workflow templates: Different agents for different phases (plan→implement→review)
Related
This would enable integration with plugin ecosystems like magic-powers that define specialized agents for domains (cloud engineering, AI development, analytics, etc.)
References
Problem
Currently mc-code doesn't support defining named agents with specific model assignments. Users who work with multiple AI models have no way to consistently route specific task types to specific models.
Use Case
When building a multi-agent workflow (similar to magic-powers), different agents need different models:
Proposed Solution
Support agent definition files in
.magic-code/agents/*.md(or similar path) with frontmatter:When user invokes
@reviewer, mc-code:Benefits
Related
This would enable integration with plugin ecosystems like magic-powers that define specialized agents for domains (cloud engineering, AI development, analytics, etc.)
References