lians-audit

lians-audit is a command for Claude Code from ebeirne/Lians2. It costs 20 tokens per session (475 once invoked), scanned A, original, from a forked repository, Apache-2.0.

A command for running Lians compliance and audit operations, including snapshots, chain verification, backtests, and erasure.

In plain words
What is it for?
Use it to reconstruct an agent’s knowledge at a date, verify a tamper-evident SHA-256 log chain, detect lookahead bias, or run an erasure operation.
Why use it?
It produces the underlying audit outputs directly, which can help inspect stored knowledge, detect altered logs, and find information known too early in a simulation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the lians plugin — 4 commands, 1 agent shipped together

Good fit Use it to reconstruct an agent’s knowledge at a date, verify a tamper-evident SHA-256 log chain, detect lookahead bias, or run an erasure operation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ebeirne/lians2/lians-audit
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.

Clone the repo
git clone --depth 1 https://github.com/ebeirne/Lians2

Made for: Claude Code.

Or install lians, the plugin that ships this one along with the rest of its 4 commands, 1 agent.

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 lians-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/ebeirne/lians2/lians-audit.svg)](https://agentmods.dev/commands/ebeirne/lians2/lians-audit)
Your own site
<a href="https://agentmods.dev/commands/ebeirne/lians2/lians-audit"><img src="https://agentmods.dev/badge/commands/ebeirne/lians2/lians-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
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.1 $0.00020 $0.00475
Opus 5 $0.00010 $0.00237
Sonnet 5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 7d ago against content hash 9f3269d91d6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

lians-audit 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 7d 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.

integrations/lians-plugin/commands/lians-audit.md · 48 lines

What it actually says

/lians-audit

Run the compliance surfaces that make Lians defensible to a regulator, examiner, or opposing counsel. Parse the operation from $ARGUMENTS and execute the matching call. Always print exactly what was returned — these are evidentiary outputs; do not paraphrase or soften them.

Operations

snapshot <agent_id> <YYYY-MM-DD>

Exhaustive knowledge-state reconstruction — every fact valid at that instant, not a ranked top-k. The one-call demo for "show me everything the agent knew on 2025-03-14."

snap = mem.snapshot(agent_id="<agent>", as_of=datetime(...))
print(snap["total"], "facts valid at", snap["as_of"])

verify

Verify the SEC 17a-4 tamper-evident SHA-256 hash chain. A broken link means the audit log was altered.

print(mem.verify_chain())   # {"status": "ok", "rows_checked": N, "violations": []}

backtest <agent_id> <YYYY-MM-DD>

Lookahead-bias detection — flags any fact the agent held that it could not have known at the simulation date. A clean report is the proof a risk committee needs.

r = mem.backtest_check(agent_id="<agent>", simulation_as_of=datetime(...))
print("clean" if r["is_clean"] else f"{len(r['flags'])} contamination flags")

erase <subject_id> <request_ref>

GDPR Art. 17 / HIPAA crypto-shred. Destroys the subject's per-subject key so all their content becomes unreadable — the audit hash chain survives. This is irreversible. Confirm with the user before running, and record the request_ref.

print(mem.erase(subject_id="<subject>", request_ref="<ref>"))

If the operation isn't recognized, list these four and ask which one.

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. 7d ago First seen · 48 lines · 20 tokens per session scan A 9f3269d91d6b

Subscribe to this mod's changes

lians-audit is a command published in the GitHub repository ebeirne/Lians2 (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 475 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other commands, from other repositories

gdpr-audit

You are a senior Security & Compliance specialist. The user needs help with gdpr audit in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

iam-audit

You are a senior Security & Compliance specialist. The user needs help with iam audit in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

pentest-report

You are a senior Security & Compliance specialist. The user needs help with pentest report in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

privacy-policy

You are a senior Security & Compliance specialist. The user needs help with privacy policy in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

soc2-readiness

You are a senior Security & Compliance specialist. The user needs help with soc2 readiness in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens

threat-model

You are a senior Security & Compliance specialist. The user needs help with threat model in the context of security audits, vulnerability management, gdpr/soc2/iso27001 compliance and incident response.

sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security · 0 tokens