Context Management
*Earlier in this chapter, [How Coding Agents Work](how-agents-work.md) showed you the agent loop: read context → plan → act → observe → repeat. The quality of that loop depends almost entirely on the "read context" step. Get context right, and agents produce remarkable work. Get it wrong, and no…
上下文管理
*本章开头的[编程智能体工作原理](how-agents-work.md)向你展示了智能体循环:读取上下文 → 规划 → 行动 → 观察 → 重复。这个循环的质量几乎完全取决于"读取上下文"这一步。上下文做对了,智能体能产出出色的工作;做错了,再多的提示词调整也无济于事。*
How Coding Agents Work
*In [Chapter 1](../01-prompt/README.md), you learned to communicate with coding agents — giving them context, writing clear prompts, and building persistent memory systems. Now, let's look under the hood: what actually happens when you press Enter?*
编程智能体的工作原理
*在 [第一章](../01-prompt/README.md) 中,你学习了如何与编程智能体沟通——向它们提供上下文、编写清晰的提示词,以及构建持久化的记忆系统。现在,让我们掀开引擎盖看看底层:当你按下回车键时,究竟发生了什么?*
Human-Agent Collaboration Modes
Coding agents do not remove engineering judgment. They amplify it. The practical skill is knowing when to explore with an agent, when to turn intent into a spec, when to let the agent execute, and when to slow down for verification.
人机协作模式:从探索到可验证交付
编程智能体不会取消工程判断。它会放大工程判断。真正重要的能力,是知道什么时候用智能体探索,什么时候把意图固化成规格,什么时候放手让它执行,以及什么时候必须慢下来验证。