ai-act-ask

ai-act-ask is a command for Claude Code from Peaky8linders/eu-ai-act-scanner. It costs 46 tokens per session (548 once invoked), scanned A, original, Apache-2.0.

A local question-answering command for the EU AI Act, the European Union law governing artificial-intelligence systems. It retrieves relevant law text and explains the related obligations while keeping article citations.

In plain words
What is it for?
Use it to ask questions such as what Article 50 requires for deepfakes. It returns the relevant article or annex text, a plain-language explanation, related risk categories, and source excerpts.
Why use it?
It lets you check compliance questions against a bundled copy of the law without sending the question over a network by default. Citations make it possible to see which articles support the answer.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument; mentions Claude Code.

Good fit Use it to ask questions such as what Article 50 requires for deepfakes. It returns the relevant article or annex text, a plain-language explanation, related risk categories, and source excerpts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/peaky8linders/eu-ai-act-scanner/ai-act-ask
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/Peaky8linders/eu-ai-act-scanner

Made for: Claude Code.

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 ai-act-ask

README.md
[![agentmods](https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask/github.svg)](https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask)
Your own site
<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask/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.

agentmods 80×15 button for ai-act-ask

Your own site · 80×15
<a href="https://agentmods.dev/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask"><img src="https://agentmods.dev/badge/commands/peaky8linders/eu-ai-act-scanner/ai-act-ask.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 548 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 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.1 $0.00046 $0.00548
Opus 5 $0.00023 $0.00274
Sonnet 5 $0.00009 $0.00110
Haiku 4.5 $0.00005 $0.00055

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

Security

Grade A, and why

ai-act-ask 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 12d 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.

commands/ai-act-ask.md · 51 lines

What it actually says

/ai-act-ask

Answer a compliance question, grounded in the bundled EU AI Act knowledge base: verbatim article/annex text (Regulation (EU) 2024/1689), concise obligation paraphrases, and the four-axis compound-risk taxonomy. This is the plugin's local "Lexy" retrieval-and-answer path.

Arguments

  • $1 (required) — the question, e.g. What does Article 50 require for deepfakes?
  • --top-k N (default 4) — number of grounded sources to retrieve.

Behaviour

  1. Run the grounded retriever:
    python -m scanner.cli --ask "$1"
    
    It prints the answer, the cited articles, the related compliance dimensions, and the grounded source excerpts. It runs 100% locally — no LLM, no network — by default.
  2. Present the answer and ALWAYS keep the citations. Do not add obligations that the cited articles do not support.
  3. In assisted mode (check python -m scanner.cli --settings), synthesise a fuller narrative answer yourself over the returned sources — you are the user's Claude Code — but treat the retrieved statute text as ground truth and cite every claim by article. For headless CLI use, --mode assisted routes synthesis through the Claude Max wrapper and applies a citation guard.
  4. For code-specific questions ("does MY repo satisfy Art. 50?"), run /ai-act-scan first and combine its findings with the grounded answer.

Example

User: /ai-act-ask What are a deployer's Article 50 transparency duties?

Response cites Art. 50(3) (emotion/biometric notice) and Art. 50(4) (deep-fake + public-interest-text disclosure), notes these are deployer obligations enforceable 2 August 2026, and links them to the content_transparency dimension — grounded verbatim in the bundled statute text.

Notes

  • Grounding corpus: Regulation (EU) 2024/1689 verbatim text (EUR-Lex CELEX 32024R1689) + obligation paraphrases + the agentic-risk taxonomy.
  • This is compliance information, not legal advice.
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. 12d ago First seen · 51 lines · 46 tokens per session scan A 7e67472e62af

Subscribe to this mod's changes

ai-act-ask is a command published in the GitHub repository Peaky8linders/eu-ai-act-scanner (5 stars, last pushed 5d ago), licensed Apache-2.0. It adds 46 tokens to every session and 548 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.