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.
npx agentmods add agents/andrewaltimit/template-repo/securitygit clone --depth 1 https://github.com/AndrewAltimit/template-repoWrote 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/andrewaltimit/template-repo/security)<a href="https://agentmods.dev/agents/andrewaltimit/template-repo/security"><img src="https://agentmods.dev/badge/agents/andrewaltimit/template-repo/security.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.04511 |
| Opus 5 | $0.00000 | $0.02256 |
| Sonnet 5 | $0.00000 | $0.00902 |
| Haiku 4.5 | $0.00000 | $0.00451 |
Grade B, and why
security scanned grade B with 2 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 4d 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.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -sSL https://raw.githubusercontent.com/AndrewAltimit/template-repo/main/tools/rust/gh-validator/install.sh | bash Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sSL https://raw.githubusercontent.com/AndrewAltimit/template-repo/main/tools/rust/gh-validator/install.sh | bash This is a copy
89% identical to security-detailed — 401 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 507 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Agents Security Documentation
Overview
The agents system implements a comprehensive security model designed to prevent unauthorized use, prompt injection attacks, and malicious code insertion. The system uses multiple layers of defense including user authentication, keyword-based command triggers, and real-time commit validation during PR processing.
Core Security Principles
- Zero Trust by Default: No action is taken without explicit authorization
- Defense in Depth: Multiple security layers that work independently
- Audit Trail: All actions are logged with user attribution
- Fail Secure: Any security failure results in no action taken
- Real-time Validation: Continuous security checks during execution
Security Features
1. Multi-Layer Security Implementation
Our agents implement defense-in-depth with multiple security layers:
Workflow-Level Security (First Layer)
- GitHub Actions
ifconditions prevent workflows from running for unauthorized users - Fail-fast security checks terminate workflows immediately for unauthorized access
- Minimal GITHUB_TOKEN permissions following principle of least privilege
Application-Level Security (Second Layer)
- Allow List Based Authorization: Only specific GitHub usernames can trigger agent actions
- Rate Limiting: Prevents abuse with configurable request limits per user
- Repository Validation: Restricts agents to specific repositories
- Comprehensive Security Checks: All layers validated before any action
2. Agent Admins
The agent admins list is configured in .agents.yaml under the security.agent_admins field. Only these users can trigger agent actions via [Action][Agent] keywords. The repository owner (extracted from GITHUB_REPOSITORY environment variable) is always included automatically.
Agent Admin Capabilities
Agent admins have the following special capabilities:
- Trigger Agent Actions: Use
[Action][Agent]keywords to invoke agents - Extend Iteration Limits: Use
[CONTINUE]to allow more agent iterations (see below) - Authoritative Comments: Their comments are treated as authoritative in review contexts
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.
- 4d ago First seen · 507 lines · 0 tokens per session scan B 3f9c0933ba62
security is an agent published in the GitHub repository AndrewAltimit/template-repo (131 stars, last pushed 2mo ago), licensed Unlicense. It costs nothing until one of its globs matches a file; then it loads 4,511 tokens. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). It is 89% identical to security-detailed, differing in 401 lines, and is treated as a copy.
Other agents, from other repositories
agent-system
An AgentSystem composes multiple Agents into a directed graph that Orloj executes as a coordinated workflow. The graph defines how messages flow between agents during task execution.
ai-safety-auditor
AI safety and security auditor for LLM systems. Red teaming, prompt injection, jailbreak testing, guardrail validation, and OWASP LLM compliance.
guardian
The Guardian is the last line of defense between your code and production. It runs a multi-dimensional quality gate that checks tests, type safety, security, code quality, and documentation coverage in a single pass. Unlike a CI pipeline that tells you something broke 10 minutes after you pushed, the Guardian catches…
compliance
The Compliance agent protects your project from legal and regulatory risk. It audits dependency licenses for compatibility (is that GPL-3.0 package going to force your MIT project open-source?), checks data handling against GDPR requirements (do you have a data inventory? can users request deletion?), verifies WCAG…
crucible-detective
The CRUCIBLE Detective performs forensic audits on test suites to find the gap between claimed quality and actual quality. It was born from a real incident: a project with 1,601 "passing" tests and 77% "claimed coverage" that turned out to have approximately 15% actual coverage, 439 mocks, 66+ hollow assertions, and…
detective
The Detective is a forensic analyst for your codebase. It does not fix things -- it finds things. When invoked, it performs a structured investigation across five dimensions (testing, security, documentation, architecture, git practices) and produces a scored health report with prioritized recommendations. Every…