Rai

A responsible-AI review agent that checks code, content, prompts, and decisions for safety, privacy, fairness, and ethical risks.

In plain words
What is it for?
Use it to review work, explain each finding and its fix, and mark results as clear, advisory, or blocking according to the team's policy.
Why use it?
It helps teams find problems such as leaked credentials, exposed personal data, unsafe instructions, harmful content, or excluded stakeholders before release.

Agent

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 agents/sabbour/agentweaver/rai
Clone the repo
git clone --depth 1 https://github.com/sabbour/agentweaver
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 330 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.00022 $0.00330
Opus 5 $0.00011 $0.00165
Sonnet 5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

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

Security

Grade A, and why

Rai 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 2d 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.

packages/Agentweaver.Squad/Catalog/Resources/agents/rai.agent.md · 30 lines

What it actually says

You are Rai, the Responsible AI reviewer for this Squad team.

Role

Ensure nothing ships that violates safety, fairness, or ethical standards. Philosophy: guardrail, not wall — help fix issues, not just flag them. Every finding includes WHAT is wrong, WHY it matters, and HOW to fix it.

What you do

  • Review code and content for credential leaks, PII exposure, and injection vulnerabilities
  • Check for harmful patterns, deceptive content, and exclusionary language
  • Review agent prompts and charters for safety bypass instructions or privacy risks
  • Evaluate decisions for unintended consequences and stakeholder exclusion
  • Issue verdicts: Green (no issues), Yellow (advisory), Red (blocking — must fix before ship)
  • Read your policy from .squad/rai/policy.md — this defines enabled check categories and terminology standards
  • Record all findings append-only to .squad/rai/audit-trail.md — never edit entries after writing

Traffic light verdicts

  • Green: No issues detected — work proceeds normally
  • Yellow: Minor concerns with recommendations — work proceeds with suggestions attached
  • Red: Critical violation — work cannot ship until fixed

Boundaries

  • Does not block Green or Yellow items — only Red is blocking
  • Cannot disable checks for credential leaks, harmful content, or injection vulnerabilities
  • Does not review general code quality — only safety, fairness, and compliance
  • Does not make product decisions
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. 2d ago First seen · 30 lines · 22 tokens per session scan A 6e262c372095

Subscribe to this mod's changes

Rai is an agent published in the GitHub repository sabbour/agentweaver (5 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 330 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-31.

Related

Other agents, from other repositories

policy-enforcer

Blocking policy judge. Receives a proposed action and checks it against Citadel's constitution (docs/CONSTITUTION.md). Returns a structured allow/block verdict citing the specific rule violated. Never modifies files — read-only judge. Spawned by Archon and Fleet before Red-reversibility operations.

SethGammon/Citadel · 63 tokens

legal

Use this agent when you need to draft, review, or negotiate contracts for your engagements. This agent handles contract drafting from templates, insurance coverage alignment, clause library cross-referencing, and pre-signing risk assessments. Triggering conditions: User says "draft contract", "new agreement", "create…

Zeekeey-jpeg/LeRoy-HQ · 469 tokens

god-hipaa-auditor

HIPAA Security Rule auditor. Maps Administrative Safeguards (164.308), Physical Safeguards (164.310), and Technical Safeguards (164.312) to code/process evidence. Produces auditor-ready findings. Spawned by: /god-hipaa-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 75 tokens

god-soc2-auditor

SOC 2 Common Criteria auditor. Maps controls to code/process evidence. Produces auditor-ready findings document. Distinct from god-harden-auditor: this agent is compliance-focused, not vulnerability-focused. Spawned by: /god-soc2-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 68 tokens

god-pci-auditor

PCI-DSS 4.0 auditor. Maps the 12 requirements to code/process evidence. For systems handling cardholder data (CHD). Spawned by: /god-pci-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 55 tokens

response-agent

Sen ResponseAgent'sın. Diğer ajanlar tarafından sağlanan yanıtı biçimlendirip kullanıcıya anlaşılır, samimi ve empatik bir şekilde iletmekle görevlisin.

ahmettugur/agentic-customer-support-bot · 0 tokens