code-simplifier plugin API error: AnthropicLogic模型信息关系不存在

Resolved 💬 2 comments Opened Jan 14, 2026 by Chaos2020 Closed Feb 26, 2026

Description

The code-simplifier plugin fails with an API error when invoked using the Task tool.

Steps to Reproduce

  1. Enable the code-simplifier plugin in .claude/settings.local.json:

``json
"enabledPlugins": {
"code-simplifier@claude-plugins-official": true,
...
}
``

  1. Invoke the plugin using the Task tool:

``python
Task(
subagent_type="code-simplifier:code-simplifier",
description="简化 SDR/cli.py 代码",
prompt="请简化 SDR/cli.py 的代码..."
)
``

  1. Error occurs immediately after initialization.

Error Message

code-simplifier(简化 SDR/cli.py 代码)
  ⎿  Initializing…
  ⎿  Error: API Error: 400 AnthropicLogic模型信息关系不存在
agentId: a2ddcbc (for resuming to continue this agent's work if needed)

First Attempt Error:

Error: Agent type 'code-simplifier' not found.
Available agents: Bash, general-purpose, statusline-setup, Explore, Plan,
claude-code-guide, code-simplifier:code-simplifier

Note: This was resolved by using the correct name code-simplifier:code-simplifier

Environment

  • Claude Code Version: 2.1.7
  • Operating System: Linux 6.14.0-36-generic
  • Plugin Name: code-simplifier@claude-plugins-official
  • Plugin Enabled: Yes

Configuration

.claude/settings.local.json (relevant section):

{
  "enabledPlugins": {
    "example-skills@anthropic-agent-skills": true,
    "code-simplifier@claude-plugins-official": true,
    "code-review@claude-plugins-official": true,
    "planning-with-files@planning-with-files": true,
    "typescript-lsp@claude-plugins-official": true,
    "asana@claude-plugins-official": true
  },
  "enableAllProjectMcpServers": true
}

Expected Behavior

The code-simplifier plugin should initialize successfully and begin analyzing the specified file for simplification opportunities.

Actual Behavior

The plugin fails immediately with a 400 API error mentioning "AnthropicLogic模型信息关系不存在" (Chinese error message suggesting "Anthropic Logic model information relationship does not exist").

Additional Context

  • The error message contains Chinese text, which may indicate a localization or backend configuration issue
  • Other plugins (e.g., example-skills, code-review) appear to work normally
  • The error occurs before any code analysis begins, suggesting an initialization/configuration problem on the backend

Workaround

Currently using manual code analysis as a temporary workaround while this issue is resolved.

Request

Please investigate the backend API configuration for the code-simplifier plugin. The error suggests a missing model configuration or relationship mapping in the backend service.

View original on GitHub ↗

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