Skills
Claude Code 2.1.243 hardens hook `if` conditions, --agents validation, and MCP reconnection in headless sessions
Three fixes in this release change behavior anyone running Claude Code non-interactively should re-check. Hook `if` conditions like `Bash(cat *)` were firing on unrelated Bash commands whenever the command contained `$()` or backticks followed by more arguments, so existing hook allowlists may have been matching more than intended; `--agents` now exits with a clear error on invalid JSON or invalid agent definitions instead of silently ignoring them; and remote MCP servers in `-p` and SDK sessions now reconnect or report as failed rather than never recovering from a dropped connection.
↳ Follow the thread