Alex Albert Profile picture
Nov 14 2 tweets 1 min read Read on X
We just launched structured outputs in the Claude API.

You can make sure Claude responses always match your specified JSON schemas or custom tool definitions, without retries or parsing errors. Image
Available in public beta for Claude Sonnet 4.5 and Opus 4.1 with support for Haiku 4.5 coming soon.
docs.claude.com/en/docs/build-…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Alex Albert

Alex Albert Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @alexalbert__

Nov 25
We put together a prompting guide for Claude Opus 4.5 based on extensive internal testing by our research and applied AI teams.

Here's what we've learned so far about getting the best results:
1. The new effort parameter is powerful because it controls approximately how many Claude will use for an output.

You can trade off intelligence for cost/latency with a single dial. Works on all tokens including thinking, responses, and tool calls.
2. Tool triggering rates may change. Opus 4.5 is more responsive to system prompts, so if your old prompts used aggressive language to reduce undertriggering, you may now see overtriggering.

Dial back "CRITICAL: You MUST use this tool" to just "Use this tool when..."
Read 8 tweets
Nov 24
Alongside the model, today we're launching three very useful API features for building agents that scale to hundreds of tools without context bloat.

- Tool Search Tool
- Programmatic Tool Calling
- Tool Use Examples

Here's how they work:
Tool Search Tool

Instead of loading all tool definitions upfront, Claude discovers tools on-demand. Mark tools with defer_loading: true and only pays tokens for tools Claude actually needs.

Up to an 85% token reduction and big boost in accuracy on our MCP evals (79.5% to 88.1%) Image
Programmatic Tool Calling

Claude orchestrates tools through code instead of individual round-trips. It writes Python, processes outputs in a sandbox, and controls what enters context. Image
Read 5 tweets
Oct 16
Today we're introducing Skills in claude dot ai, Claude Code, and the API.

Skills let you package specialized knowledge into reusable capabilities that Claude loads on demand as agents tackle more complex tasks.

Here's how they work and why they matter for the future of agents: Image
At a high level, the best analogy I've heard for Skills is something like Neo learning Kung Fu in seconds in the Matrix.

We're "loading in" specialized knowledge to our general agents at runtime. Image
At their core, Skills are simple. They're just a folder with a file.

The file starts with a name and description, then contains instructions, code, and resources. This simplicity means anyone can now specialize Claude without building custom agents. SKILL.mdImage
Read 10 tweets
Sep 30
We’re running a “Built with Claude Sonnet 4.5” challenge.

We want to see the coolest things you can build with 4.5 in the next week.

Four winners will receive one year of Claude Max 20x and $1k in Claude API credits. Image
We will select four winners:

“Keep Coding” Award - most technically impressive implementation

“Keep Researching” Award - most compelling exploration of a topic

“Keep Learning” Award – best educational application

“Keep Creating” Award – most artistic use-
To enter, quote post the first tweet of this thread through October 7 with what you built with Claude 4.5:

- How you built it (prompts, agents, MCP servers, workflows)
- Screenshots or demos
- Must be your own work, built with Claude Sonnet 4.5 (Claude.ai, Claude app, Claude Code, Claude Code SDK)
- We will select winners based on ingenuity, creativity, and community response.
Read 4 tweets
Jul 2
We’ve rolled out another update to Claude Code to help customize your workflows: Hooks.
Hooks are user-defined shell commands that execute at various points in Claude Code’s agent loop.

They give you deterministic control over Claude Code’s behavior to ensure certain actions always happen at certain times. Image
You can create hooks for:
- Notifications (e.g. via Slack) on prompt completions
- Logging and observability
- Custom permissions and approvals
- Running lints after every write
Read 6 tweets
Jun 26
We've simplified local MCP usage by creating something new we call Desktop Extensions (.dxt files).

These package your local server, handle dependencies, and provide secure configuration so you can one-click share and install local servers on Claude Desktop and other apps. Image
dxt's are zip archives containing the local MCP server as well as a manifest.json, which describes everything Claude Desktop and other apps supporting desktop extensions need to know.
We've included instructions on how to use and package your dxt's here: anthropic.com/engineering/de…
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(