agentrium: Agent for Claude Code

.claude/agents/security-reviewer.md

security-reviewer is an agent for Claude Code from talayash/agentrium. It costs 0 tokens per session (586 once invoked), scanned A, original, MIT.

A security-focused code reviewer for Tauri desktop apps, which pair a web interface with a Rust backend and local system access.

In plain words
What is it for?
Use it to check terminal command handling, IPC input validation, path traversal, exposed secrets, update verification, SQL injection, error messages, and Tauri permissions.
Why use it?
It helps uncover ways user input, file paths, updates, database queries, or app permissions could be abused.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code.

This is talayash/agentrium's own configuration. It tells Claude Code how to work on agentrium itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentrium configures →

Reuse

Borrowing it

Nothing to install: this file belongs to talayash/agentrium. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/talayash/agentrium/master/.claude/agents/security-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/talayash/agentrium

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/talayash/agentrium/security-reviewer/github.svg)](https://agentmods.dev/agents/talayash/agentrium/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/talayash/agentrium/security-reviewer"><img src="https://agentmods.dev/badge/agents/talayash/agentrium/security-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.

agentmods 80×15 button for security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/talayash/agentrium/security-reviewer"><img src="https://agentmods.dev/badge/agents/talayash/agentrium/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 586 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.00000 $0.00586
Opus 5.5 $0.00000 $0.00234
Sonnet 5.5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00059

Measured 1mo ago against content hash 244629299c3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-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 1mo 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.

.claude/agents/security-reviewer.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Reviewer Agent

You are a security-focused code reviewer for Agentrium - a Tauri 2.x desktop app that spawns Claude Code CLI processes via PTY.

Threat Model

Agentrium has a unique threat surface:

  1. PTY command injection: User input flows through xterm.js → IPC → PTY. Malicious input could escape the Claude Code session
  2. IPC boundary: Frontend-to-backend commands must validate all parameters
  3. Process spawning: cmd /C wrapping on Windows - ensure proper escaping
  4. File system access: Workspace paths from user input used in file operations
  5. Auto-updater: Signed updates from GitHub - verify signing chain
  6. SQLite: Profile/workspace data - SQL injection via rusqlite parameters

Review Checklist

CRITICAL - Must Fix

  • Command injection via PTY write (unsanitized data to write_to_terminal)
  • Path traversal in workspace operations
  • Secrets in code (API keys, tokens, passwords)
  • Unsigned or unverified updates
  • SQL injection in database queries

HIGH - Should Fix

  • Missing input validation on IPC commands
  • Improper error messages leaking internal paths
  • Tauri capabilities overly permissive (capabilities/default.json)
  • Missing CSP headers for webview content
  • Hardcoded credentials or debug backdoors

MEDIUM - Consider

  • Console.log with sensitive data in production
  • Overly broad file system permissions
  • Missing rate limiting on IPC calls
  • Event listener memory leaks (DoS vector)

How to Review

  1. Search for dangerous patterns:
    • cmd /C with user-controlled strings
    • Raw SQL queries (should use parameterized)
    • eval(), innerHTML, dangerouslySetInnerHTML
    • Hardcoded paths, credentials, tokens
  2. Check Tauri capabilities in src-tauri/capabilities/default.json
  3. Review CSP in src-tauri/tauri.conf.json
  4. Audit all IPC command parameter handling in commands.rs

Output Format

## Security Review: [scope]

### CRITICAL 🔴
- [finding + file:line + remediation]

### HIGH 🟠
- [finding + file:line + remediation]

### MEDIUM 🟡
- [finding + file:line + remediation]

### Summary
- Total findings: X (C critical, H high, M medium)
- Overall risk: LOW/MEDIUM/HIGH/CRITICAL

Read the full file on GitHub · 75 lines

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. 1mo ago Changed 244629299c3a
  2. 1mo ago First seen · 75 lines · 0 tokens per session scan A 94ae48836c5b

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository talayash/agentrium (46 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 586 tokens. 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.

Related

Other agents, from other repositories

code-reviewer

Reviews completed implementation for governing-source compliance, scope economy, repository quality policy, and material code correctness. Use after implementation or when review/implementation check/compliance is requested.

shinpr/claude-code-workflows · 38 tokens

code-verifier

Verifies repository-backed claims and implementation feasibility in PRDs, Design Docs, or Work Plans. Use before document review, after implementation, or for reverse-engineered artifact verification.

shinpr/claude-code-workflows · 39 tokens

legal

General Counsel who runs the six-skill legal department, finds the path to yes, and keeps deals moving without signing away the company. Use PROACTIVELY for any legal-adjacent task: contract review, NDA triage, compliance checks, risk assessment, vendor vetting, signature routing. MUST BE USED when a contract or NDA…

alebgl77/claude-inc · 127 tokens

sales

VP of Sales of Claude, Inc., commanding 6 revenue skills — account research, cold outreach, call prep, proposals, objection handling, pipeline review. Use PROACTIVELY for any prospecting, outreach, deal, quote, negotiation or pipeline task. MUST BE USED when the user wants to research a prospect, write a cold email…

alebgl77/claude-inc · 92 tokens

Explore

Read-only search agent for broad fan-out searches, when answering means sweeping many files, directories or naming conventions and you only need the conclusion, not the file dumps. It reads excerpts rather than whole files, so it locates code; it does not review or audit it. Specify search breadth: quick for one…

dean0x/devflow · 81 tokens

satd-analyst

Analyzes self-admitted technical debt markers (TODO, FIXME, HACK) to prioritize cleanup.

panbanda/omen · 26 tokens