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.
git clone --depth 1 https://github.com/Peaky8linders/eu-ai-act-scannerWrote 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.
[](https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-scan)<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-scan"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-scan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-scan"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01165 |
| Opus 5 | $0.00018 | $0.00583 |
| Sonnet 5 | $0.00007 | $0.00233 |
| Haiku 4.5 | $0.00004 | $0.00117 |
Grade A, and why
ai-act-scan 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ai-act-scan
Run the EU AI Act compliance scanner on a local codebase and summarise the findings.
Arguments
$1(optional) — path to scan. Defaults to the current working directory.--article ARTN— filter results to a single article (e.g.art9,art15,art50).
Behaviour
- Run the scanner CLI in JSON mode:
Ifpython -m scanner.cli "$1" --json$1is empty, scan the current directory. - Parse the JSON output. Key fields:
is_ai_system— bool. Check this first. Whenfalsethe codebase is out of EU AI Act scope (no AI/ML/agent signal):compliance_scoresis empty andoverall_compliance_pctis0.0but not a compliance measure.ai_system_signals— the AI evidence that put the project in scope (e.g.ai_framework:pytorch,model_typology:llm); empty when out of scope.scope_note— populated only whenis_ai_systemisfalse; explains why scoring was skipped.overall_compliance_pct— 0–100 (only meaningful whenis_ai_systemistrue)compliance_scores— map of dimension id → 0–100components— list of discovered components withcomponent_type,compliance_impact,compliance_dimensionsrisk_indicators— top 10 gap-severity findingsrecommendations— prioritised remediation suggestionsfile_findings— per-file roll-up of findings/gaps/status
- If
is_ai_systemisfalse: do not present a compliance percentage. State that the project is not an AI system and is out of EU AI Act scope, showscope_noteverbatim, and stop (optionally point toCONTRIBUTING.mdif the user believes an AI pattern was missed). Otherwise present a summary in this order:- Headline: overall compliance % and file count
- Lowest-scoring dimensions (bottom 3) with article references — use the
eu-ai-act-referenceskill if the user wants deeper article context - Top 3 risk indicators verbatim from the result
- Top 3 recommendations verbatim
- Offer to drill into a specific dimension, article, or file
- Never invent findings. If the scanner reports zero components, say so and suggest the project may not be an AI system or may use patterns the scanner does not yet recognise (and link to
CONTRIBUTING.mdfor adding an analyzer).
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.
- 11d ago First seen · 93 lines · 37 tokens per session scan A 0a292d5fa1a0
ai-act-scan is a command published in the GitHub repository Peaky8linders/eu-ai-act-scanner (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 37 tokens to every session and 1,165 once invoked, about $0.0002 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.
Other commands, from other repositories
evidence
Export a signed compliance evidence package as JSON or PDF for regulatory handoff.
comply
Run a full EU AI Act compliance scan on your Python AI project.
audit
Generate a structured audit report for the current session or a specified time range. The report summarises every governed action, lists any blocked requests, and provides a compliance-ready summary you can download or share.
tcop
Generate a Technology Code of Practice (TCoP) review document for a UK Government technology project.
soa-generator
Generate ISO 27001 Statement of Applicability (SOA) with control selection justifications.
ssp-section-generate
Generate System Security Plan (SSP) sections for NIST 800-53 controls.