Skip to content
Development
Command

/audit

Log and label agent interactions (append-only JSONL)

From plugin
beads
26k29 skills4 agents29 commands
Install
> /plugin marketplace add steveyegge/beads
> /plugin install beads@beads-marketplace

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/audit

Context preview

What this command does when you run it.

Log and label agent interactions (append-only JSONL)

Command definition

audit.md
description: Log and label agent interactions (append-only JSONL)
argument-hint: "record|label"

Append-only audit logging for agent interactions (prompts, responses, tool calls) in `.beads/interactions.jsonl`.

Each line is one event. Labeling is done by appending a new `"label"` event referencing a previous entry.

Usage

  • **Record an interaction**:
  • `bd audit record --kind llm_call --model "claude-3-5-haiku" --prompt "..." --response "..."`
  • `bd audit record --kind tool_call --tool-name "go test" --exit-code 1 --error "..." --issue-id bd-42`
  • **Pipe JSON via stdin**:
  • `cat event.json | bd audit record`
  • **Label an entry**:
  • `bd audit label int-a1b2 --label good --reason "Worked perfectly"`
  • `bd audit label int-a1b2 --label bad --reason "Hallucinated a file path"`

Notes

  • Audit entries are **append-only** (no in-place edits).
  • `bd dolt push` includes `.beads/interactions.jsonl` in the commit allowlist.
Ships withbeads

Distributed graph issue tracker for AI agents, powered by Dolt. Platforms: macOS, Linux, Windows, FreeBSD Docs: Beads provides a persistent, structured memory for coding agents.

Get the whole plugin