log

log is a skill for Claude Code, Codex from brandonsimpson/devils-advocate. It costs 11 tokens per session (377 once invoked), scanned A, original, MIT.

A skill that displays the history of adversarial code or plan checks recorded for the current project.

In plain words
What is it for?
Use it to read the session log, count checks, summarize pass-rate trends and the worst result, and list detailed critique logs when available.
Why use it?
It makes previous review results easier to inspect, including whether quality is improving or declining over time.

Skill for Claude CodeCodex

Part of the devils-advocate plugin — 2 skills, 2 hooks shipped together

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/brandonsimpson/devils-advocate/log
Any agent
npx skills add brandonsimpson/devils-advocate --skill log
Clone the repo
git clone --depth 1 https://github.com/brandonsimpson/devils-advocate

Made for: Claude Code, Codex.

Or install devils-advocate, the plugin that ships this one along with the rest of its 2 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for log

README.md
[![agentmods](https://agentmods.dev/badge/skills/brandonsimpson/devils-advocate/log.svg)](https://agentmods.dev/skills/brandonsimpson/devils-advocate/log)
Your own site
<a href="https://agentmods.dev/skills/brandonsimpson/devils-advocate/log"><img src="https://agentmods.dev/badge/skills/brandonsimpson/devils-advocate/log.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 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.00011 $0.00377
Opus 5 $0.00005 $0.00188
Sonnet 5 $0.00002 $0.00075
Haiku 4.5 $0.00001 $0.00038

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

Security

Grade A, and why

log 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 4d 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.

plugin/skills/log/SKILL.md · 47 lines

What it actually says

Session Log

Display the critique history for this session.

Process

  1. Read the session log — Use the Read tool to read .devils-advocate/session.md from the project root.

  2. If the file doesn't exist or is empty — Report that no checks have been run yet and suggest:

    • /devils-advocate:critique — Critique current code or a plan document
  3. If the file exists — Display its contents and add a brief summary:

    • Total number of checks run
    • Pass rate trend (improving, declining, or stable)
    • Worst result (the check with the most failing criteria)
    • Note: Each entry includes a git SHA linking the check to a specific commit
  4. List individual log files — Use Glob to check for files in .devils-advocate/logs/*.md. If any exist, list their filenames so the user knows which detailed critiques are available to read.

Output Format

SESSION LOG
═══════════════════════════════════════

[contents of .devils-advocate/session.md]

───────────────────────────────────────
Summary: N checks | Trend: [improving/declining/stable]
Worst:   Check #X (Y/Z PASS) @ <sha> — [brief note]

Detailed Logs: [only if .devils-advocate/logs/ has files]
• [filename1]
• [filename2]

Rules

  • Just display and summarize — do not re-run any assessments
  • If the log is very long (>20 entries), show the last 10 and mention how many were omitted
  • Never modify the session log file in this skill
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. 4d ago First seen · 47 lines · 11 tokens per session scan A 57d524c7ae0b

Subscribe to this mod's changes

log is a skill published in the GitHub repository brandonsimpson/devils-advocate (22 stars, last pushed 2mo ago), licensed MIT. It adds 11 tokens to every session and 377 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-30.