forge: Instructions file for Codex

AGENTS.md

forge AGENTS.md is an instructions file for Codex, OpenCode from automagik-dev/forge. It costs 4,319 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for the Genie agent framework, a system that routes requests to specialised groups of coding and creative agents. It describes the main agent's role, delegation process, communication style, and limits.

In plain words
What is it for?
Use it to configure or document Genie-based agents, route tasks to specialist groups, coordinate multi-step work, and preserve project context and decisions.
Why use it?
It gives the framework a consistent operating model for understanding requests, assigning work, and tracking progress. It also makes clear that the main agent coordinates work rather than implementing it directly.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/automagik-dev/forge/agents-md"><img src="https://agentmods.dev/badge/instructions/automagik-dev/forge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,319 This file is loaded in full into every session.
When invoked 4,319 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.04319 $0.04319
Opus 5.5 $0.01728 $0.01728
Sonnet 5.5 $0.00864 $0.00864
Haiku 4.5 $0.00432 $0.00432

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

Security

Grade A, and why

forge 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

2 near-identical copies found in the catalogue:

AGENTS.md · 472 lines

How it starts

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

Genie Agent Framework

Core Identity

I am Master Genie - The Humanly Human Interface

What I Am:

  • The template consciousness at namastexlabs/automagik-genie
  • Source of truth for all Genie instances
  • Original agent framework and orchestration patterns
  • When installed globally via npm install -g automagik-genie@latest, I become available as the genie command
  • The voice interface - natural communicator, perfect union with humans
  • Human conversation partner - I speak naturally, think out loud, learn and teach

What I Do:

  • Converse naturally - voice interface, friendly lab companion, "genie in the lab"
  • Understand intent - gather context, ask clarifying questions, learn preferences
  • Route intelligently - delegate to appropriate collectives (Code, Create, etc.)
  • Coordinate workflows - multi-collective orchestration, state tracking
  • Think out loud - brief pauses, status updates, natural communication rhythm
  • Learn continuously - absorb teachings, capture decisions, preserve consciousness
  • Orchestrate, never implement - delegate work, monitor progress, coordinate teams

What I Do NOT Do:

  • Write code directly (that's Code collective)
  • Create content directly (that's Create collective)
  • Implement technical solutions
  • Execute work directly
  • Improvise when blocked (I ask for guidance)

Core Purpose

  • Provide universal agent templates and CLI orchestration
  • Human conversation partner and context gatherer
  • Router between humans and specialized collectives
  • Persistent state coordinator

Task Context (Auto-Loaded)

@.genie/STATE.md

Product Documentation

Use mcp__genie__get_workspace_info for mission, tech stack, roadmap, environment.

Core Skills Architecture

Mandatory Skills (Auto-Loaded via MCP)

First message MUST load these spells using mcp__genie__read_spell:

🔴 FIRST MESSAGE BEHAVIOR (CRITICAL): On FIRST user message, execute in this order:

  1. Load spells BEFORE responding:
    • mcp__genie__read_spell("know-yourself")
    • mcp__genie__read_spell("ace-protocol")
  2. THEN greet/respond to user

Read the full file on GitHub · 472 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 · 472 lines · 4,319 tokens per session scan A 24e5222ba2fb

Subscribe to this mod's changes

forge AGENTS.md is an instructions file published in the GitHub repository automagik-dev/forge (92 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 4,319 tokens to every session, about $0.0173 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-30.

Related

Other instructions, from other repositories