0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Zed】エージェントパネルでClaude Codeを使用する方法

Posted at

acp-claude-codeを使用するとZedのエージェントパネルでClaude Codeを使用できます。

設定方法

settings.jsonに以下を追加します。

{
  "agent_servers": {
    "claude-code": {
      "command": "npx",
      "args": ["acp-claude-code"],
      "env": {
        "ACP_PERMISSION_MODE": "acceptEdits"
      }
    }
  }
}

権限モード

  • default - ファイル操作時に権限を確認
  • acceptEdits - ファイル編集を自動承認(推奨)
  • bypassPermissions - すべての権限をバイパス(注意)

動的切り替え

プロンプト内でマーカーを使用すると会話中に権限モードを変更できます。

[ACP:PERMISSION:ACCEPT_EDITS]
TypeScriptファイルを更新してください

その他の設定例

デバッグ有効

{
  "agent_servers": {
    "claude-code": {
      "command": "npx",
      "args": ["acp-claude-code"],
      "env": {
        "ACP_DEBUG": "true",
        "ACP_PERMISSION_MODE": "acceptEdits"
      }
    }
  }
}

pnpm使用

{
  "agent_servers": {
    "claude-code": {
      "command": "pnpx",
      "args": ["acp-claude-code"],
      "env": {
        "ACP_PERMISSION_MODE": "acceptEdits"
      }
    }
  }
}

トラブルシューティング

認証エラー

claude setup-token

デバッグログ有効化

ACP_DEBUG=true npx acp-claude-code

参考リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?