[BUG] code-review plugin fails with "Agent type 'haiku' not found"

Resolved 💬 4 comments Opened Mar 25, 2026 by vipuldelwadia Closed May 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The built-in code-review plugin (plugins/code-review/commands/code-review.md) instructs Claude to "Use a Haiku agent" and "Use Sonnet agents", e.g.:

"Use a Haiku agent to check if the pull request is closed..."

Claude Code's Agent tool doesn't accept model names (haiku, sonnet) as subagent_type values. Valid types are e.g. general-purpose, Explore, etc. As a result, every step that spawns a "Haiku agent" fails with:

Error: Agent type 'haiku' not found. Available agents: general-purpose, Explore, ...

What Should Happen?

Fix: Replace "Haiku agent" / "Sonnet agents" with explicit agent type + model parameter, e.g.:

Use a general-purpose agent (model: haiku) to check if the pull request...

Error Messages/Logs

Steps to Reproduce

run the skill /code-review:code-review

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.83 (Claude Code)

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗