Start Debugging

ai-agents

288 posts · Page 2 of 29

2026-11-25 ai-agentsllmcodex

How to Run Codex CLI Against Google Cloud Vertex AI with model_provider = "gcp"

Codex CLI 0.165.0 added a built-in gcp provider that sends Responses API traffic to Vertex AI and bills your Google Cloud project. How to set it up in ~/.codex/config.toml, authenticate with ADC or a credential file, pick a model the provider actually exposes, run it headless in CI, and avoid the gotchas: project-local config is ignored, the global location, the missing hosted tools, and the background models memories need. Codex CLI 0.167.0+.

How to Cut claude -p Input Tokens When claude.ai Connectors Add Hundreds of Thousands of Tokens to Every Headless Call

On a claude.ai subscription login, every connector on your account rides along into each claude -p call. With tool search on, that costs a few thousand tokens. Pass --tools without ToolSearch and the full definitions load upfront: one reported health check went from 2,854 to 429,388 input tokens. How to drop the connectors with ENABLE_CLAUDEAI_MCP_SERVERS=false, disableClaudeAiConnectors or --strict-mcp-config, keep the MCP servers you need, and add a token ceiling so the next auto-loaded feature cannot silently come back. Claude Code 2.1.331.

How to Keep Secrets Out of .claude/settings.local.json When "Don't Ask Again" Saves a Token as an Allow Rule

Choosing "Yes, and don't ask again" on a Bash command with an inline token used to write that token into .claude/settings.local.json as an allow rule. What Claude Code 2.1.323 changed, how to find and clean rules that already hold a credential, how to tell if the file is tracked by git, and a tested PreToolUse hook that stops Claude from inlining tokens in the first place.

How to Subscribe to Claude API Organization Webhooks

Register an HTTPS endpoint with POST /v1/organizations/webhooks and the anthropic-beta: webhooks-2026-10-07 header, store the whsec_ signing secret from the create response, verify deliveries with client.beta.webhooks.unwrap(), answer 2xx within 5 seconds, dedupe on webhook-id and poll to catch up on dropped events. Covers the five event types, which ones are actually delivered today, the 32-endpoint limit, secret rotation and the 404s you get when the beta is not on. Receiver checked against anthropic 2.12.0 and standardwebhooks 1.3.0.

How to Let Sandboxed Bash Run Without Permission Prompts in Claude Code With sandbox.autoAllowBashIfSandboxed

Claude Code 2.1.324/2.1.325 flipped sandbox.autoAllowBashIfSandboxed to false, so sandboxed Bash commands prompt again. How to turn auto-allow mode back on with /sandbox or settings.json, what still prompts (deny and content-scoped ask rules, critical rm paths, env-prefix forms, plan mode, unknown hosts), how to keep the sandbox strict enough to trust, and how to pin the setting for an organization.

How to Turn On Code Mode in Claude Code With CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 (and Block It Org-Wide)

Code Mode, added in Claude Code v2.1.323, lets Claude write JavaScript that calls Bash, Edit and MCP tools in one step through a tool named REPL. How to turn it on in your shell or ~/.claude/settings.json, why project settings cannot, how to block it for an organization with a managed-settings env value of 0, what the requirements are, how permission rules and PreToolUse hooks see calls made from code, and the resume and hook gotchas.
Prev Next