SubFrame AGENTS.md

A set of instructions for SubFrame, a project and tool that helps AI coding assistants work in a shared codebase. It tells the assistant to stay within the user's request and explains how sessions and parallel work should be handled.

In plain words
What is it for?
It guides task boundaries, session setup, documentation updates, and concurrent work using separate worktrees, which are isolated copies of a code repository.
Why use it?
It reduces unintended code changes and gives the assistant consistent rules for working with SubFrame and native coding tools.

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/codename-11/subframe/agents-md
Clone the repo
git clone --depth 1 https://github.com/Codename-11/SubFrame

Made for: Codex, OpenCode.

Per session 3,973 This file is loaded in full into every session.
When invoked 3,973 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.03973 $0.03973
Opus 5 $0.01987 $0.01987
Sonnet 5 $0.00795 $0.00795
Haiku 4.5 $0.00397 $0.00397

Measured yesterday against content hash 38b273818d0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

SubFrame 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 402 lines

How it starts

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

SubFrame - SubFrame Project

This project is managed with SubFrame. AI assistants should follow the rules below to keep documentation up to date.

Note: This file is named AGENTS.md to be AI-tool agnostic. CLAUDE.md and GEMINI.md contain a reference to this file.


Core Working Principle

Only do what the user asks. Do not go beyond the scope of the request.

  • Implement exactly what the user requested — nothing more, nothing less.
  • Do not change business logic, flow, or architecture unless the user explicitly asks for it.
  • If a user asks for a design change, only change the design. Do not refactor, restructure, or modify functionality alongside it.
  • If you have additional suggestions or improvements, present them as suggestions to the user. Never implement them without approval.
  • The user's request must be completed first. Additional ideas come after, as proposals.

Relationship to Native AI Tools

SubFrame enhances native AI coding tools — it does not replace them.

Claude Code works exactly as normal. Built-in features (/init, /commit, /review-pr, /compact, /memory, CLAUDE.md) are fully supported. CLAUDE.md is Claude Code's native instruction file — users can add their own tool-specific instructions freely. SubFrame adds a small backlink reference pointing to this AGENTS.md file using HTML comment markers (<!-- SUBFRAME:BEGIN --> / <!-- SUBFRAME:END -->). SubFrame will never overwrite user content in CLAUDE.md.

Gemini CLI works exactly as normal. Built-in features (/init, /model, /memory, /compress, /settings, GEMINI.md) are fully supported. GEMINI.md is Gemini CLI's native instruction file — same backlink approach as CLAUDE.md. Users can add their own instructions freely and SubFrame won't overwrite them.

Codex CLI gets SubFrame context via a wrapper script at .subframe/bin/codex that injects AGENTS.md as an initial prompt.

This file (AGENTS.md) contains SubFrame-specific rules that apply across all tools:

  • Sub-Task management (.subframe/tasks/*.md, index at .subframe/tasks.json)
  • Codebase mapping (.subframe/STRUCTURE.json)
  • Context preservation (.subframe/PROJECT_NOTES.md)
  • Internal docs and changelog (.subframe/docs-internal/)
  • Session notes and decision tracking

Read the full file on GitHub · 402 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. yesterday First seen · 402 lines · 3,973 tokens per session scan A 38b273818d0d

Subscribe to this mod's changes

SubFrame AGENTS.md is an instructions file published in the GitHub repository Codename-11/SubFrame (10 stars, last pushed 7d ago), licensed MIT. It adds 3,973 tokens to every session, about $0.0199 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.