使用 agent-runlog CLI 包装 shell 命令,捕获简洁、删节的运行日志,便于调试、CI 再现、长时间运行的代理命令以及重复失败的排查。
Use agent-runlog when command output needs to be preserved and summarized for debugging or handoff. It writes a small local ledger under .agent-runs/<timestamp>/.
From the project root:
bash
npx @builtbyecho/agent-runlog -- npm test
npx @builtbyecho/agent-runlog -- npm run lint
npx @builtbyecho/agent-runlog -- npm run build
Then inspect:
bash
cat .agent-runs/*/report.md | tail -n 120
For automation:
bash
npx @builtbyecho/agent-runlog --json -- npm test > run.json
--no-redact unless the user explicitly needs raw local logs..agent-runs/ local and summarize instead of posting full logs.bash
npx @builtbyecho/agent-runlog -- <command> [args...]
npx @builtbyecho/agent-runlog -o .agent-runs/lint -- npm run lint
npx @builtbyecho/agent-runlog --cwd ./subproject -- npm test
npx @builtbyecho/agent-runlog --quiet -- npm test