audit-logs

A guide for reading Shellby's agent-command audit log without loading the entire file at once. The log records tool calls, timing, token counts, failures, and command details.

In plain words
What is it for?
Use it to analyze command history, find failed or slow tool calls, inspect output sizes, and understand when entries were recorded. It is intended for the `agent-commands.yaml` log.
Why use it?
Large logs can be difficult and wasteful to inspect directly. Parsing the recorded format lets you investigate what happened while keeping the analysis focused.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/serbyte-development/shellby-mcp/audit-logs
Any agent
npx skills add serbyte-development/shellby-mcp --skill audit-logs
Clone the repo
git clone --depth 1 https://github.com/serbyte-development/shellby-mcp

Made for: Claude Code, Codex.

Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00355
Opus 5 $0.00012 $0.00178
Sonnet 5 $0.00005 $0.00071
Haiku 4.5 $0.00002 $0.00036

Measured 2d ago against content hash 7b26f4a91c0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit-logs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/audit-logs/SKILL.md · 50 lines

What it actually says

Agent Command Log

Use this skill to analyze agent-commands.yaml.

Do not load whole log into context. Parse it with Python, Node, Ruby, shell tools, whatever fits the question.

Source of truth for format:

src/server/audit-log.ts

--- # [!|~] TOOL - DURATIONms - N in [/ N out] [- structured] [- max_output_tokens=N] [- HTTP ...] - HH:MM:SS
  • ! = tool/HTTP/connection failure
  • ~ = call took at least 5 seconds
  • in = tokens from full serialized arguments before log truncation
  • out = model-facing output tokens when captured
  • final time = local call start time

Tool Bodies

  • shell_run: shell/request ID, optional cwd, command
  • shell_poll: shell/request ID, cursor
  • apply_patch: cwd + patch size; patch body retained only on failure
  • other tools: serialized args

Limits

  • shell command: 2,000 chars
  • generic args: 600 chars
  • failed patch: 32,000 chars
  • failure message: 1,000 chars

Caveats

  • Missing out does not mean zero output.
  • Shell nonzero exit may not produce !.
  • Successful tool output bodies are not stored.
  • Entries are written when calls complete, so file order is not guaranteed invocation order.
  • Timestamps have no date.
  • One file may contain multiple sessions.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 24 tokens per session scan A 7b26f4a91c0b

Subscribe to this mod's changes

audit-logs is a skill published in the GitHub repository serbyte-development/shellby-mcp (10 stars, last pushed 5d ago), licensed MIT. It adds 24 tokens to every session and 355 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codexless-release-supervisor

Prepare, validate, and publish Codexless preview/hotfix releases from the canonical household source, including acceptance anti-omission gates, candidate provenance/parity, manifest/build identity, native Windows/macOS fresh-install acceptance from clean public source, safe Git integration, GitHub prerelease…

liyana31811/Codexless · 87 tokens

codexless-browser-repair

Diagnose and temporarily repair Codexless Browser compatibility after a Codex, Chrome Skill, or Browser runtime update when Codexless Browser stopped working. Use for current-version Codexless Browser compatibility drift, not ordinary website bugs, general Browser operation, Codexless install/update work, or long-term…

liyana31811/Codexless · 70 tokens

codex-with-chatgpt

Use ChatGPT (web) as the planning and review brain for Codex coding sessions, while Codex keeps full execution ownership. Use when the user says "使用 Codex with ChatGPT ..." / "Set up Codex with ChatGPT" / "用 ChatGPT 规划", when they ask to connect ChatGPT to the current workspace, disconnect it, or run a task through…

XiaoDuoYa/codex-with-chatgpt · 90 tokens

add-widget

Add a new widget (React UI + MCP tool) to this template. Use when asked to "add a widget", "add a new tool with UI", "create a new widget", "scaffold a widget", or "build a new MCP App feature".

pomerium/mcp-app-typescript-template · 56 tokens

create-mcp-tool

Add a plain (text-only) or UI-enhanced MCP tool to this template's server. Use when asked to "add a tool", "add an MCP tool", "create a new tool", "add a server-side tool without a widget", "add a tool with a UI", "add a tool with a widget", or "create a tool and a widget".

pomerium/mcp-app-typescript-template · 80 tokens

threebrowser-studio-mcp

Author, inspect, render, validate, animate, and save Three.js WebGPU projects in the native ThreeBrowser Studio through its real threestudio MCP tools. Use whenever Codex is asked to build or edit a ThreeBrowser Studio scene, material, Blender-style shader or texture graph, animation, lighting setup, camera, or…

SamG-Coder/ThreeBrowserStudio · 122 tokens