gofer_constitution

gofer_constitution is a command for Claude Code from eai-support/eai-gofer. It costs 17 tokens per session (8,371 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 Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; names the AskUserQuestion tool; reads ~/.codex paths.

Part of the eai-gofer plugin — 4 skills, 28 commands, 42 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to establish project standards before building or reviewing features.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eai-support/eai-gofer/gofer_constitution
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.

Clone the repo
git clone --depth 1 https://github.com/eai-support/eai-gofer

Made for: Claude Code.

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

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/github.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/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 gofer_constitution

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 8,371 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.08371
Opus 5.5 $0.00007 $0.03348
Sonnet 5.5 $0.00003 $0.01674
Haiku 4.5 $0.00002 $0.00837

Measured 27d ago against content hash 4c03ff90dc51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 27d 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 · 749 lines

How it starts

The opening of the file, as written. The whole thing — 749 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

Continuation And Stop Contract

  1. Preserve the requested scope and mode, including read-only, plan-only, research-only and MVP work. Keep the full applicable pipeline, stage functions, artifacts, reviews and validation; do not expand an MVP into an unapproved release.
  2. After a stage's required evidence is complete, read and follow the next internal file in .specify/commands/ in the same conversation. Do not require a numbered command or a host-specific skill dispatcher. Optional helpers remain optional; maintenance and control commands do not start delivery work.
  3. Treat the stated business goal as authority for ordinary planning, task ordering, design, diagnosis, repair, testing, and reversible repository changes within scope. Record material Gofer decisions with their reason and effect. Do not ask the user to choose implementation details that Gofer can safely decide.
  4. Ask only when the goal is unclear or changes, the action is irreversible or destructive, it changes security or access, it creates external cost or commitment, it changes production or public exposure, it requires missing authority or credentials, or it conflicts with an explicit user constraint. Record the exact reason before asking. missing or ambiguous approval is not approval when an approval boundary applies. Rejected, revoked, changed or unclear authority requires a pause.
  5. Pause for material scope, security, cost, deployment, destructive or protected files/boundary changes and any outstanding user gate. A business goal does not authorize publishing, spending, external changes, or bypassing host permissions. Complete safe authorized work without bypassing the blocked gate.
  6. A tool proposal is not execution. If host consent is required, wait for it. After the tool result or approved proposal returns, inspect the result and resume the next authorized action within approved scope; do not end with only a plan or a proposed tool call. A denied tool or unavailable capability must not be bypassed through another host or CLI.
  7. Use the current agent's available native tools. Optional Gofer/MCP tools are conveniences, not prerequisites. If the current agent lacks a required capability, report that limitation and the safe next action; do not pretend a handoff button transfers control automatically.
  8. Stop after research only when research-only work was requested, the user paused, or a real gate blocks progress. Otherwise continue to specification. At validation, report completion only when the requested scope's required evidence passes; failures remain unfinished work.
  9. Respect budget, context and retry limits from the existing loop contract. Repair safe within-scope failures only within those limits. Preserve a checkpoint before an orderly context stop; resume by reading its recorded stage and rechecking scope, approvals and evidence. Never claim an abrupt host termination was handled.
  10. Report concise Progress during work. At every controlled stop, report Progress, Stop reason and Next action, including the exact missing input or approval and unfinished work. Reasons are requested scope complete, user pause, approval required, material change, missing capability/access, validation blocked, or budget/context/retry limit. Stage completion alone is not pipeline completion.

Read the full file on GitHub · 749 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. 27d ago Changed · +8 lines 4c03ff90dc51
  2. 1mo ago Changed · +4 lines ac64bb52ca6b
  3. 1mo ago Changed · -4 lines 022d82eb9480
  4. 1mo ago Changed · +10 lines bb28f78d4659
  5. 1mo ago Changed 702da4b0e912
  6. 1mo ago Changed · +7 lines 78f80eb35d41
  7. 1mo ago Changed · +23 lines 8b3e0cc7f35b
  8. 1mo ago Changed · +16 lines df4dfdc09c45
  9. 1mo 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 today), licensed Apache-2.0. It adds 17 tokens to every session and 8,371 once invoked, about $0.0001 per session on Opus 5.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.