Source Intelligence
Sweep 28 Aug 2026 · 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.250 Next v2.1.251 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

50 pages for decode.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.

content-moderation Claude Developer Platform · in the page about-claude/use-case-guides/content-moderation …pt]], ); // Parse the JSON response from Claude. The SDK decodes each content block // into its concrete class, so find the TextBlock before reading the text. $textBlock = arr… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …parsed = json.loads(raw_input) except json.JSONDecodeError: # The accumulated string is not guaranteed to be valid JSON. # See "Handl… Admin Claude Developer Platform · in the page api/admin …ken from previous response's `next_page` field. #### Returns - `ClaudeCodeUsageReport object` - `data: array of object` List of Claude Code usage records for the requested date. - `acto… Usage Report Claude Developer Platform · in the page api/admin/usage_report …oken from previous response's `next_page` field. ### Returns - `ClaudeCodeUsageReport object` - `data: array of object` List of Claude Code usage records for the requested date. - `acto… Get Claude Code Usage Report Claude Developer Platform · in the page api/admin/usage_report/retrieve_claude_code …token from previous response's `next_page` field. ## Returns - `ClaudeCodeUsageReport object` - `data: array of object` List of Claude Code usage records for the requested date. - `acto… citations Claude Developer Platform · in the page build-with-claude/citations …pathlib.Path("/path/to/document.pdf").read_bytes() ).decode() response = client.messages.create( model="claude-opus-5", max_tokens=1024, messages=… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …> json_encode(...) |> (fn (string $json): array => json_decode($json, associative: true)); $lastIndex = array_key_last($echoed); if ($lastIndex !== null && $echoed[$l… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …r !== '' && $blocks[$index] instanceof ToolUseBlock) { $decoded = json_decode($buffer, true); $blocks[$index] = $blocks[$index]->withInput(is_array($decoded) ? $decoded : [… pdf-support Claude Developer Platform · in the page build-with-claude/pdf-support …4encode( httpx2.get(pdf_url, follow_redirects=True).content ).decode("utf-8") # Alternative: Load from a local file # with open("document.pdf", "rb") as f: # pdf_data = base64.stand… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …`OutputConfig::with()`. This path skips the `parsedOutput()` helper; decode the response with `json_decode()`: ```php use Anthropic\Messages\OutputConfig; use Anthropic\Messages\JS… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") client = anthropic.Anthropic() response = client.messages.count_tokens( model="claude-opus-5", m… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") message = anthropic.Anthropic().messages.create( model="claude-opus-5", max_tokens=1024, mess… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") message = anthropic.Anthropic().messages.create( model="claude-opus-5", max_tokens=1024, mess… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …-runtime` path). Importing the `bedrock` package globally registers a decoder for `application/vnd.amazon.eventstream` with the SDK's streaming layer (through package `init()`). This applies whether y… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …23" ``` **Cause:** The `after_id` or `before_id` cursor could not be decoded as an opaque cursor or parsed as an activity ID. **Fix:** Treat pagination cursors as opaque strings. Always copy the `fi… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …body exactly as received, before any JSON parsing or re-encoding. * **Decode the secret with a standard base64 decoder.** The signing secret is the value after the `whsec_` prefix, encoded with the st… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …second user-assigned identity is attached. </Step> <Step title="Decode a sample token"> Request a token from the endpoint and decode its payload to confirm the claims your federation rule ne… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …/manage-claude/wif-providers/gcp#acquire-and-use-the-token). The decoded token payload looks like this: ```json { "iss": "https://accounts.google.com", "aud": "https://api.an… github-actions Claude Developer Platform · in the page manage-claude/wif-providers/github-actions …hropic.com'); fs.writeFileSync('/tmp/gha-jwt', token); ``` The decoded token carries claims that describe the workflow run. Your federation rule matches against these: ```json { "iss": "http… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …AccessToken string `json:"access_token"` } if err := json.NewDecoder(resp.Body).Decode(&body); err != nil { return "", err } return body.AccessToken, nil } func main() { cli… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …lementation, fetch a JWT-SVID with its CLI or Workload API client and decode the payload the same way. <Note> The Workload API attests the calling process. For a Kubernetes registration entry, run… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …-------------------------------------- | | `claims` | map | The full decoded JWT claim set. Nested objects are accessible as nested maps. | Example: ```text wrap claims.sub.startsWith("repo:acme-co… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …try: event = client.beta.webhooks.unwrap(raw.decode(), headers=headers) except standardwebhooks.WebhookVerificationError: return {"error": "sig… claude-fable-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5 …ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing… claude-opus-4-8 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-8 …ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing… claude-opus-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-5 …ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing… Set up Claude Code for your organization Claude Code CLI · in the page admin-setup …ll | | plist / registry policy | macOS: `com.anthropic.claudecode` plist<br />Windows: `HKLM\SOFTWARE\Policies\ClaudeCode`… Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …"image", "data": base64.b64encode(response.content).decode( "ascii" ), # Base64-encode the raw bytes "mimeType": response.h… Migrate to Claude Agent SDK Claude Code CLI · in the page agent-sdk/migration-guide …``python theme={null} # Before from claude_code_sdk import query, ClaudeCodeOptions # After from claude_agent_sdk import query, ClaudeAgentOptions ``` **4. Review [breaking changes](#breaking-change… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …s` or `max_budget_usd`, it reports an `error_*` subtype. ### `CLIJSONDecodeError` Raised when JSON parsing fails. ```python theme={null} class CLIJSONDecodeError(ClaudeSDKError): def __init__(s… Quickstart Claude Code CLI · in the page agent-sdk/quickstart …Code natively](/docs/en/setup#install-claude-code) and set `pathToClaudeCodeExecutable` to its path. </Note> </Step> <Step title="Set your API key"> Get an API key from the [Claude Consol… Streaming Input Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …g", "rb") as f: image_data = base64.b64encode(f.read()).decode() yield { "type": "user", "message": { "role": "user",… Track todos Claude Code CLI · in the page agent-sdk/todo-tracking …rough the Claude Code binary that it bundles. If you point `pathToClaudeCodeExecutable` (TypeScript) or `cli_path` (Python) at your own Claude Code install, you get whichever tools that install provid… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …throws `Native CLI binary for <platform> not found`; set [`pathToClaudeCodeExecutable`](#options) to a separately installed `claude` binary instead. If your package manager doesn't apply npm's `li… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …ram left in win32-input-mode. Before this release, Claude Code didn't decode the key records such a tab sends.… Claude Code on Amazon Bedrock Claude Code CLI · in the page amazon-bedrock …se arrives with a missing or empty `Content-Type` header, Claude Code decodes the body as the binary event-stream format. Amazon Bedrock always sends the header, so a missing header means an intermedi… Claude Code changelog Claude Code CLI · in the page changelog …options: `extract` and `onExtractNoMatch` for structured env values, `decode: "jwt"` with `maskClaims` for JWT-aware masking, and `awsPairs`/`sigv4` for AWS SigV4 re-signing; these need `network.tlsTe… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …--------------- | | macOS | `/Library/Application Support/ClaudeCode/managed-settings.json`, or the `com.anthropic.claudecode` managed preferences domain | | Linux and WSL | `/etc/claude-code/… Claude Code on Claude Platform on AWS Claude Code CLI · in the page claude-platform-on-aws …s=([^;]+)/); if (prefsMatch) { try { if (JSON.parse(decodeURIComponent(prefsMatch[1])).analytics !== true) { return { variant: 'control', track: fal… Launch sessions from links Claude Code CLI · in the page deep-links …our local clone of `acme/payments`, and fills the prompt box with the decoded text: ```text theme={null} Investigate the failed deploy of payments-api. Check recent commits to main and the last succe… Environment variables Claude Code CLI · in the page env-vars …| | `CLAUDECODE` | Set to `1` in subprocesses Claude Code spawns (Bash and PowerShell tools, tmu… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …teway variables for the [VS Code extension](/docs/en/vs-code) in `claudeCode.environmentVariables`, in VS Code's own user settings opened with the **Preferences: Open User Settings (JSON)** command. T… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …--------------- | | macOS | `/Library/Application Support/ClaudeCode/managed-mcp.json` | | Linux and WSL | `/etc/claude-code/managed-mcp.json` | | Windows | `C:\Pr… Deploy managed settings Claude Code CLI · in the page managed-settings …es on your fleet: * **macOS**: `/Library/Application Support/ClaudeCode/managed-settings.json` * **Linux and WSL**: `/etc/claude-code/managed-settings.json` * **Windows**: `C:\Program Fil… How Claude remembers your project Claude Code CLI · in the page memory …**Managed policy** | • macOS: `/Library/Application Support/ClaudeCode/CLAUDE.md`<br />• Linux and WSL: `/etc/claude-code/CLAUDE.md`<br />• Windows: `C:\Program Files\ClaudeCode\CLAUDE.md` | Org… Overview Claude Code CLI · in the page overview …```powershell theme={null} winget install Anthropic.ClaudeCode ``` <Info> WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` pe… Choose a permission mode Claude Code CLI · in the page permission-modes …efault**: to pin the permission mode conversations start in, set `claudeCode.initialPermissionMode` in your VS Code user settings to `default`, `manual`, `acceptEdits`, `plan`, or `bypassPermissions`.… Recommend your plugin from your CLI Claude Code CLI · in the page plugin-hints …cs/en/discover-plugins). ## How it works Claude Code sets the [`CLAUDECODE`](/docs/en/env-vars) environment variable to `1` for every command it runs through the Bash and PowerShell tools, and for [… Quickstart Claude Code CLI · in the page quickstart …Get"> ```powershell theme={null} winget install Anthropic.ClaudeCode ``` <Info> WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically t… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …ox * `error` stops sandbox setup until you fix the configuration * `decode: "jwt"`: for a variable holding a JSON Web Token (JWT). Claude Code verifies the value is a JWT and replaces it with a stru…