[BUG] Agent Teams do not spawn using CLAUDE_CONFIG_DIR of current claude agent

Resolved 💬 3 comments Opened Feb 6, 2026 by yashness Closed Feb 10, 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?

When spawning team of agents, claude must respect the config dir using CLAUDE_CONFIG_DIR environment. Else it doesn't share the task list & fails.

e.g.

cd ~/agent-teams-test && CLAUDECODE=1 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 ~.local/share/claude/versions/2.1.34 --agent-id researcher\@grpc-video-team --agent-name researcher --team-name grpc-video-team --agent-color purple --parent-session-id 30e2c71d-3c7f-42af-850a-8904333447cd --agent-type general-purpose --dangerously-skip-permissions --model claude-opus-4-6

Was the agent spawned. It should have added CLAUDE_CONFIG_DIR=~/.claude-enterprise.

What Should Happen?

When spawning team of agents, claude must respect the config dir using CLAUDE_CONFIG_DIR environment. Else it doesn't share the task list & fails.

e.g.

cd ~/agent-teams-test && CLAUDECODE=1 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 ~.local/share/claude/versions/2.1.34 --agent-id researcher\@grpc-video-team --agent-name researcher --team-name grpc-video-team --agent-color purple --parent-session-id 30e2c71d-3c7f-42af-850a-8904333447cd --agent-type general-purpose --dangerously-skip-permissions --model claude-opus-4-6

Was the agent spawned. It should have added CLAUDE_CONFIG_DIR=~/.claude-enterprise.

Error Messages/Logs

Steps to Reproduce

Spawn multiple agents for a given task by saying "Employ team of agents".

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.34

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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