Skip to content

Instantly share code, notes, and snippets.

View yanhua1010's full-sized avatar
🎯
Focusing

yanhua yanhua1010

🎯
Focusing
View GitHub Profile
@yanhua1010
yanhua1010 / AGENTS.md
Last active September 21, 2026 12:56
CLAUDE.md — 减少 LLM 常见编码错误的行为准则(含来源优先级梯子)

AGENTS.md

用于减少 LLM 常见编码错误的行为准则。可与项目特定指令合并使用。

权衡说明: 这些准则倾向于谨慎而非速度。对于琐碎的任务,请自行判断。

1. 编码前思考

不要假设。不要隐藏困惑。呈现权衡。

@yanhua1010
yanhua1010 / CLAUDE-routing.md
Last active October 9, 2026 14:36
Claude Code 工作流/子代理的模型智能分配(2026-10 版:fable/opus/sonnet/haiku + Codex/DeepSeek/Grok)

Model routing (multi-model inside Claude Code)

Main session runs on a Claude model. Delegate with the Agent tool and pick by this table (higher is better; cost = how cheap it actually is for this user, not list price).

route how cost intelligence taste use for
fable Agent model: fable 2 10 9 hardest reasoning, architecture, final review
opus Agent model: opus 4 8 8 user-facing output: UI, copy, API design (taste ≥ 7)
sonnet Agent model: sonnet 6 6 7 errands, browser/computer use, medium tasks