DCGP: Instructions file for Codex

AGENTS.md

DCGP AGENTS.md is an instructions file for Codex, OpenCode from addicted2crypto/DCGP. It costs 3,449 tokens per session, scanned A, original, MIT.

A repository instruction file that tells coding agents how to work with DCGP, a system designed to manage context during long language-model sessions. It documents the system’s operating rules, verification script, and intelligence loop.

In plain words
What is it for?
Use it when an agent works in the DCGP repository and needs to follow its governance process, check conformance, understand its context-management design, or verify implementation state.
Why use it?
It gives agents one reference for the project’s rules and current implementation status, helping prevent context loss and unsupported claims about features.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/addicted2crypto/dcgp/agents-md"><img src="https://agentmods.dev/badge/instructions/addicted2crypto/dcgp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,449 This file is loaded in full into every session.
When invoked 3,449 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.03449 $0.03449
Opus 5.5 $0.01380 $0.01380
Sonnet 5.5 $0.00690 $0.00690
Haiku 4.5 $0.00345 $0.00345

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

Security

Grade A, and why

DCGP 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 · 256 lines

How it starts

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

DCGP - Agent Mounting Guide

Dynamic Context Guidance Paths is the semantic operating system for LLM agents. This file is the single source of truth for any agent operating in this repository.

Modern AI tools that support AGENTS.md (Claude Code, Cursor, Zed, OpenAI Codex CLI, and a growing list) read this file directly. Tools that insist on their own filename can be aliased in one line (cp AGENTS.md .clinerules etc.) - DCGP itself ships only this file plus HARDRULES.md and CLAUDE.md to keep the governance surface slim. For runtime tool access rather than static file reads, use @dcgp/mcp (see README).

Live implementation state is defined by ./scripts/verify-dcgp.sh. If this document claims a feature the script does not verify, the script wins. Re-read this file only after verify-dcgp.sh exits 0.


Conformance tier claimed by this repo

DCGP-1.0-FULL + EXTENDED

Phase A ships the governance kernel plus the FineTuningExporter. Phases B-D (16 community paths, OpenCode plugin, CLI, VS Code extension) are explicitly deferred and their absence is not a bug.


What this system does

DCGP prevents context decay in long LLM sessions by running a closed-loop control system around the model. It is not a context pruner. It is not a summarizer. It is a governance layer - a kernel that manages what the model knows, how certain it is about its domain, when to intervene before hallucinations begin, and how much of the working context survives pruning.

Every agent operating in this codebase operates inside this loop. There are no exceptions.


The 7-step Circular Intelligence Loop

Sense -> Classify -> Predict -> Orchestrate -> Execute -> Verify -> Refine -> (back to Sense)

Step 1 - Sense (FingerprintEngine): Reads the workspace before you type. Parses packages, env vars, git branch, config files. 30s TTL cache. 16 ignored dirs. Zero shell calls.

Step 2 - Classify (DomainClassifier): Scores all registered domain paths by weighted signal match. Confidence 0.0-1.0. Signal weights: packages(0.95) > files(0.90) = gitBranch(0.90) > env(0.85) > tools(0.75) > keywords(0.60). Session keywords capped at 500. Detects collision (top-two confidences within COLLISION_DELTA = 0.10) and deadlock (A->B->A within SHIFT_COOLDOWN_TURNS = 3). Forced reclassification every CLASSIFIER_TTL_TURNS = 20 turns regardless of entropy state (stale-classifier blind spot).

Read the full file on GitHub · 256 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 · 256 lines · 3,449 tokens per session scan A ea42b9c5ee51

Subscribe to this mod's changes

DCGP AGENTS.md is an instructions file published in the GitHub repository addicted2crypto/DCGP (6 stars, last pushed 3d ago), licensed MIT. It adds 3,449 tokens to every session, about $0.0138 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

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,750 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