gofer_constitution

gofer_constitution is a command for Claude Code, Codex from eai-support/eai-gofer. It costs 17 tokens per session (5,416 once invoked), scanned B, a copy of 10_gofer_cloud, Apache-2.0.

A project-guidelines command that creates or updates the repository's coding principles and working rules.

In plain words
What is it for?
Use it to establish project standards before building or reviewing features.
Why use it?
It keeps implementation and validation decisions consistent across contributors and agent sessions.

Command for Claude CodeCodex

Written for Claude Code and Codex: $ARGUMENTS substitution, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Codex.

Part of the eai-gofer plugin — 4 skills, 28 commands, 47 agents, 3 hooks shipped together

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 commands/eai-support/eai-gofer/gofer_constitution
Clone the repo
git clone --depth 1 https://github.com/eai-support/eai-gofer

Made for: Claude Code, Codex.

Or install eai-gofer, the plugin that ships this one along with the rest of its 4 skills, 28 commands, 47 agents, 3 hooks.

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 gofer_constitution

README.md
[![agentmods](https://agentmods.dev/badge/commands/eai-support/eai-gofer/gofer_constitution.svg)](https://agentmods.dev/commands/eai-support/eai-gofer/gofer_constitution)
Your own site
<a href="https://agentmods.dev/commands/eai-support/eai-gofer/gofer_constitution"><img src="https://agentmods.dev/badge/commands/eai-support/eai-gofer/gofer_constitution.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,416 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin 73% copy Near-identical to another mod 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.00017 $0.05416
Opus 5 $0.00009 $0.02708
Sonnet 5 $0.00003 $0.01083
Haiku 4.5 $0.00002 $0.00542

Measured 2d ago against content hash d3210392392f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

gofer_constitution scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

plus `enabled = false` in `~/.codex/config.toml`; there is no global
Origin

This is a copy

73% identical to 10_gofer_cloud — 717 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/commands/gofer_constitution.md · 685 lines

How it starts

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


description: Create or update project constitution with coding principles and guidelines

Gofer Constitution

MVP Capability-Based Validation

Use .specify/references/mvp-capability-validation.md as the source of truth. Validate the work that the active feature specification requires now. Do not apply later delivery requirements to an early MVP.

  1. Create .specify/specs/{feature}/ before app or operator-tool source work.
  2. Keep spec.md, plan.md, tasks.md, traceability.md, and the validation scope aligned.
  3. Mark each relevant capability as not_applicable, planned, implemented, verified, or blocked.
  4. Require evidence only for an implemented capability or a capability required by the current delivery decision.
  5. Treat run.sh, run.bat, and run.ps1 as launch evidence only. They do not prove authentication, sessions, EAI access, or deployment readiness.
  6. For a user-facing change, store the local HTTP check, screenshot, and review outcome in the feature validation report.
  7. If browser validation is blocked, mark that user journey unverified. Do not call it complete.
  8. If the user changes scope, update the feature artifacts before continuing. Explain what changed, what remains valid, and what now needs evidence.
  9. Use truthful completion language. For example: The server runs. Authentication is not in the current MVP scope.
  10. When the feature claims a release or deployed outcome, create release-capability-ledger.md from .specify/templates/release-capability-ledger-template.md.
  11. Do not report a release complete or score 100% when a required capability is missing from traceability, remains on an open PR, is absent from the release branch, or lacks required deployed evidence.

Application Classification And EAI Preflight

Before any EAI CLI, login, tenant, template, or app-enrollment action:

  1. Classify the request as EAI app delivery or non-application work using the application signals in .specify/commands/0_gofer_start.md.
  2. Create .specify/specs/{feature}/ and record the active delivery scope before app or operator-tool source work.
  3. If the request is clearly non-app work, confirm once: "This looks like non-app work, so I will skip EAI tenant/app setup and continue the Gofer research/docs path. Is that right?"
  4. If the user confirms non-app, record the decision and mark app-only capabilities not_applicable. Do not run eai whoami, eai tenant select, eai init, or /gofer:eai-first-run.
  5. For local MVP app work, validate the implemented user journey, repo runner, and preview evidence. Do not require EAI setup, authentication, or deployment when the active specification does not require them.
  6. When the feature uses EAI Platform services, requires a tenant, or prepares deployment, run eai whoami and record the EAI readiness evidence in eai-preflight.md.
  7. When the feature creates, changes, or validates an EAI Platform app integration, run node .specify/scripts/node/eai-app-template-readiness.mjs --root . --json. A missing checker or status other than ready blocks that EAI capability. It does not block unrelated local MVP work.
  8. When authentication is implemented or required, validate provider, callback, sign-in, session, first protected API call, and safe denied access.
  9. When deployment is requested or claimed, require the relevant EAI template, security, configuration, and deployment evidence before completion.
  10. For durable app delivery, use EAI Platform first, Azure second, and every other stack only by explicit exception.
  11. If the user changes scope, update spec.md, plan.md, tasks.md, traceability.md, and validation scope before continuing. Explain the business effect and evidence change.
  12. Do not accept copied marker files, partial scaffolds, or custom templates as readiness evidence for an EAI capability.
  13. Do not write tokens, secrets, private tenant IDs, or local .env values into Gofer artifacts; record only product-safe readiness status and evidence.

Read the full file on GitHub · 685 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 · 685 lines · 17 tokens per session scan B d3210392392f

Subscribe to this mod's changes

gofer_constitution is a command published in the GitHub repository eai-support/eai-gofer (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 17 tokens to every session and 5,416 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 73% identical to 10_gofer_cloud, differing in 717 lines, and is treated as a copy.