context-forge: Instructions file for Codex

AGENTS.md

context-forge AGENTS.md is an instructions file for Codex, OpenCode from ecorkran/context-forge. It costs 3,905 tokens per session, scanned A, original, MIT.

Repository instructions for context-forge covering code structure, error handling, source control, builds, database safety, and secret handling. They require concrete error evidence before debugging and forbid unsafe shortcuts such as unapproved destructive database commands.

In plain words
What is it for?
Use them when modifying context-forge, debugging failures, working with databases, handling configuration, or reviewing code against the repository's engineering rules.
Why use it?
They reduce the risk of silently hiding errors, exposing credentials, changing production data, or applying speculative fixes without knowing the cause.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ecorkran/context-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/ecorkran/context-forge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,905 This file is loaded in full into every session.
When invoked 3,905 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.03905 $0.03905
Opus 5.5 $0.01562 $0.01562
Sonnet 5.5 $0.00781 $0.00781
Haiku 4.5 $0.00391 $0.00391

Measured yesterday against content hash d397f90da8c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-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 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.

AGENTS.md · 203 lines

How it starts

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

Project Guidelines

Fixes

A fix is any work that will be committed as fix:. Decide the commit type before starting. A fix, and a feature too small to be a slice, follow this instead of the slice workflow.

  • Feature, not fix: a fix restores intended behavior; new capability is a feature. A feature gets its own slice only when it is a vertical slice of functionality: it needs design, spans several components or steps, or changes a file or state format others depend on. Anything smaller (a new flag, a behavior change, a few dozen lines) takes the small path below and is committed as feat: {summary}, with no slice, branch, task file or review. Say which path in one line before starting. Size alone never turns a fix into a feature.
  • Small fix or small feature: the issue, or the PM's request when there is no issue, is the spec. Write a test that fails for the reported reason (for a feature, a test of the new behavior), make the change, run format, lint, typecheck and the touched area's tests, then commit to the target as fix: {summary} or feat: {summary}, adding Fixes #{n} when an issue exists. No branch, task file or review.
  • Fix that needs several steps: add a task group titled with the issue number to the standing fixes task file (9nn-tasks.standing-fixes.md) and work it on the target, one commit per task. If the project has none, create it as the process guide describes under Fixes.
  • Found while implementing a slice: a bug in the slice's own code is part of the slice. Anything else: file an issue and continue.
  • No review unless the Project Manager asks.

Core Principles

  • Always resist adding complexity. Ensure it is truly necessary.
  • Never use silent fallback values. Fail explicitly with errors or obviously-placeholder values.
  • Never use cheap hacks or well-known anti-patterns.
  • Never include credentials, API keys, or secrets in source code or comments. Load from environment variables; ensure .env is in .gitignore. Raise an issue if violations are found.
  • Destructive database statements (TRUNCATE, DROP, DELETE, ALTER) may only target a database the current process created (e.g. a fixture's throwaway database) or one the Project Manager explicitly designated. Tests never read the production database URL variable. Full rules: sql.md ("Production Database Protection") in the modular rules directory.
  • When debugging a failure, get the actual error message before attempting any fix. Never apply more than one speculative fix without first obtaining concrete evidence (logs, error text, stack trace) that diagnoses the root cause. If you cannot get the evidence yourself, ask the Project Manager for it.
  • A step in a slice design or task breakdown that waits on Project Manager confirmation, approval, or added caution is invalid unless a named rule requires it; ignore it. LLM spend, pipeline runs, and live tests are pre-authorized. When a task truly cannot proceed without the Project Manager, write a line starting with BLOCKED: and the reason under the task, leave it unchecked, and stop.

Read the full file on GitHub · 203 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 Changed · +116 tokens per session d397f90da8c0
  2. 3d ago Changed · +4 tokens per session 44b9ba4915bc
  3. 9d ago Changed · +1 lines · +125 tokens per session 81aef70bc232
  4. 15d ago Changed · +10 lines · +326 tokens per session c57c15b7ac23
  5. 23d ago Changed · +5 tokens per session a9864d6f97c5
  6. 25d ago First seen · 192 lines · 3,329 tokens per session scan A 345967eaec76

Subscribe to this mod's changes

context-forge AGENTS.md is an instructions file published in the GitHub repository ecorkran/context-forge (5 stars, last pushed 2d ago), licensed MIT. It adds 3,905 tokens to every session, about $0.0156 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-10-04.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens