luigidemasi opened a new issue, #31:
URL: https://github.com/apache/camel-kit/issues/31

   > Imported from 
[luigidemasi/camel-kit#55](https://github.com/luigidemasi/camel-kit/issues/55), 
opened by [luigidemasi](https://github.com/luigidemasi) on 2026-05-07.
   > Closed by 
[luigidemasi/camel-kit#56](https://github.com/luigidemasi/camel-kit/pull/56), 
merged on 2026-05-08.
   
   ---
   
   ## Description
   
   The Claude Code traits currently dispatch all subagents as 
`general-purpose`, ignoring Claude Code's built-in `subagent_type` parameter 
and the `model` field already defined in each agent persona's frontmatter.
   
   Claude Code supports typed subagents (`Plan`, `Explore`, `code-simplifier`, 
`general-purpose`) with different tool restrictions and behavioral framing, 
plus a `model` parameter (`opus`/`sonnet`/`haiku`). The traits should leverage 
both.
   
   ## Proposed Dispatch Map
   
   | Persona | `subagent_type` | `model` | Rationale |
   |---------|----------------|---------|-----------|
   | `integration-architect` | `Plan` | `opus` | Architectural analysis, no 
file writes needed |
   | `implementation-engineer` | `general-purpose` | `sonnet` | Code 
generation, needs Edit/Write/Bash |
   | `migration-specialist` | `Explore` (brainstorm) / `general-purpose` 
(execute) | `opus` | Read-only scanning in analysis; Write needed during 
implementation |
   | `test-engineer` | `general-purpose` | `sonnet` | Test generation, needs 
Write + NotebookEdit |
   | `spec-compliance-reviewer` | `general-purpose` | `sonnet` | Full-file 
reads for spec comparison |
   | `code-quality-reviewer` | `code-simplifier` | `opus` | 
Quality/maintainability focus; prompt overrides write behavior |
   
   ## Approach
   
   Approach A (mapping table in traits) — add the dispatch map to 
`camel-execute.append.md` and guide-level traits. Consistent with how Gemini 
traits hardcode named agents and OpenCode traits hardcode built-in types.
   
   ## Files to Change
   
   - `templates/traits/claude/camel-execute.append.md` — add dispatch map table 
+ instructions
   - `templates/traits/claude/camel-execute/implementer-context.append.md` — 
add `subagent_type` and `model` to Agent tool call instructions
   - `templates/traits/claude/camel-execute/spec-reviewer-criteria.append.md` — 
update typed dispatch (currently references `superpowers:code-reviewer`, should 
use `general-purpose` with `model: sonnet`)
   - `templates/traits/claude/camel-brainstorm.append.md` — add type mapping 
for architect/migration-specialist dispatch
   - New guide-level trait: 
`templates/traits/claude/camel-execute/quality-reviewer-criteria.append.md` — 
`code-simplifier` type + "report only" override
   
   ## Additional Context
   
   Other agents already map personas to native types: Gemini uses named agents 
(`camel-implementer`, `camel-validator`), OpenCode uses built-in types 
(`General`, `Build`, `Explore`), Bob uses modes (`camel-implement`). Claude is 
the only agent that doesn't leverage its native typed dispatch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to