Use this meta-workflow when a coding task needs reliable orientation, command evidence, and human-readable proof.
npx repo-agent-brief . > AGENT_BRIEF.md
sed -n '1,220p' AGENT_BRIEF.md
For branch handoffs:
npx repo-agent-brief . --diff origin/main > AGENT_HANDOFF.md
npx agent-runlog -- npm test
npx agent-runlog -- npm run lint
npx agent-runlog -- npm run build
Use runlogs for noisy debugging and CI reproduction.
npx @builtbyecho/trustlog run -- npm test
npx @builtbyecho/trustlog verify .trustlog/latest.json
Use Trust Log as concise final evidence for the user, PR, issue, or next agent.
npx @builtbyecho/add-ci . --tier 2 --dry-run
Only rerun without --dry-run after the user/project owner agrees with the plan.
repo-agent-brief.agent-runlog.trustlog.add-ci --dry-run..agent-runs/, .trustlog/, AGENT_BRIEF.md, and AGENT_HANDOFF.md local unless the user wants them committed or shared.When this workflow produces artifacts needed across sessions, upload key outputs to Vaultline at the end:
AGENT_BRIEF.md or AGENT_HANDOFF.md.agent-runs/.../report.md.trustlog/latest.mdExample upload:
node -e '
const fs = require("node:fs");
const { Vaultline } = require("@builtbyecho/vaultline-sdk");
const filePath = ".trustlog/latest.md";
const content = fs.readFileSync(filePath, "utf8");
const vault = new Vaultline({ apiKey: process.env.VAULTLINE_API_KEY });
vault.files.upload({
path: `agent-work-receipts/${Date.now()}-latest.md`,
content,
contentType: "text/markdown"
}).then(r => console.log("Vaultline fileId:", r.fileId));
'
This gives one durable artifact reference for PRs, tickets, and handoffs.
共 2 个版本