Accountability layer for agent-driven DoorDash ordering. Works with the doordash-audit-log hook (which appends every dd-cli invocation to an append-only audit l
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-doordash-order-ledger-3565a4376b70 ,按照其中的说明把「doordash-order-ledger」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Every dd-cli command the agent runs is recorded by the doordash-audit-log hook
in ~/.claude/dd-guard/audit.jsonl — one versioned JSON line per event.
This skill teaches you to answer questions from that log instead of
guessing.
Install the bundle: hook
doordash/doordash-audit-log(the recorder), command/doordash-report(reconciled summaries), this skill (querying). Composes with doordash-spend-guard (shares the~/.claude/dd-guard/state directory) but runs standalone.
{
"v": 1,
"ts": "2026-07-19T13:02:11",
"session_id": "abc123",
"cwd": "/Users/x/project",
"command": "dd-cli search --query \"ramen near me\"",
"event_type": "search | cart_mutation | checkout_url | history | login | other",
"cart_uuid": "…or null",
"order_uuid": "…or null",
"exit_ok": true
}
Commands are secret-stripped before persisting and truncated to 500 chars.
The v field guards future schema changes — check it before assuming
fields.
Answer from data, not memory:
# What did the agent do today?
jq -r 'select(.ts >= "2026-07-19") | "\(.ts) \(.event_type) \(.command)"' ~/.claude/dd-guard/audit.jsonl
# Checkout URLs issued this week (intents, not confirmed orders)
jq -r 'select(.event_type == "checkout_url" and .ts >= "2026-07-13")' ~/.claude/dd-guard/audit.jsonl
# Activity by type
jq -s 'group_by(.event_type) | map({type: .[0].event_type, n: length})' ~/.claude/dd-guard/audit.jsonl
# Which sessions touched carts?
jq -r 'select(.event_type == "cart_mutation") | .session_id' ~/.claude/dd-guard/audit.jsonl | sort | uniq -c
# Failed dd-cli calls (agent flailing?)
jq -r 'select(.exit_ok == false) | "\(.ts) \(.command)"' ~/.claude/dd-guard/audit.jsonl
When the user asks a money question ("how much this week?"), prefer
/doordash-report — it reconciles against real dd-cli order history and labels
intent-only numbers honestly. Raw checkout_url counts are intents: the
human may have abandoned the payment page.
order history confirms money moved.mv audit.jsonl audit-$(date +%Y%m).jsonl && gzip audit-*.jsonl (keep the
gzips; they are the history).~/.claude/dd-guard/ out of repos and backups you share. Mention
this to the user the first time you query the log in a session.