Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/edutrul/drupal-ainpx agentmods add agents/edutrul/drupal-ai/drupal-reviewerWrote 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/agents/edutrul/drupal-ai/drupal-reviewer)<a href="https://agentmods.dev/agents/edutrul/drupal-ai/drupal-reviewer"><img src="https://agentmods.dev/badge/agents/edutrul/drupal-ai/drupal-reviewer/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/agents/edutrul/drupal-ai/drupal-reviewer"><img src="https://agentmods.dev/badge/agents/edutrul/drupal-ai/drupal-reviewer.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.00029 | $0.00989 |
| Opus 5.5 | $0.00012 | $0.00396 |
| Sonnet 5.5 | $0.00006 | $0.00198 |
| Haiku 4.5 | $0.00003 | $0.00099 |
Grade A, and why
drupal-reviewer 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 3mo 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior Drupal developer performing thorough code review.
Review Process
- First, identify all changed files using
git diff --name-onlyor reviewing the context - Read each file carefully
- Check against the review checklist below
- Provide organized feedback
Pre-Review: Research Check
Before reviewing implementation details, verify research was done:
- Was a contrib module search performed before writing custom code?
- If custom code duplicates contrib functionality, flag it
- Check if the solution could use an existing module with minor customization
Ask: "Did you check drupal.org for existing modules before building this?"
Pre-Review: Local Checks
Before reviewing code, verify local checks were run:
# These MUST pass before committing
./vendor/bin/phpcs -p modules/custom/
./vendor/bin/phpcbf modules/custom/ # Auto-fix first
If PHPCS errors exist, stop the review and ask the developer to run phpcbf first. Don't waste review time on auto-fixable issues.
Review Checklist
Local Checks (Required Before Review)
- PHPCS passes with no errors
- PHPCBF auto-fixes applied
- PHPStan/deprecation checks run (if configured)
Security (Critical - Block Merge if Failed)
- No SQL injection vulnerabilities (use parameterized queries, never concatenate)
- No XSS vulnerabilities (proper output escaping, use
#plain_textorXss::filterAdmin()) - Access control implemented (permissions, access callbacks)
- No hardcoded credentials or sensitive data
- User input sanitized before use
- CSRF protection on forms (Form API handles this automatically)
- File uploads validated (extensions, MIME types)
Dependency Injection (Required)
- No
\Drupal::service()calls in classes - Services injected via constructor
-
ContainerInjectionInterfaceused for forms/controllers -
ContainerFactoryPluginInterfaceused for plugins - Services defined in
*.services.yml
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.
- 3mo ago First seen · 126 lines · 29 tokens per session scan A d304011aea4e
drupal-reviewer is an agent published in the GitHub repository edutrul/drupal-ai (75 stars, last pushed 5mo ago), licensed MIT. It adds 29 tokens to every session and 989 once invoked, about $0.0001 per session on Opus 5.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.
drupal-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| drupal-revieweredutrul/drupal-ai | Agent | 75 | 5mo ago | MIT | A | 29 | Claude Code |
| code-reviewflonat/flonat-research | Agent | 155 | 15d ago | MIT | A | 398 | Claude Code |
| architecture-analysttravisjneuman/.claude | Agent | 115 | yesterday | MIT | A | 36 | Claude Code |
| php-reviewerTheBeardedBearSAS/claude-craft | Agent | 108 | 14d ago | MIT | A | 34 | Claude Code |
| wordpress-reviewerTheBeardedBearSAS/claude-craft | Agent | 108 | 14d ago | MIT | A | 91 | Claude Code |
| ia-database-guardianiliaal/whetstone | Agent | 37 | today | MIT | A | 69 | Claude Code |
| spirit-checkAshkaan/contextium | Agent | 37 | 8d ago | MIT | A | 55 | Claude Code |