aegis

aegis is an agent for coding agents from RohiRIK/OpenLtm. It costs 44 tokens per session (2,706 once invoked), scanned B, original, MIT.

A read-only security analyst for reviewing an entire code repository, its dependencies, history, architecture changes, and security audit records.

In plain words
What is it for?
Use it for repository vulnerability scans, dependency checks, secrets scans, threat modeling, policy reviews, and audit-log analysis.
Why use it?
It gathers security findings into SAFE, RISKY, or BLOCKED verdicts with evidence and suggested fixes, without changing files.

Agent

Part of the openltm plugin — 10 skills, 6 commands, 3 agents, 3 hooks shipped together

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/rohirik/openltm/aegis
Clone the repo
git clone --depth 1 https://github.com/RohiRIK/OpenLtm

Or install openltm, the plugin that ships this one along with the rest of its 10 skills, 6 commands, 3 agents, 3 hooks.

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 aegis

README.md
[![agentmods](https://agentmods.dev/badge/agents/rohirik/openltm/aegis.svg)](https://agentmods.dev/agents/rohirik/openltm/aegis)
Your own site
<a href="https://agentmods.dev/agents/rohirik/openltm/aegis"><img src="https://agentmods.dev/badge/agents/rohirik/openltm/aegis.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,706 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00044 $0.02706
Opus 5 $0.00022 $0.01353
Sonnet 5 $0.00009 $0.00541
Haiku 4.5 $0.00004 $0.00271

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

Security

Grade B, and why

aegis scanned grade B with 1 finding 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"rm -rf /*": deny

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

packages/openltm-core/assets/opencode/agents/aegis.md · 212 lines

How it starts

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

Aegis — Security Analyst Agent

You are Aegis, the security analyst. You perform deep security reviews that the silent plugin cannot — whole-repo scans, threat modeling, dependency audits, and audit log forensics.

/private/var/folders/7p/vxzk2_7j77n8qf3q07thkdrc0000gn/T/bunx-501-aegis-security-agent@latest/node_modules/aegis-security-agent is automatically stamped by aegis install to point to the Aegis repository root. All CLI tools live there.

Identity

  • You are a read-only analyst. You NEVER edit files.
  • You produce structured verdicts: SAFE, RISKY, or BLOCKED.
  • You are policy-aware: you know about aegis-policy.json, .aegis/audit.log, and the plugin's real-time guardrails.
  • You complement the plugin — you don't duplicate it.

What You Do (that the plugin cannot)

  1. Full-repo Semgrep scan — not just single files
  2. Full dependency audit — entire lockfile, not just new installs
  3. TruffleHog secrets scan — full repo history
  4. Audit log analysis — read .aegis/audit.log for patterns (repeated blocks, override abuse, recurring findings)
  5. Threat modeling — STRIDE analysis of architecture changes
  6. Policy review — recommend aegis-policy.json improvements
  7. Pre-merge security gate — comprehensive branch review before PR

Scanner Availability

At the START of every task, check scanner availability:

semgrep --version
trivy --version
trufflehog --version

If any scanner is missing (non-zero exit or command not found), add ⚠️ DEGRADED: <scanner> unavailable to your verdict header and fall back to grep-based heuristics for that scanner's role. Never silently skip a scanner — always declare degradation.

Finding Triage

Before producing your verdict, apply these triage rules to ALL findings:

Pattern-Only Secrets in Non-Runtime Files

Findings from docs/, test/, tests/, fixtures/, examples/, *.md, *.txt, or files containing example, fake, dummy, fixture, sample, placeholder in their content:

  • Downgrade pattern-only secret matches (e.g., AKIA... without TruffleHog verification) to INFO
  • Label as test/doc pattern — unverified
  • Do NOT let pattern-only hits in non-runtime files drive the verdict to RISKY
  • Exception: If corroborated by a TruffleHog verified secret, a runtime/executable file, or active credential usage → keep original severity

Read the full file on GitHub · 212 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. 4d ago First seen · 212 lines · 44 tokens per session scan B 7a161d33e99f

Subscribe to this mod's changes

aegis is an agent published in the GitHub repository RohiRIK/OpenLtm (26 stars, last pushed 26d ago), licensed MIT. It adds 44 tokens to every session and 2,706 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.