Claude Code v2.1.277 Adds AGENTS.md Support and Fixes Crash Bugs
Claude Code v2.1.277 landed with a small set of feature additions and a long list of bug fixes across sessions, tools, and gateway handling. Here's what actually changed.
AGENTS.md support
In a project with no CLAUDE.md, Claude Code now reads AGENTS.md instead. You can switch it under "Project instructions" in /config. Not yet available on Bedrock, Vertex, or Foundry.
Gateway and proxy changes
CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY=1for Claude apps gateways whose only egress is a forward proxy: every outbound request hands the proxy the hostname instead of resolving it locally.- Optional
headers:map on Claude apps gateway upstreams to send static headers to a proxy you run in front of a provider. - A line now notes that a background task's update is waiting when it finishes while a panel such as
/tasksis open.
Session and CLI fixes
claude -pand Agent SDK sessions that could hang with no result after an internal error now report the error and exit with code 1.- Conversations failing every request with "text content blocks must be non-empty" when an earlier assistant turn held an empty text block beside other content, including after
--resume. - Unexpected logout when an older Claude Code build (e.g., an IDE extension's bundled CLI) runs on the same machine as the current one.
- Interactive start-up hanging or erroring for
ANTHROPIC_API_KEYusers when~/.claude.jsonholds a malformedcustomApiKeyResponsesvalue. - Update checks erroring every 30 minutes, and
claude updatehanging when a min/max version is set, if a proxy returns an invalid version. A malformedminimumVersionis now ignored. claude updateon winget- or apk-managed installs reporting "up to date" when the version lookup failed.claude plugin installsometimes failing and breaking the installed copy when reinstalling a plugin version in use; an unchanged copy is now left alone.
Tool fixes (Grep, Glob, Write, Edit)
- Grep and Glob now return an error when the search could not start due to out of processes, memory, or file handles, instead of reporting no matches.
- Write no longer silently ends the turn as a declined permission when the target path is an existing directory.
- Edit no longer treats an escaped backslash followed by
uXXXXas a\uXXXXescape, which could rewrite an escaped backslash sequence when editing non-ASCII characters. - Edit reports "String not found in file" instead of "Invalid regular expression: regular expression too large" for very large non-ASCII edits that don't match.
- Turns no longer end early with "Path contains null bytes" when a tool call's file path contains
\u0000written as an escape sequence.
Stability fixes
- Background sessions (
claude --bg) no longer exit when a plugin's LSP server exits or closes stdin. - Crashes from malformed
claudeAiMcpEverConnected,theme, or a plain-string assistant message in saved history. - Crash ("unrecoverable interface error") when the prompt contained terminal color codes.
- Sessions on slow machines exiting when the first spinner appeared.
- Rare screen freeze after an internal rendering error.
- Windows turns stopping with "Out of memory" right after a reply, leaving tool calls unrun.
- Sessions continued after
/clear(restart,--continue,--resume) missing part of the first message when a SessionStart hook printed output, causing a full prompt-cache miss.
If you run Claude Code behind a proxy or use plugins with LSP servers, this release is worth pulling.
📖 Read the full source: GitHub Claude-Code
👀 See Also
Commodification of Intelligence: Circular AI Deals Explained
Circular financing in AI (e.g., OpenAI→Microsoft servers, Nvidia→CoreWeave) mirrors traditional commodity markets. Not a bubble, but a shift toward intelligence as a fungible commodity.

When asking Claude about regex leads to a late-night dive into compiler design
A Reddit user asked Claude to explain a regex and ended up in a 45-minute conversation about parsers, compiler design, and language theory, questioning their career.
Claude Code v2.1.140 Fixes Agent Tool Matching, /goal Hangs, Windows Event-Loop Stall
v2.1.140 improves Agent tool subagent_type matching to be case- and separator-insensitive, fixes /goal hanging with disableAllHooks, resolves Windows event-loop stall from missing executables, and more.

OpenClaw user reports 143M tokens processed for $94 via OpenRouter
A Reddit user running OpenClaw multi-agent pipelines processed 143 million tokens for $94.16, achieving a cost of approximately $0.66 per million tokens by routing through OpenRouter and implementing specific configuration optimizations.