A Clerk Stamps Once
说明与用途
一种自动化配方,单次调用模型为使用仪表盘添加 CSV 导出功能,限制更改仅在指定文件内并避免重试。
问题
A solo founder needed a quick, single‑shot patch to add a CSV export to a usage dashboard without incurring costly agent loops or cloud dependencies.
结果
The founder achieved a one‑shot, local, model‑driven patch that added CSV export functionality, avoided costly retries, and maintained a clean git history.
工作流
- Create a touch.allow file listing files the clerk may modify.
- Write a concise prompt.txt specifying the task and constraints.
- Run clerk.sh to call the model once, apply the diff, and verify tests.
- If the diff touches disallowed files or modifies lockfiles, the script aborts.
- After successful verification, review the diff before pushing.
- Push the changes to the repository.
- Run CI to ensure all tests pass.
- Deploy the updated dashboard.
证据
The founder wrote a touch list before any prompt.
A small shell script owned the ship window.
The script treats that road as a hard error.
- 记录日期: 2026-09-16T15:45:33.244Z