Skip to content

Subagent call error: Claude Code PackyAPI

Quick fix

Retest after upgrading to 4.0.1 or later; this version fixed a parameter issue when Claude Code calls subagents through Responses conversion.

Error output
第一个问题是,让它尝试调用subagent的时候会遇到如下报错
English translation

The first issue is that when I ask it to try calling a subagent, I get the following error.

The issue involved the global proxy switch being enabled, calling subagents with GPT models through PackyAPI, and similar errors when using the Codex plugin via `/codex:rescue`. A comment noted that the subagent error persisted when using the CxtoCc API, while the Codex plugin worked normally. The maintainer said that version 4.0 rewrote local routing and model conversion; version 4.0.1 fixed tool arguments being forced to worktree isolation when Claude Code called subagents through Responses conversion. However, the screenshot details do not confirm whether this was the cause in this case.

  1. Retest subagents and `/codex:rescue` after upgrading to 4.0.1 or later. Get the installer from the official Releases page: https://github.com/farion1231/cc-switch/releases/latest.

  2. If the issue still reproduces, provide the cc-switch version, provider and protocol format, and the complete error text.

ToolClaude Code
VersionUnknown
PlatformsmacOS
Does the subagent error still occur when using the CxtoCc API?
The reporter said that the subagent error persisted when using the CxtoCc API, but the Codex plugin worked normally.
What information should I provide if the error persists after upgrading?
The maintainer suggested providing the cc-switch version, provider and protocol format, and error text.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.