← Hacker News

Claude Code: /effort is global across concurrent sessions instead of session

Hacker News · esher · May 5, 2026

Detailed Analysis

Claude Code's `/effort` command, designed to modulate the level of computational reasoning the model applies to a given task, exhibits an unintended behavior wherein its setting persists globally across all concurrent sessions rather than remaining scoped to the individual session in which it was configured. This means that when a developer working in one terminal window adjusts the effort level — whether dialing it up for a complex algorithmic problem or reducing it for a simpler task — that change propagates immediately to every other simultaneously running Claude Code session on the same machine or environment. The behavior contradicts the reasonable expectation that session-level commands are isolated to their originating context.

The practical consequences of this behavior are most acutely felt by developers who rely on multi-session Claude Code workflows, a use pattern that has grown as the tool has matured into a capable agentic coding assistant. A user might intentionally set a low effort level in one session to conserve tokens and speed up responses for routine file edits, while expecting a separate session handling architectural refactoring to maintain a higher effort threshold set earlier. Instead, the global propagation of the `/effort` state means any change in one window silently overrides the configuration in all others, potentially leading to degraded response quality or unexpected token consumption with no obvious indication of why the model's behavior has shifted.

This issue reflects a broader class of challenges that emerge as AI-powered developer tools evolve from single-session utilities to multi-threaded, concurrent workflow environments. State management — deciding what is global, what is session-local, and what is task-scoped — becomes a critical design consideration as tools like Claude Code are increasingly embedded into complex developer pipelines, tmux sessions, CI-adjacent workflows, and parallel agent orchestration setups. The `/effort` parameter, being tied to Claude's extended thinking feature, carries particular weight: it directly governs model reasoning depth and, by extension, both output quality and API cost, making unintended global mutation especially consequential.

Anthropic has been actively iterating on Claude Code since its initial release, and issues of this nature are consistent with the rapid development pace the team has maintained, pushing features ahead of comprehensive edge-case hardening. The bug sits at the intersection of CLI state architecture and the relatively novel concept of effort-tunable inference, a feature unique to Claude's extended thinking models that has no direct analog in many competing tools. Addressing it requires a deliberate decision about the appropriate scoping model — whether effort should be stored per-process, per-session identifier, or as an explicitly shareable global — and that decision will shape how developers reason about and compose multi-agent Claude Code workflows going forward.

The report of this behavior is emblematic of the growing pains accompanying the professionalization of agentic coding tools. As Claude Code transitions from a power-user curiosity to a production-grade development instrument, the standards for predictable, isolated, and composable session behavior rise accordingly. Developers integrating Claude Code into team workflows or automated systems depend on deterministic, scoped configurations; silent cross-session state bleed undermines that reliability and erodes trust in the tool's behavior at scale. The resolution of this issue will likely inform broader conventions around how Claude Code manages persistent versus ephemeral state across its expanding command surface.

Read original article →