symbi-audit
Skill4 starsChanged 9 months agoApache-2.0View on GitHub
Query and analyze the Symbiont audit log of Claude Code tool usage. Works with no runtime — reads the always-on local JSONL log at .symbiont/audit/tool-usage.jsonl — and upgrades to the runtime's cryptographic audit trail when the symbi binary is installed. Use when reviewing tool activity, investigating an incident, or preparing a usage summary.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- symbi-agent-sdkSkill
- symbi-dslSkill
- symbi-initSkill
- symbi-pinSkill
- symbi-policySkill
- symbi-verifySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Local log (default, no runtime): Read .symbiont/audit/tool-usage.jsonl in the project root.
- Distinctive: line 31
Always start by checking which sources exist:
- Very specific: line 40
Use jq when present, with plain-text fallbacks.
- Very specific: line 68
When symbi is on PATH, use the symbi MCP server to investigate:
- Distinctive: line 79
Ask what the user wants to investigate (recent activity, a specific tool, a time window, anomalies).
- Distinctive: line 81
Run the appropriate query and present findings in a clear, chronological summary.
- Very specific: line 85
If patterns suggest tightening policy, point to /symbi-protect (local rules) or /symbi-policy (Cedar, runtime).
- Distinctive: line 88
If neither source exists yet, say so: a fresh project has no log until the first tool call is recorded.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit Log Analysis
The plugin records every tool call by default — no runtime required. Each PostToolUse event appends one JSON line to:
.symbiont/audit/tool-usage.jsonlLine shape:
{"timestamp":"2026-06-03T14:22:01Z","tool":"Bash","source":"claude-code"}Source selection
- Local log (default, no runtime). Read
.symbiont/audit/tool-usage.jsonlin the project root. This is the source for a plain plugin install. - Runtime cryptographic trail (when
symbiis on PATH). The Symbiont runtime keeps a tamper-evident journal with richer detail (agent identity, policy decisions, SchemaPin events). Prefer it when available; query it via thesymbiMCP server tools.
Always start by checking which sources exist:
test -f .symbiont/audit/tool-usage.jsonl && echo "local log present"
command -v symbi >/dev/null && echo "runtime available"Querying the local log
Use jq when present, with plain-text fallbacks. Examples:
# Total recorded calls
wc -l < .symbiont/audit/tool-usage.jsonl
# Most recent 20 calls
tail -n 20 .symbiont/audit/tool-usage.jsonl
# Count by tool
jq -r '.tool' .symbiont/audit/tool-usage.jsonl | sort | uniq -c | sort -rn
# (no jq) — coarse fallback:
grep -oE '"tool":"[^"]*"' .symbiont/audit/tool-usage.jsonl | sort | uniq -c | sort -rn
# Calls since a timestamp
jq -r 'select(.timestamp >= "2026-06-03T00:00:00Z") | "\(.timestamp) \(.tool)"' \
.symbiont/audit/tool-usage.jsonl
# Just Bash invocations
jq -r 'select(.tool == "Bash") | .timestamp' .symbiont/audit/tool-usage.jsonlThe local log records tool names and timestamps, not arguments — it answers "what kinds of actions ran, and how often," not "what exact command." For argument-level detail, use the runtime trail.
Querying the runtime trail (when installed)
When symbi is on PATH, use the symbi MCP server to investigate:
- Recent agent activity and what each agent did
- Policy decisions (which Cedar policies evaluated, allow/deny outcomes)
- MCP tool usage by agent
- Security events: failed SchemaPin verifications, policy denials, sandbox violations
Workflow
- Detect available sources (local log, runtime).
- Ask what the user wants to investigate (recent activity, a specific tool, a time window, anomalies).
- Run the appropriate query and present findings in a clear, chronological summary.
- Flag anything notable — bursts of destructive-command attempts, blocked reads, unusual tool mixes.
- If patterns suggest tightening policy, point to
/symbi-protect(local rules) or/symbi-policy(Cedar, runtime).
If neither source exists yet, say so: a fresh project has no log until the first tool call is recorded.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

