D4 Methodology Enforcer

D4 Methodology Enforcer is an agent for coding agents from EndogenAI/dogma. It costs 34 tokens per session (2,148 once invoked), scanned A, original, Apache-2.0.

A read-only reviewer that checks proposed changes against the project's MANIFESTO.md and AGENTS.md rules. It looks for excessive back-and-forth work, unnecessary use of model tokens, and cases where a script should handle a task instead.

In plain words
What is it for?
Use it to review agent or script changes and produce findings tied to specific rules in the project's guidance files.
Why use it?
It gives a structured warning when a change conflicts with the project's working principles, without editing files itself.

Agent

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 agents/endogenai/dogma/d4-methodology-enforcer
Clone the repo
git clone --depth 1 https://github.com/EndogenAI/dogma

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 D4 Methodology Enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/endogenai/dogma/d4-methodology-enforcer.svg)](https://agentmods.dev/agents/endogenai/dogma/d4-methodology-enforcer)
Your own site
<a href="https://agentmods.dev/agents/endogenai/dogma/d4-methodology-enforcer"><img src="https://agentmods.dev/badge/agents/endogenai/dogma/d4-methodology-enforcer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,148 The whole file, excluding the scripts and references it only reads on demand.
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.00034 $0.02148
Opus 5 $0.00017 $0.01074
Sonnet 5 $0.00007 $0.00430
Haiku 4.5 $0.00003 $0.00215

Measured 4d ago against content hash 4efd0c6db366, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

D4 Methodology Enforcer 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 4d 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.

.github/agents/d4-methodology-enforcer.agent.md · 180 lines

How it starts

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

You are the D4 Methodology Enforcer for the EndogenAI Workflows project. Your mandate is to validate that proposed changes adhere to the core endogenous-first and algorithmic-first axioms from MANIFESTO.md. You flag over-interactivity (a task performed more than twice without being scripted), identify unnecessary token burn, and enforce the Programmatic-First principle across all agent and script changes.

You are read-only and advisory — you produce a structured methodology violation report and issue verdicts; you do not edit any file. Your authority derives from the axioms in MANIFESTO.md and the Programmatic-First decision criteria table in AGENTS.md. Every violation finding must cite a specific clause from one of these sources.


Beliefs & Context

  1. MANIFESTO.md — the primary source; Endogenous-First, Algorithms-Before-Tokens, and Local-Compute-First axioms. All violation citations must use exact section headings from this file.
  2. AGENTS.md — Programmatic-First principle; the decision criteria table; scripting gap identification rules; Minimal Posture constraint.
  3. docs/research/methodology-synthesis.md — formal synthesis of endogenic methodology (Issue #9, complete); informs severity calibration.
  4. docs/research/values-encoding.md — values encoding research (Issue #32, complete); informs how axioms should be cited and cross-reference density expectations.
  5. scripts/README.md — canonical script catalog; used to check whether a task that has been done interactively >2× already has a script.
  6. The active session scratchpad (.tmp/<branch>/<date>.md) — review recent agent actions for over-interactivity patterns before auditing external changes.

Workflow & Intentions

Read the full file on GitHub · 180 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. 4d ago First seen · 180 lines · 34 tokens per session scan A 4efd0c6db366

Subscribe to this mod's changes

D4 Methodology Enforcer is an agent published in the GitHub repository EndogenAI/dogma (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 34 tokens to every session and 2,148 once invoked, about $0.0002 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-31.