Model chooser / Automate multi-step work with an agent / Recurring
A production agent has to finish reliably, at a cost you can budget, without a human watching. Opus 5 sits two points behind the leaders on intelligence at half Fable's price, and Anthropic's Managed Agents can run it on a schedule with the sandbox hosted for you.
Why Claude Opus 5
How to use it
Claude API, TypeScript (tool loop)
Edit the parts in capitals, then run it.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
const tools: Anthropic.Tool[] = [/* YOUR TOOLS: name, description, input_schema */];
const messages: Anthropic.MessageParam[] = [{ role: "user", content: "GOAL AND DEFINITION OF DONE" }];
while (true) {
const res = await client.messages.create({
model: "claude-opus-5",
max_tokens: 16000,
output_config: { effort: "high" },
tools,
messages,
});
messages.push({ role: "assistant", content: res.content });
if (res.stop_reason !== "tool_use") break;
const results: Anthropic.ToolResultBlockParam[] = [];
for (const block of res.content) {
if (block.type !== "tool_use") continue;
const output = await runTool(block.name, block.input); // YOUR CODE
results.push({ type: "tool_result", tool_use_id: block.id, content: JSON.stringify(output) });
}
messages.push({ role: "user", content: results }); // all results in one message
}
Alternatives that also work
Pick it when your stack is on OpenAI and cost matters more than the top score. Sol is OpenAI's flagship for professional work at a medium cost tier.
Pick it when the agent must run on your own GPUs. It posts the best open-weight Terminal-Bench 3.0 score on its model card.
Pick it when the steps are simple lookups and edits. It also works well as the worker under an Opus 5 lead.
Watch out for
Sources
Checked . Models change monthly; we re-check this page when they do.
Wiring it into a workflow that runs every week, with evals, fallbacks and a cost you can predict, is the work. Fifteen minutes, no deck.