How-to

Simon Willison的Fable省钱法:Claude按任务指派不同模型

Why we picked it

想省API预算又不想牺牲架构质量?试试这个:让Claude Opus/Fable做主设计,Sonnet/Haiku干苦力,自动分配任务,省心又省钱。

Simon Willison提出在Claude系统提示词中加入规则,让模型自动根据编码任务复杂程度选择不同功耗的模型。

Body

主架构设计等复杂任务使用Claude Opus或Fable,而写代码、改代码等机械任务则调用Sonnet或Haiku子代理执行。该方法通过区分判断型与执行型任务来降低API调用成本,实测可节省大量费用。

该思路同样适用于其他多模型平台。

Original · 向阳乔木

Simon Willison的 Fable 开发省钱方法(感觉也适用其他模型) 1. Claude 系统提示词加一条:对所有编码任务,你自行判断,选择一个合适低功耗模型,在子代理中运行。 2. 主循环用Opus或Fable,负责构架设计等复杂任务。 3. 让循环自主调用 Subagent 做写代码、改代码等机械任务,主要用Sonnet和Haiku模型。 区分判断型和执行型任务,判断用牛逼模型,执行用便宜模型。 原文见评论区📊 3 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude, Fable, Claude Opus, Sonnet.

Source attribution: curated from 向阳乔木 (@vista8).