Claude Code v2.1.77 — 1 New Environment Variable: Cowork Memory & 25 Bug Fixes#
Published on March 17, 2026
Part of the Claude Code Version Tracker series. | Official Changelog
Claude Code v2.1.77 adds 1 new environment variable and renames /fork to /branch compared to v2.1.76. But the headline story is stability: this release ships over 25 bug fixes spanning terminal rendering, tmux compatibility, teammate sessions, and memory management — the largest single-version fix count we've tracked in this series.
What Changed#
| v2.1.76 | v2.1.77 | |
|---|---|---|
| Environment variables | 179 | 180 (+1) |
| Model IDs | 16 | 16 (no change) |
| Feature gates | 41 | 41 (no change) |
| Dynamic configs | 29 | 29 (no change) |
| Slash commands | 22 | 22 (+1 via changelog)[1] |
New Environment Variable (1)#
| Variable | Likely Purpose |
|---|---|
CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES | Injects additional memory guidelines into cowork (teammate) sessions. In multi-agent "cowork" mode — where a leader spawns teammate Claude sessions in split panes — each teammate maintains its own memory context. This variable likely lets users or orchestration scripts supply extra directives that supplement the default cowork memory, such as project-specific constraints or coding standards that should apply across all teammates. The changelog confirms multiple teammate fixes in this release, including panes not closing when the leader exits and iTerm2 detection for native split-pane teammates, suggesting active development of the cowork subsystem. |
New Slash Command (1)#
| Command | What It Does |
|---|---|
/branch | Creates a new conversation branch from the current point in the session.[1] This is a rename of the former /fork command, which still works as an alias. The name change aligns the terminology with git conventions — "branching" a conversation is conceptually closer to git branch than "forking," especially since the original session continues alongside the branch. The /copy command also gained an optional index parameter in this release: /copy N copies the Nth-latest assistant response. |
What These Tell Us#
The cowork architecture is getting serious infrastructure. CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES joins the existing CLAUDE_COWORK_MEMORY_PATH_OVERRIDE and CLAUDE_CODE_IS_COWORK variables, forming a three-variable surface for controlling multi-agent sessions. The distinction matters: PATH_OVERRIDE controls where memory lives, IS_COWORK signals that you're in cowork mode, and now EXTRA_GUIDELINES controls what additional instructions each agent receives. This layered approach suggests Anthropic is building cowork as a platform feature, not just a UI convenience. The five teammate-related bug fixes in this release — including worktree crash races, pane lifecycle management, and IDE auto-connection in tmux — confirm that cowork is being tested under real production conditions and hardened accordingly.
This is a stabilization release. With 25+ bug fixes and only one new environment variable, v2.1.77 follows the classic "feature release → stabilization release" cadence. The fixes are impressively deep: memory growth from progress messages surviving compaction, a race condition between memory-extraction writes and transcript loading on --resume, overlapping binary downloads from the auto-updater accumulating gigabytes of memory, and cost tracking failing when the API falls back to non-streaming mode. These aren't surface-level patches — they're the kind of fixes that come from running the tool at scale and instrumenting failure modes carefully.
Terminal compatibility is a first-class concern. Seven fixes in this release target terminal-specific behavior: CJK character rendering, tmux clipboard and background colors, iTerm2 session crashes, vim mode keybindings, hyperlink double-opening in xterm.js terminals, and ordered list rendering. This breadth signals that Claude Code's user base has expanded well beyond the "macOS + default Terminal.app" profile into diverse terminal environments including tmux-over-SSH setups and IDE-embedded terminals. The 60ms faster startup on macOS from parallelizing keychain reads is a nice bonus that shows attention to the critical path.
Sources#
[1] Claude Code CHANGELOG.md — The /branch command and /copy N enhancement appear in the official changelog for v2.1.77 but were not captured by our binary string extraction. /branch is a rename of /fork which still works as an alias.
This analysis is conducted for independent security research and interoperability purposes under fair use principles. All trademarks belong to their respective owners. The information presented here documents publicly observable behavior of installed software and is not intended to circumvent any technological protection measures, infringe on intellectual property rights, or encourage unauthorized use. Use these findings at your own discretion.
Related Versions#
- Claude Code v2.1.76 — 3 New Environment Variables — MCP elicitation, workspace host paths
- Claude Code v2.1.75 — 2 New Environment Variables — auto-compact window, plugin options
- Claude Code v2.1.74 — 2 New Environment Variables — frame timing diagnostics, session-end hook timeouts
- Claude Code v2.1.73 — Slash Commands Inventory — first baseline of built-in slash commands
- Claude Code v2.1.72 — 6 New Environment Variables — brief mode, cron control, two-stage classifier
Related: Context Window Management Guide | Claude Code Productivity Tips | The Agentic Engineering Playbook