Logging what matters
Goal: keep a light record of agent runs so you can debug and improve without drowning in chat logs.
Best for: repeat agent jobs (weekly research, filing, drafts).
If you cannot answer “what did it do last Tuesday?”, you do not have an agent—you have a mystery. Log the few fields that support undo and learning. You do not need enterprise observability. A simple run log works: date, goal, tools used, approvals you gave, result link, what broke. Feed patterns into failure modes and only then consider scheduling.
Why beginners skip this
Saving whole chat dumps feels thorough until you cannot find why last night’s run failed. One line beats a novel: Done? failure type? next action?
Habit this week (Asia/Shanghai): log three real runs with those three columns only—date the third line.
Step 1 — Make a run log template
One row per run in a sheet or markdown table.
Create a beginner agent run-log table with columns Date, Goal, Tools, Approvals, Result link, Issues, Next fix.
Add one sample row for a weekly competitor brief.
Example
Filled prompt
Run: MCP Drive search timed out; Done unmet; failure=timeout; next=smaller query + checklist.
ONE table row only. No transcript.
What good output looks like
- Done boxes for “keep a light record of agent runs so you can debug” are explicit and checkable
- Allow-list tools only; never-do lines honored
- Stops before send/delete without human gate
- Pass/fail: Plan→Act one→Check visible for agents-logging-what-matters
Step 2 — Log approvals, not every token
Write what you allowed (e.g. “create file in sandbox”). Skip pasting full chats—your future self will not read novels.
Summarize this chat into one run-log row:
[paste abbreviated]
Focus on approvals and outcomes.
Example
Filled prompt
After today's research-agent run: goal was competitor link pack; Done partly met; failure mode = hallucinated-URL; next change = require openable links only.
Add ONE table row (date, job, Done met?, failure mode, next change). Do not paste the chat.
What good output looks like
- Allow-list tools only; never-do lines honored
- Stops before send/delete without human gate
- Pass/fail: Plan→Act one→Check visible for agents-logging-what-matters
- Done boxes for “keep a light record of agent runs so you can debug” are explicit and checkable
Step 3 — Review weekly for patterns
Same failure twice → fix skill/instructions. Same success → keep. Ten minutes beats guessing.
From these 5 run-log rows, list patterns and 3 instruction changes:
[paste rows]
Do not suggest “log more” as the only fix.
Example
Filled prompt
Run: coding-agent on auth bug; Done met = yes; failure mode = none; next change = keep boundary card pinned.
Add ONE table row only. Five columns. No transcript.
What good output looks like
- Exactly one table row, five columns
- Failure mode is a single clear label (not a paragraph)
- Next change is concrete and testable this week
- No pasted transcript
Five fields beat forty
Date, Goal, Tools, Approvals, Result link. Everything else is optional until an incident asks for it.
Do not bookmark-only
Finish Practice now, then tick this guide on your path. Titles unread are not skills.
Close the loop
After Practice now, write one line: what you will refuse next time. That line is the habit.
Check the unknown path
What should the model do when a field is missing—null, TBD, or ask you? Write it once in Boundaries.
Red flag
Full chat dump as the only log; missing approval field; secrets or customer raw text in the log—redact and rewrite the template.
Save this card
Card: one line per run — Done? · failure type · next action. Whole-chat dumps are not logs.
1. What I shipped: ___ 2. What I refused: ___ 3. What I will never-do again: ___ (date: Asia/Shanghai)
- [ ] Tools/writes paused
- [ ] Refuse-line dated
- [ ] Artifact path saved
- [ ] Next link chosen (or stop)
Before you start
Write Done (checkboxes) and the human gate on paper before any run for “keep a light record of agent runs so you.” Allow-list tools; leave send/delete off. Guide: agents-logging-what-matters. If you only have a blank practice box, stop and fetch the real job first.
- Goal in one line: ___
- Allowed tools: ___
- Forbidden: ___
- Human approve needed for: ___
How to use this week
Create a five-column table: date · job · Done met? · failure mode · next change. After each agent-ish run this week, add one row within five minutes. on a live artifact—not a blank demo. Write one refuse-line and date the note (Asia/Shanghai). If you only skimmed agents-logging-what-matters, put 25 minutes on the calendar and redo once.
Pitfalls
| Pitfall | Fix |
|---|---|
| Saving every raw transcript forever | Summarize into rows |
| No result link | Store output path or doc URL |
| Never reviewing the log | Weekly 10 minutes on calendar |
| Logging secrets in the Issues field | Redact; link to private vault if needed |
Example
Filled prompt
Temptation: skip the habit for agents-logging-what-matters to “save five minutes.”
Job still: keep a light record of agent runs so you
Do the smallest correct pass: Done visible · one checkable artifact · Unknowns labeled [?].
Boundaries: draft only; no silent send; no invented metrics.
Return: the artifact + the refuse-line you said aloud.
What good output looks like
- Names the shortcut you refused (specific to agents-logging-what-matters)
- Still delivers a checkable artifact for “keep a light record of agent runs so you”
- Unknowns labeled; draft-only respected
- Pass/fail: refuse-line written and dated (agents-logging-what-matters #4)
Practice now
Live card: run one agent checklist item on a real job for “Logging what matters”—artifact path on Save (Asia/Shanghai).
Today: fill a five-field run log (goal, approval, action, result, next) for one real agent run. Skip pasting the whole transcript. Date it (Asia/Shanghai).
Today card (copy) — agents-logging-what-matters: 1. Artifact I will produce: ___ 2. Pass/fail check: ___ 3. Refuse-line if tempted to skip verify/send: ___ (date: Asia/Shanghai) 4. One never-do from this guide: ___
- [ ] Artifact path written
- [ ] Refuse example would say "yes"
- [ ] Dated Asia/Shanghai
One sentence takeaway
Log Done / failure type / next action—one line per run, not whole chats. This week: three dated log lines from live runs (Asia/Shanghai).
Next
Failures · Scheduled runs · Team playbook · Plan → act → check · Human-in-the-loop checkpoints
Pair with today: open the first Next link (agents-failure-modes-and-retries) only after you dated a refuse-line for this guide (Asia/Shanghai).
记真正有用的日志
目标: 轻量记录智能体运行,方便排查和改进,又不必淹没在整段聊天里。
适合: 重复性任务(每周研究、归档、起草)。
若答不出「上周二它干了什么」,你拥有的不是智能体,是一团迷雾。只记能支持撤销与学习的字段。不必上企业级可观测性。一张运行表就够:日期、目标、用过的工具、你批过什么、结果链接、哪里坏了。把规律喂给失败模式,再考虑定时。
为什么新手跳过
整段聊天当日志很「全」,却找不到昨晚失败的原因。一行就够:Done 是否达成、失败类型、下一步动作。
本周习惯(Asia/Shanghai):用这三栏记满三次真实运行,并给第三条写上日期。
步骤 1——做运行日志模板
每次一行,表格或 Markdown 表均可。
做一张入门级智能体运行日志表,列:日期、目标、工具、批准事项、结果链接、问题、下一步改法。
加一行「每周竞品简报」样例。
实例
填好的提示词
场景:真实工作(打开活材料)。
运行日志表+样例行:2026-10-13,每周竞品简报,只读网页,Done=部分,失败=幻觉链接,下一步=只要可打开链接。
只返回表头+这一行。别贴整段聊天。
约束:不编造事实;发送/删除前停下;未知处标「未知」。
像样的输出大概长这样
- 列名好扫
- 样例像真的
- 有「问题」列
- 贴合这个填例——不是空泛打气
- 相关则拒绝编造事实或静默发送
步骤 2——记批准,不记每个字
写你允许了什么(如「在沙箱创建文件」)。不要整段粘贴聊天——未来的你不会读小说。
把这段聊天收成一行运行日志:
[粘贴精简版]
重点写批准与结果。
实例
填好的提示词
今天研究 agent 运行后:目标是竞品链接包;Done 部分达成;失败类型=幻觉 URL;下一步=只要可打开链接。
只加表的一行(日期、工作、Done?、失败类型、下一步)。别贴转写。
像样的输出大概长这样
- 一行
- 批准清楚(摘要可以,邮件不行)
- 不是长篇
- 贴合这个填例——不是空泛打气
- 相关则拒绝编造事实或静默发送
步骤 3——每周回顾找规律
同一失败出现两次 → 改 skill/说明。同一成功 → 保留。十分钟,好过瞎猜。
根据这 5 行运行日志,列出规律与 3 条说明改动:
[粘贴行]
不要把「多记日志」当成唯一改法。
实例
填好的提示词
场景:真实工作(打开活材料)。
运行:auth bug 上的编程 agent;Done 达成=是;失败类型=无;下一步:边界卡继续置顶。
只加一行五列。别贴转写。
约束:不编造事实;发送/删除前停下;未知处标「未知」。
像样的输出大概长这样
- 点名重复失败
- 改动具体(路径、范围、每次询问)
- 不只是「多记点日志」
- 贴合这个填例——不是空泛打气
- 相关则拒绝编造事实或静默发送
五字段胜过四十
日期、目标、工具、批准、结果链接。其余都可选,直到事故需要。
不要只收藏
做完「现在就练一次」,再在路径上打勾。没练过的标题不是技能。
闭环
「现在就练一次」后写一行:下次你要拒绝什么。那一行才是习惯。
检查未知路径
字段缺失时模型该怎样——null、TBD,还是问你?在边界里写一次。
红旗
只贴全文对话当日志;批准记录缺失。日志含密钥或客户原文——立刻脱敏。卡上写不清就不继续——先补检查项再跑。
保存这张卡
卡片:每次运行一行——Done?· 失败类型 · 下一步。整段聊天不是日志。
开始前
打开你真正会用的账号/项目。准备好与「记真正有用的日志」相关的真实材料(不要空白练习框)。
默认姿态:在人确认发送/写入之前只出草稿。授予新工具前,先写一条带日期的拒做句(Asia/Shanghai)。
- 一句话目标:___
- 允许的工具:___
- 禁止:___
- 需要人批准:___
本周怎么用
本周用五字段模板记每次运行;周末花十五分钟找重复失败模式。发现缺批准栏的旧日志,补一条规范样例。过/不过注明日期(Asia/Shanghai)。
周中代价检查:若明天丢掉这个习惯,24 小时内会坏在哪?写一行(Asia/Shanghai)。
常见坑
| 坑 | 改法 |
|---|---|
| 永远保存全部原始对话 | 收成行 |
| 没有结果链接 | 存输出路径或文档 URL |
| 从不回顾日志 | 日历上每周 10 分钟 |
| 在「问题」列写进机密 | 打码;必要时链到私密位置 |
实例
填好的提示词
任务:keep a light record of agent runs
场景要点:Agent 运行前 Done/门闸写好;练习编号 4/4。
边界:仅草稿;未知 [?];禁止悄悄发送;禁止编造指标。
返回:可检查产出 + 过/不过理由一行。
像样的输出大概长这样
- 约束贴着「记真正有用的日志」与 agents-logging-what-matters
- 未知标 [?];不编造负责人/数字
- 不可逆动作前停下
- 一分钟内能打过/不过(agents-logging-what-matters #4)
现在就练一次
实卡:用「记真正有用的日志」对真实任务跑一条智能体清单——产物路径进 Save(Asia/Shanghai)。
今天为一次真实运行填五字段日志。过/不过与永不做注明日期(Asia/Shanghai)。缺批准栏重填,不算完成。
今日卡片(可复制)— agents-logging-what-matters: 1. 我要产出的成品:___ 2. 通过/失败标准:___ 3. 若想跳过核验/发送的拒做句:___(日期:Asia/Shanghai) 4. 本篇一条永不做:___
- [ ] 成品路径已写
- [ ] 拒做例句会说「可以」
- [ ] 已标注 Asia/Shanghai 日期
一句话带走
每次运行只记 Done/失败类型/下一步。本周用三栏记满三次真实运行并注明日期。
下一步
失败模式 · 定时运行 · 团队手册 · 计划 → 行动 → 检查 · 人在回路检查点
今日搭配:先为本篇写上拒做句日期(Asia/Shanghai),再打开下一步里的第一篇(agents-failure-modes-and-retries)。
← Back to home · Learn · Tools · Compare · Start