◉CLAUDE LABJP
●2.1.296 — Subagents can set their own autoCompactWindow, and an env var pins the model used by workflow agents●AGENTS — Managed Agents gain dynamic workflows in beta: an agent can build a run for work with many pieces (Oct 9)●SONNET 4.5 — Retires on the Claude API on 11/30, 50 days left. Migrate to Sonnet 5.5●Q&A — A long-running report: Max plan users hit usage limits almost immediately●HAIKU 5.5 — Code written for Haiku 4.5 hits a 400 error on budget_tokens●NEW — Before you cut an always-loaded instruction file in half, sort it into three drawers●2.1.296 — Subagents can set their own autoCompactWindow, and an env var pins the model used by workflow agents●AGENTS — Managed Agents gain dynamic workflows in beta: an agent can build a run for work with many pieces (Oct 9)●SONNET 4.5 — Retires on the Claude API on 11/30, 50 days left. Migrate to Sonnet 5.5●Q&A — A long-running report: Max plan users hit usage limits almost immediately●HAIKU 5.5 — Code written for Haiku 4.5 hits a 400 error on budget_tokens●NEW — Before you cut an always-loaded instruction file in half, sort it into three drawers
TAG

json

4 articles
← Back to all tags
Related:
structured-output2troubleshooting2claude-api1production1Claude API1streaming1tool use1claude-code1github-actions1automation1headless1api1
⬡ API & SDK/2026-05-10Advanced

Bulletproof JSON Output with Claude API Prefill: A Four-Layer Defense Pattern from Indie SaaS

How I went from late-night JSON parse failures to a 99.98% parse success rate across thousands of monthly Claude API requests, and what a 1,081-sample truncation benchmark revealed about the repair code I had originally published here.

⬡ API & SDK/2026-05-28Intermediate

Why JSON.parse Fails on Claude API Streaming tool_use Arguments — and How to Fix It

When you stream a Claude API response with tool_use, calling JSON.parse on each input_json_delta throws SyntaxError. Here is the correct way to assemble partial_json fragments, plus disconnect handling.

⟐ Claude Code/2026-04-25Intermediate

Automating CI/CD Pipelines with Claude Code's --print and --output-format json

A practical guide to using Claude Code's --print flag and --output-format json in CI/CD pipelines. Covers automated code review in GitHub Actions, PR comment generation, and test failure analysis — with working code throughout.

⬡ API & SDK/2026-04-16Intermediate

Claude API JSON Output Fails: 5 Root Causes and Fixes

Fix Claude API JSON parsing errors with these 5 common root causes: markdown code block wrapping, truncated output, injected commentary, Unicode escaping, and streaming parse failures. Includes copy-paste ready Python utility code.