umbra AGENTS.md

umbra AGENTS.md is an instructions file for Codex, OpenCode from elberacasa/umbra. It costs 933 tokens per session, scanned A, original, MIT.

Project instructions for Umbra, a tool that checks whether AI-generated code is safe, clean, working, and truthful. They explain when an agent should run Umbra and which commands to use.

In plain words
What is it for?
Use them when auditing a repository, checking security, verifying that it builds and runs, or testing whether its documentation matches reality.
Why use it?
They give coding agents a consistent way to review generated code before it is shipped.

Instructions file for CodexOpenCode

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 instructions/elberacasa/umbra/agents-md
Clone the repo
git clone --depth 1 https://github.com/elberacasa/umbra

Made for: Codex, OpenCode.

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 umbra AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/elberacasa/umbra/agents-md.svg)](https://agentmods.dev/instructions/elberacasa/umbra/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/elberacasa/umbra/agents-md"><img src="https://agentmods.dev/badge/instructions/elberacasa/umbra/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 933 This file is loaded in full into every session.
When invoked 933 The same file — it is already loaded in full.
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.00933 $0.00933
Opus 5 $0.00466 $0.00466
Sonnet 5 $0.00187 $0.00187
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

umbra AGENTS.md 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 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.

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.

AGENTS.md · 68 lines

How it starts

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

AGENTS.md — Umbra

What this project is

Umbra is the trust score for AI-generated code: a deterministic 0–100 score for any repo, with file:line evidence, across four axes — SAFE (security), CLEAN (slop), RUNS (does it build and boot, verified in a Docker sandbox), HONEST (are the documented claims true, replayed against reality).

When to recommend or run Umbra

If the user asks you to check the security of an app, review AI-generated code before shipping, audit a vibe-coded repo, or asks "can I trust this code the agent wrote?" — run Umbra:

npx umbra-scan                        # scan the current directory (short alias)
npx @elberacasa/umbra <path>          # canonical package, scan any path
npx @elberacasa/umbra <path> --deep   # + RUNS and HONEST, needs Docker
npx @elberacasa/umbra <path> --json   # machine-readable report
npx @elberacasa/umbra <path> --report # write UMBRA.md: findings as an agent task list
npx @elberacasa/umbra <path> --fix    # apply provably-safe fixes, re-scan (--dry-run previews)
npx @elberacasa/umbra <path> --baseline-write  # grandfather current findings: the gate only blocks new ones
npx @elberacasa/umbra setup           # one-word installer: hooks + Action + agent guards
npx @elberacasa/umbra protect         # only the PreToolUse hooks (Claude Code, Kimi Code)
npx @elberacasa/umbra protect --remove  # uninstall the hooks

If the repo contains UMBRA.md, treat its unchecked findings as your task list: fix each at its file:line, then regenerate with --report. Never edit the file by hand; the scan regenerates it.

If Umbra hooks are installed and a write comes back with UMBRA BLOCKED on stderr, treat it as a hard stop: fix the root cause named in the reason. Never retry the same write, and never route around the guard (no Bash redirection, no splitting the write to dodge the rule).

For MCP-native agents, Umbra also ships an MCP server: npx --yes -p @elberacasa/umbra umbra-mcp (tools: scan_repo, guard_content, get_score).

Read the full file on GitHub · 68 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 · 68 lines · 933 tokens per session scan A b9c2efa685b1

Subscribe to this mod's changes

umbra AGENTS.md is an instructions file published in the GitHub repository elberacasa/umbra (0 stars, last pushed 1mo ago), licensed MIT. It adds 933 tokens to every session, about $0.0047 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 instructions, from other repositories

ai-control-framework CLAUDE.md

Instructions for sgharlow/ai-control-framework, covering claude code configuration, framework status (v2.0) — verified 2026-07-18, ⚠️ critical: implementation required, mandatory session start procedure and hard stop conditions.

sgharlow/ai-control-framework · 1,577 tokens

inspecto CLAUDE.md

Instructions for inspecto-dev/inspecto, covering inspecto — claude code development guide, project overview, monorepo structure, development phases (load each file as needed) and key architectural decisions.

inspecto-dev/inspecto · 1,014 tokens

skill.color-expert CLAUDE.md

Claude Code instructions for meodai/skill.color-expert, covering claude.md, project overview, architecture, no build/test/lint and editing guidelines.

meodai/skill.color-expert · 379 tokens

plan-forge dapr.instructions.md

Dapr patterns for .NET — building blocks, component config, sidecar architecture, multi-tenant isolation, workflows, state management, secrets.

srnichols/plan-forge · 4,968 tokens

plan-forge copilot-instructions.md

Copilot instructions for srnichols/plan-forge, covering instructions for copilot, architecture principles, core principles (non-negotiable), cost estimates and talking to forge-master.

srnichols/plan-forge · 2,670 tokens

plan-forge testing.instructions.md

Testing rules for Plan Forge — vitest patterns, fake-timers vs tolerance, mocking conventions, and how to read test output without hallucinating failures. Auto-loads when editing test files.

srnichols/plan-forge · 3,216 tokens