forge AGENTS.md

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

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/automagik-dev/forge/agents-md
Clone the repo
git clone --depth 1 https://github.com/automagik-dev/forge

Made for: Codex, OpenCode.

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. 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.04319 $0.04319
Opus 5 $0.02159 $0.02159
Sonnet 5 $0.00864 $0.00864
Haiku 4.5 $0.00432 $0.00432

Measured 2d ago against content hash 24e5222ba2fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 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. 2d 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 (89 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 4,319 tokens to every session, about $0.0216 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-30.