agentforge-graph: Instructions file for Codex

AGENTS.md

agentforge-graph AGENTS.md is an instructions file for Codex, OpenCode from Scaffoldic/agentforge-graph. It costs 2,045 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for AgentForge Graph, an application framework for building AI assistants. It defines the project structure, which files may be edited, and rules the code must follow.

In plain words
What is it for?
Use it to guide changes to AgentForge tools, configuration, reasoning settings, and developer-owned files while preserving the project's ownership markers and architecture rules.
Why use it?
It gives coding assistants the project-specific context needed to make compatible changes. It also protects framework-managed files from accidental edits.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is Scaffoldic/agentforge-graph's own configuration. It tells Codex and OpenCode how to work on agentforge-graph 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 agentforge-graph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Scaffoldic/agentforge-graph. 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/Scaffoldic/agentforge-graph/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Scaffoldic/agentforge-graph

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 agentforge-graph AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/scaffoldic/agentforge-graph/agents-md/github.svg)](https://agentmods.dev/instructions/scaffoldic/agentforge-graph/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/scaffoldic/agentforge-graph/agents-md"><img src="https://agentmods.dev/badge/instructions/scaffoldic/agentforge-graph/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 agentforge-graph AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/scaffoldic/agentforge-graph/agents-md"><img src="https://agentmods.dev/badge/instructions/scaffoldic/agentforge-graph/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,045 This file is loaded in full into every session.
When invoked 2,045 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.02045 $0.02045
Opus 5.5 $0.00818 $0.00818
Sonnet 5.5 $0.00409 $0.00409
Haiku 4.5 $0.00204 $0.00204

Measured 2mo ago against content hash 783536f94bb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentforge-graph 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 2mo 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 · 165 lines

How it starts

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

AgentForge agent — AI assistant instructions

This project is built on AgentForge 0.3.1. Use these rules when suggesting changes. The file is read by Claude Code and any tool following the AGENTS.md convention.

Project shape (you must respect this)

  • Framework version: 0.3.1
  • Template: minimal
  • Project slug: agentforge-graph
  • LLM provider: anthropic

File ownership rules

  • Files starting with AGENTFORGE-MANAGED: are owned by the framework. Do not edit. Suggest changes to YAML config or developer-owned files instead.
  • Files starting with AGENTFORGE-FORKED: were customised by the developer. Edit normally; do not restore the marker.
  • Files with no marker are developer-owned. Edit normally.
  • Markdown documents may carry a <!-- agentforge:end-managed --> marker. Everything above belongs to the framework; everything below is the developer's custom section and survives upgrades.

Architecture invariants

  • Tools — use the @tool decorator on a typed function, OR subclass Tool. Type hints drive the input schema; do not hand-write JSON schemas.
  • Reasoning loop — do not edit. Configure via agentforge.yaml > agent.strategy.
  • LLM clients — do not import vendor SDKs directly. Use agent.providers["..."] or pass model="<provider>:<model_id>".
  • Memory — do not write SQL directly. Use agent.memory.put / .get / .query.
  • Costs — do not bypass BudgetPolicy. Every LLM call is checked. Bypassing it is a P3 (cost-safety) violation.
  • Run id — do not invent your own correlation id. Use current_run().run_id from agentforge_core.production.run_context.
  • Guardrails — input / output / tool-gate validators live in agentforge.guardrails. Custom validators implement the locked ABCs in agentforge_core.contracts.guardrails.

How to add common things

Open the runbook for the full step-by-step. Each runbook lives at docs/runbooks/NN-<topic>.md and is upgrade-safe (the framework maintains the managed section).

Read the full file on GitHub · 165 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. 2mo ago First seen · 165 lines · 2,045 tokens per session scan A 783536f94bb4

Subscribe to this mod's changes

agentforge-graph AGENTS.md is an instructions file published in the GitHub repository Scaffoldic/agentforge-graph (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 2,045 tokens to every session, about $0.0082 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

agentforge-graph AGENTS.md compared with instructions from other repositories

agentforge-graph AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentforge-graph AGENTS.mdScaffoldic/agentforge-graphInstructions file53mo agoApache-2.0A2,045Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode