SubFrame: Instructions file for Claude Code

AGENTS.md

SubFrame AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from Codename-11/SubFrame. It costs 3,973 tokens per session, scanned A, original, MIT.

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 Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is Codename-11/SubFrame's own configuration. It tells Claude Code, Codex and OpenCode how to work on SubFrame itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SubFrame configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Codename-11/SubFrame. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Codename-11/SubFrame/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Codename-11/SubFrame

Made for: Claude Code, 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 SubFrame AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/codename-11/subframe/agents-md/github.svg)](https://agentmods.dev/instructions/codename-11/subframe/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/codename-11/subframe/agents-md"><img src="https://agentmods.dev/badge/instructions/codename-11/subframe/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for SubFrame AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/codename-11/subframe/agents-md"><img src="https://agentmods.dev/badge/instructions/codename-11/subframe/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03973 $0.03973
Opus 5.5 $0.01589 $0.01589
Sonnet 5.5 $0.00795 $0.00795
Haiku 4.5 $0.00397 $0.00397

Measured 1mo ago against content hash 38b273818d0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 yesterday), licensed MIT. It adds 3,973 tokens to every session, about $0.0159 per session on Opus 5.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