context-forge: Instructions file for Codex

AGENTS.md

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

A set of instructions for coding agents working on the ContextForge project. It explains how to maintain its AGENTS.md files, keep Markdown useful, and evolve the project carefully.

In plain words
What is it for?
Use it when changing ContextForge code, documentation, references, tasks, or other project structures that should remain clear and durable.
Why use it?
It helps agents preserve the project's human-readable documentation and avoid changes that make its files harder to understand, edit, or search.

Instructions file for CodexOpenCode

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

This is srmackey/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 srmackey/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/srmackey/context-forge/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/srmackey/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/srmackey/context-forge/agents-md/github.svg)](https://agentmods.dev/instructions/srmackey/context-forge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/srmackey/context-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/srmackey/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/srmackey/context-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/srmackey/context-forge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 929 This file is loaded in full into every session.
When invoked 929 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.00929 $0.00929
Opus 5.5 $0.00372 $0.00372
Sonnet 5.5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

Measured 15d ago against content hash 2be3daf785ae, 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 15d 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 · 60 lines

How it starts

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

AGENTS.md — Context Forge

Guidance for agents and contributors working in this repo.

Product. Context Forge is a local MCP server for workspace memory. It stores working files and sitting records as markdown. A derived SQLite+FTS5 index is rebuildable. The store lives under ~/.contextforge/ (override with CONTEXTFORGE_HOME). When CONTEXTFORGE_ROOT points at a folder that has nexus.md, each nexus folder holds its own store at _contextforge/, and a call names an address. The workspace slug stays the folder basename.

Agent stance

You are a careful steward of a small, markdown-first memory MCP. Files on disk are the truth. Prefer the existing tools (bind_workspace, write, write_working, get_pack, search) before adding new ones.

Stack

  • Python 3.11+, uv, FastMCP, Pydantic v2
  • Markdown + YAML frontmatter on disk; SQLite + FTS5 is derived
  • Tests with pytest under tests/
  • uv sync / uv run pytest / uv run contextforge

Invariants

  • Two types: workspace (bound to a folder; the slug is the folder basename) and document (a markdown file under that workspace). Paths are the names. No domain ontology in the server.
  • With CONTEXTFORGE_ROOT set, the call's workspace is an address. The address selects that nexus's _contextforge/ store. A call pier/dock opens dock's records in pier's store only. A bare name resolves only when one node has it. Without the root, one store at CONTEXTFORGE_HOME behaves as before.
  • Two layers, defaulted by path: sittings under sittings/, working everywhere else.
  • Every read and write is workspace-scoped. There is no global search.
  • Markdown wins. reindex (internal, on write and bind) rebuilds the index.
  • Write is explicit. The store does not guess, extract, or lint a document body.
  • A sitting that does not call the store misses it.

Privacy

This repo ships no real personal data and no project names from a real install.

  • Docs, comments, examples, and tests use fictional workspace vocabulary (harbor-notes, river-ledger).
  • Do not commit a real vault's contents, filesystem paths, or the names of a real install's projects.
  • Context Forge is part of Domain Prime. Naming and linking the other Domain Prime repos (domainprime, insitu, envoy, brain-forge) is fine. Names from a real install that runs them are not.
  • Write grain (what may go in a file) belongs to the bound workspace's owner, not this server.

Read the full file on GitHub · 60 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. 15d ago Changed · +1 lines · +53 tokens per session 2be3daf785ae
  2. 16d ago Changed · +10 tokens per session 44148e33601f
  3. 1mo ago Changed · +1 lines · +132 tokens per session 7b5f1ae03525
  4. 1mo ago Changed · +1 lines · +47 tokens per session 9e4d6e6c6fba
  5. 1mo ago Changed · +13 tokens per session fbccccdb3587
  6. 1mo ago Changed · -105 lines · -2,160 tokens per session 12d2aef193fb
  7. 2mo ago First seen · 162 lines · 2,834 tokens per session scan A d7a67e65c956

Subscribe to this mod's changes

context-forge AGENTS.md is an instructions file published in the GitHub repository srmackey/context-forge (0 stars, last pushed 10d ago), licensed MIT. It adds 929 tokens to every session, about $0.0037 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

context-forge AGENTS.md compared with instructions from other repositories

context-forge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-forge AGENTS.mdsrmackey/context-forgeInstructions file010d agoMITA929Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot