specgate AGENTS.md

specgate AGENTS.md is an instructions file for Codex, OpenCode from thanhtung2693/specgate. It costs 2,028 tokens per session, scanned A, original, Apache-2.0.

A set of contribution rules for SpecGate, a software project. It tells coding agents and contributors which instructions to read and how the repository is organised.

In plain words
What is it for?
Use it before modifying, testing, reviewing, or releasing SpecGate. It helps identify the relevant module documentation and rule files.
Why use it?
It prevents changes from ignoring project-specific rules or instructions for the part of the codebase being edited. It also clarifies that some files are for contributors rather than product users.

Instructions file for CodexOpenCode

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 instructions/thanhtung2693/specgate/agents-md
Clone the repo
git clone --depth 1 https://github.com/thanhtung2693/specgate

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thanhtung2693/specgate/agents-md.svg)](https://agentmods.dev/instructions/thanhtung2693/specgate/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/thanhtung2693/specgate/agents-md"><img src="https://agentmods.dev/badge/instructions/thanhtung2693/specgate/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,028 This file is loaded in full into every session.
When invoked 2,028 The same file — it is already loaded in full.
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.02028 $0.02028
Opus 5 $0.01014 $0.01014
Sonnet 5 $0.00406 $0.00406
Haiku 4.5 $0.00203 $0.00203

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

Security

Grade A, and why

specgate 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 3d 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 · 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.

SpecGate Contributor Rules

These are repository rules for people and coding agents who modify, test, review, or release SpecGate. They are not instructions installed for SpecGate product users. Product installation and day-to-day workflows belong in docs/using-specgate/.

Rule precedence

  1. Read this file before modifying the repository.
  2. Read the nearest nested AGENTS.md for every module you touch. Nested files extend this file and may add stricter module rules.
  3. CLAUDE.md is only a Claude Code entry point to these contributor rules; it must not duplicate or replace them.

Product plugin rules under plugins/ and their generated copies describe how installed IDE agents use SpecGate. They are product assets, not contributor rules for this repository.

Repository map

Path Stack Responsibility Contributor docs
app/doc-registry/ Go 1.26+ REST API, governance state, Postgres, and object storage app/doc-registry/AGENTS.md, app/doc-registry/docs/
app/agents/ Python 3.12+ / LangGraph Governance chat and model-backed governance operations app/agents/AGENTS.md, app/agents/docs/
app/ui/ Vite / React / TypeScript Web application app/ui/AGENTS.md, app/ui/docs/
app/cli/ Go 1.26+ / Cobra Human- and IDE-agent-facing CLI, Local mode, and installers app/cli/AGENTS.md, docs/using-specgate/reference/cli.md
app/landing/ Static HTML/CSS/JS Public landing page app/landing/README.md
plugins/ Markdown, scripts, manifests Canonical IDE plugin assets plugins/README.md
deploy/, docker/ Compose / Docker Released and contributor deployment packaging deploy/README.md, docs/contributing/setup.md

Contributor architecture, contracts, setup, testing, and release guidance live in docs/contributing/. Product documentation lives in docs/using-specgate/.

Before editing

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. 3d ago First seen · 180 lines · 2,028 tokens per session scan A 0d55618d7b75

Subscribe to this mod's changes

specgate AGENTS.md is an instructions file published in the GitHub repository thanhtung2693/specgate (5 stars, last pushed 13d ago), licensed Apache-2.0. It adds 2,028 tokens to every session, about $0.0101 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.