Claude Code 持久上下文 10 步公式与可直接粘贴的提示词模板
blaizedsouza · x · 2026-11-04
A thread compiles a "10-step persistent context system" for running Claude Code overnight without losing the plot, with the full formulas and a copy-paste prompt template shown in the image.
- Fix role and constraints before the run; load working memory from CLAUDE.md ⊕ progress.md ⊕ memory.md.
- Decompose the task into ≤10 ordered atomic steps; each step reads only the files it needs and is externally verified (pass/fail) before state advances.
- Write verified results and failures back to persistent state; compress repeated failures into explicit rules; summarize periodically to avoid re-reading the repo; resume long runs from saved state.
- The verbatim template uses <role>/<context>/<instructions>/<format> tags: split steps, read only needed files, verify every step, log decisions/failures/fixes to memory.md, and only declare done when verify passes and memory is updated.
The thread also promotes the author's full "Loops and Graphs" course; the template itself is freely usable.
「编程与Agent」频道最新
- MCP Visual Language 开源:用 GLM-4.5V 从截图提取分析代码 — modelcontextprotocol · 2026-11-04
- AI Design Blueprint:10 原则 16 法则的智能体设计规范 — modelcontextprotocol · 2026-11-04
- 开发者搭建免费 MCP 注册表:帮 agent 找数据源并记录付费意愿 — agentdemandregistry · 2026-11-04
- 开发者用 GPT-6.1 API 做出实时 3D 讲解助手,已开源 — OpenAIDevs · 2026-11-04
- Fennick 让 Claude 直接在本地笔记应用里替你整理页面 — thesaraharminta · 2026-11-04
- AgentTime 新发现:prompt 里写明 token 速度可提升 agent 时间预测 — maksym_andr · 2026-11-04