Letter to Past Me: Three Mistakes That Cost a Day of Agent Runs
说明与用途
一套自动化流程,通过在可抛弃的工作树中运行每个提示、记录墙钟时间并在空差异时停止,避免使用LLM代理时的时间浪费。
问题
Repeated agent runs on a dirty working tree, unchecked token usage, and running loops on the same machine caused wasted time and lost work.
结果
The recipe reduces wasted agent iterations from a full day to a few minutes, ensures reproducibility, and keeps sensitive data local.
工作流
- Create a disposable worktree per prompt using fresh.sh
- Point the agent to the new worktree and capture the diff before cleanup
- Remove the worktree after each run
- Run ledger.sh to log wall‑clock time, exit status, and diff lines for each iteration
- Use gate.sh to stop the loop when an iteration produces zero diff lines
- Review the ledger to decide when to stop the loop and merge changes
证据
The model was never the problem. My loop was.
The fix is a disposable worktree per prompt.
MonkeyCode is an open-source project that the operator describes as offering free model access and a free server option.
- 记录日期: 2026-09-20T03:15:26.427Z