llm-anthropic 0.22

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers using Simon Willison's LLM CLI can now get guaranteed-format JSON from Claude Sonnet 4.5 and Opus 4.1 without tool-call hacks.

Read this as

Simon Willison released version 0.22 of llm-anthropic, a plugin that lets his free command-line tool 'LLM' talk to Anthropic's Claude models. This update adds structured outputs, a way of forcing Claude Sonnet 4.5 and Opus 4.1 to answer in exact JSON, a machine-readable format, plus built-in web search. People who write scripts using Claude from the terminal benefit.

Willison's llm-anthropic 0.22 makes Anthropic's structured outputs feature directly usable from the command line, meaning teams building quick internal scripts or prototypes can rely on valid JSON from Claude Sonnet 4.5 and Opus 4.1. Web search can be enabled with a single option. The change matters little commercially; it is a convenience for developers already using his tooling.

llm-anthropic 0.22 exposes Anthropic's structured outputs API for Sonnet 4.5 and Opus 4.1, replacing the plugin's previous tool-call-based JSON coercion (issue #54) for those models, the workaround remains for older Anthropic models. Web search is enabled via '-o web_search 1' (issue #30), contributed by Nick Powell and Ian Langworth. uv-based isolated test recipes were added to a new Justfile.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

llm-anthropic 0.22 Claude Sonnet 4.5 Opus 4.1 LLM uv Justfile

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading