angie AGENTS.md

angie AGENTS.md is an instructions file for Codex, OpenCode from ammnt/angie. It costs 1,444 tokens per session, scanned B, original, BSD-2-Clause.

A set of project instructions for building Angie, a security-focused web server, as a small container image. It documents its build tools, security constraints, versions, and runtime settings.

In plain words
What is it for?
Building and maintaining Angie’s Docker image, including multi-stage compilation, static linking, image slimming, signing, version arguments, and rootless execution.
Why use it?
It tells an agent which build choices are required and which changes could weaken the image or break its deployment assumptions.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ammnt/angie/agents-md.svg)](https://agentmods.dev/instructions/ammnt/angie/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ammnt/angie/agents-md"><img src="https://agentmods.dev/badge/instructions/ammnt/angie/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,444 This file is loaded in full into every session.
When invoked 1,444 The same file — it is already loaded in full.
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.01444 $0.01444
Opus 5 $0.00722 $0.00722
Sonnet 5 $0.00289 $0.00289
Haiku 4.5 $0.00144 $0.00144

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

Security

Grade B, and why

angie AGENTS.md 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

USER root # Never run as root
AGENTS.md · 185 lines

How it starts

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

AGENTS.md — AI Agent Instructions for Distroless Angie

🎯 Project Overview

Production-ready, security-hardened ANGIE image built from scratch with HTTP/3, QUIC, ECH, and PQC support.

  • Base: Scratch (distroless)
  • Builder: Alpine Linux (multi-stage)
  • Compiler: Clang with -fhardened flags
  • User: 10001:10001 (rootless by design)
  • Registry: ghcr.io/ammnt/angie, Docker Hub: ammnt/angie

🏗️ Build System

Key Technologies

  • BuildKit with Docker Buildx for multi-stage builds
  • Static compilation — no dynamic linking to system libraries
  • Mint for image slimming (post-build optimization)
  • UPX for binary compression (with careful exclusions)
  • Cosign for signing and attestation

Build Arguments (from .env)

BASE_VERSION    # Alpine base version
BASE_HASH       # Alpine image digest
OPENSSL_VERSION # OpenSSL version
APP_VERSION     # Angie version
VCS_REF         # Git commit SHA
BUILD_DATE      # Build timestamp

Critical Build Constraints

  • ❌ NEVER add shell/package manager to final image
  • ❌ NEVER add NJS module (security: libxml2/libxslt vulns)
  • ❌ NEVER change user from 10001:10001
  • ❌ NEVER add ENTRYPOINT scripts (only CMD)
  • ✅ MUST compile with -fhardened flags
  • ✅ MUST strip binaries after compilation
  • ✅ MUST include HEALTHCHECK
  • ✅ MUST support TLS 1.3, QUIC, HTTP/3, ECH, PQC

📁 File Structure Conventions

Dockerfile.template

  • Multi-stage: builder (Alpine) → final (scratch)
  • Build phases: deps → build → strip → final
  • Static linking with musl
  • No unnecessary layers (chain RUN commands)

ANGIE Configuration

  • angie.conf — main configuration
  • default.conf — default server block
  • example.conf — reference for HTTP/3, ECH, PQC
  • Listen on 8080 (HTTP) and 8443 (HTTPS) by default

Security Scanning Matrix

  • Hadolint → Dockerfile linting
  • Trivy/Grype/Snyk/Clair → Vulnerability scanning
  • Dockle → CIS benchmark validation
  • Syft → SBOM generation (CycloneDX)
  • Scout → Docker official scanning
  • CodeQL → SAST analysis (separate workflow)

Read the full file on GitHub · 185 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. 3d ago First seen · 185 lines · 1,444 tokens per session scan B ddb9b7a3fef7

Subscribe to this mod's changes

angie AGENTS.md is an instructions file published in the GitHub repository ammnt/angie (11 stars, last pushed 8d ago), licensed BSD-2-Clause. It adds 1,444 tokens to every session, about $0.0072 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.