ai-appsec AGENTS.md

ai-appsec AGENTS.md is an instructions file for Codex, OpenCode from subodhkc/ai-appsec. It costs 2,730 tokens per session, scanned A, original, MIT.

A project-specific AGENTS.md instruction file for building HAIEC, an MCP service focused on AI-agent security, across a defined series of development phases.

In plain words
What is it for?
For guiding work in the HAIEC security MCP repository and keeping related read-only repositories protected.
Why use it?
It records the workspace boundaries, design rules, and constraints that the agent must follow during that project.

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

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 ai-appsec AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/subodhkc/ai-appsec/agents-md.svg)](https://agentmods.dev/instructions/subodhkc/ai-appsec/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/subodhkc/ai-appsec/agents-md"><img src="https://agentmods.dev/badge/instructions/subodhkc/ai-appsec/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,730 This file is loaded in full into every session.
When invoked 2,730 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.02730 $0.02730
Opus 5 $0.01365 $0.01365
Sonnet 5 $0.00546 $0.00546
Haiku 4.5 $0.00273 $0.00273

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

Security

Grade A, and why

ai-appsec 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 · 229 lines

How it starts

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

AGENTS.md — HAIEC Agent Security MCP (Phase -1 → Phase 18)

Scope: These rules apply ONLY to the haiec-ai-agent-security-free-mcp build session (the multi-phase MCP construction project, ~16-18 phases). They do NOT apply to other projects on this machine. They are loaded automatically when this repo (or the HAIEC-workspace/ parent) is the active workspace.

Persistence: This file is the source of truth for session rules across phases. Do not delete or weaken it mid-project. If a later phase needs to amend a rule, edit this file explicitly and note the change in PHASES.md.


1. Workspace Layout

HAIEC-workspace/
├── haiec-ai-agent-security-free-mcp/   ← WRITE HERE (primary working repo)
├── haiec-website/                      ← READ ONLY (junction to ../Haiec Website)
├── llmverify-npm/                      ← READ ONLY (junction to ../llmverify-npm)
└── mcp-tenant-isolation/               ← READ ONLY (junction to ../mcp-tenant-isolation)
  • Primary write repo: haiec-ai-agent-security-free-mcp (public, GitHub: subodhkc/haiec-ai-agent-security-free-mcp, default branch main).
  • Read-only repos are Windows directory junctions to existing local clones. They share the working tree with those clones — inspect, do not modify.
  • No separate llmverify/ repo exists. llmverify-npm is the only LLMVerify repo in scope (user-confirmed 2026-08-16). Do not invent a llmverify/ path.

2. Architectural Principles (apply to every phase)

  1. Not a wrapper around three scanners. This repo becomes the public Agent Security control surface. LLMVerify and Tenant Isolation remain independent products and independent engines. Compose them ONLY where composition has an actual semantic reason. Never let the architecture drift into "run everything every time."

  2. Strict engine independence. scan_ai_security, scan_tenant_isolation, verify_llm_content, and check_deploy_security NEVER automatically invoke one another. Each is selected on its own semantic merit.

Read the full file on GitHub · 229 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 · 229 lines · 2,730 tokens per session scan A 66d7fb43ff6b

Subscribe to this mod's changes

ai-appsec AGENTS.md is an instructions file published in the GitHub repository subodhkc/ai-appsec (4 stars, last pushed 14d ago), licensed MIT. It adds 2,730 tokens to every session, about $0.0136 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.