01 / Agent systems
Agent 探索.
从最小 Agent Loop 出发,拆解工具、Memory、Runtime、MCP、Trace 与可靠性工程。
核心机制
14 notes
01
Agent 到底是什么?
从 LLM 生成答案到闭环行动,找到“调用工具的 LLM”和 Agent 的真正分界线。
02
一个 Agent 最少需要多少代码?
从几十行循环开始,逐步加入 Memory、Retry、Timeout 与并行工具调用。
03
Agent Loop:AI 为什么能够自己行动?
沿着 Think、Act、Observe、Think 跟踪一次任务,分清模型决策和 Runtime 执行。
04
Tool Calling 到底发生了什么?
从 JSON Tool Call 一路追踪到注册表、参数校验、函数执行和结果回传。
05
Agent Runtime 到底是什么?
拆解 Tool Executor、Context、State、Session、Retry、Timeout 与 Cancellation。
06
Agent 的 Memory 到底是不是“记忆”?
辨析 History、短期与长期 Memory、Vector DB、KV Store 和 Summary Memory。
07
Context Window 为什么不是 Agent Memory?
通过长期运行任务,严格区分 Context、Memory、State 与 Knowledge。
08
Skill、Tool、MCP、CLI 到底有什么区别?
把 Skill、Tool、MCP、CLI 与 API 放进同一项任务,观察它们各自所在的层。
09
MCP 到底解决了什么问题?
从大量工具接入的重复成本出发,理解 Discovery、Schema、Transport 和资源模型。
10
Agent 为什么会调用错误的 Tool?
从一次选错工具的真实式故障,建立 Prompt 到 Runtime Mapping 的排查路径。
11
Agent 为什么需要 Trace?
解释普通日志为何不够,并设计一套可以回放 LLM 与工具调用的 Trace 结构。
12
如何设计一个可靠的 Agent Tool 系统?
围绕校验、权限、超时、重试、幂等、追踪和版本控制构建 Runtime 防线。
13
Agent 最难 Debug 的地方,为什么不是代码?
面对非确定性决策链,把调试重心从静态代码迁移到可复现的执行轨迹。
14
Agent 是不是一种新的程序?
比较 Function、Process、State、Database、Scheduler 与 Agent 系统中的对应物。
生产工程
04 notes
15
From Demo to Production: Four Reliability Pillars for Agents
A production architecture for explicit state, bounded execution, verified effects, and recovery.
16
A Practical Tool-Use Checklist
How to design tool contracts, authorization, idempotency, verification, and recovery.
17
Trace-Native Evaluation: From a Score to a Release Gate
Connect offline replay, trace diagnosis, production signals, and release gates.
18
Agent Observability: Metrics That Expose Failure
Measure verified outcomes, execution depth, token cost, latency, tools, and human control.