gaze: Instructions file for Codex

AGENTS.md

gaze AGENTS.md is an instructions file for Codex, OpenCode from unbound-force/gaze. It costs 21,662 tokens per session, scanned B, original, Apache-2.0.

Project instructions for Gaze, a Go tool that finds functions with visible side effects and combines code complexity with test coverage to highlight risky code. They also define how coding agents should protect the project's goals and conventions.

In plain words
What is it for?
Use them when working on Gaze, especially for code changes, reviews, and checks of complex or poorly tested functions.
Why use it?
They give agents the project context and rules needed to make changes without adding unused code, missing nearby impacts, or drifting from the intended behavior.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Gemini CLI; mentions OpenCode.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/unbound-force/gaze/agents-md"><img src="https://agentmods.dev/badge/instructions/unbound-force/gaze/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21,662 This file is loaded in full into every session.
When invoked 21,662 The same file — it is already loaded in full.
Security scan B 1 finding. 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.21662 $0.21662
Opus 5.5 $0.08665 $0.08665
Sonnet 5.5 $0.04332 $0.04332
Haiku 4.5 $0.02166 $0.02166

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

Security

Grade B, and why

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

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- deterministic-ai-report-rendering: Made `gaze report` publish a deterministic report that no model can corrupt (specs/040-deterministic-ai-report-rendering/; incident test.yml run 41309423609). Gaze now renders every s
AGENTS.md · 623 lines

How it starts

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

AGENTS.md

Project Overview

Gaze is a static analysis tool for Go that detects observable side effects in functions and computes CRAP (Change Risk Anti-Patterns) scores by combining cyclomatic complexity with test coverage. It helps developers find functions that are complex and under-tested — the riskiest code to change.

  • Language: Go 1.24+
  • Module: github.com/unbound-force/gaze/v2
  • License: Apache 2.0

Core Mission

  • Strategic Architecture: Engineers shift from manual coding to directing an "infinite supply of junior developers" (AI agents).
  • Outcome Orientation: Focus on conveying business value and user intent rather than low-level technical sub-tasks.
  • Intent-to-Context: Treat specs and rules as the medium through which human intent is manifested into code.

Behavioral Constraints

  • Zero-Waste Mandate: No orphaned code, unused dependencies, or "Feature Zombie" bloat.
  • Neighborhood Rule: Changes must be audited for negative impacts on adjacent modules or the wider ecosystem.
  • Intent Drift Detection: Evaluation must detect when the implementation drifts away from the original human-written "Statement of Intent."
  • Automated Governance: Primary feedback is provided via automated constraints, reserving human energy for high-level security and logic.

Gatekeeping Value Protection

Agents MUST NOT modify values that serve as quality or governance gates to make an implementation pass. The following categories are protected:

  1. Coverage thresholds and CRAP scores — minimum coverage percentages, CRAP score limits, coverage ratchets
  2. Severity definitions and auto-fix policies — CRITICAL/HIGH/MEDIUM/LOW boundaries, auto-fix eligibility rules
  3. Convention pack rule classifications — MUST/SHOULD/MAY designations on convention pack rules (downgrading MUST to SHOULD is prohibited)
  4. CI flags and linter configuration — -race, -count=1, govulncheck, golangci-lint rules, pinned action SHAs
  5. Agent temperature and tool-access settings — frontmatter temperature, tools.write, tools.edit, tools.bash restrictions
  6. Constitution MUST rules — any MUST rule in .specify/memory/constitution.md or hero constitutions
  7. Review iteration limits and worker concurrency — max review iterations, max concurrent Swarm workers, retry limits
  8. Workflow gate markers — <!-- spec-review: passed -->, task completion checkboxes used as gates, phase checkpoint requirements

Read the full file on GitHub · 623 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 Changed · +1 lines · +1,046 tokens per session scan A → B 7f14a168ccc2
  2. 3d ago Changed · +14 lines · +575 tokens per session a441d481f70c
  3. 5d ago Changed · +4 lines · +1,471 tokens per session 37451bf4f81c
  4. 6d ago Changed · +2 lines · +1,037 tokens per session 36545e611a6f
  5. 9d ago Changed · +1 lines · +288 tokens per session 41f39ea457c1
  6. 18d ago Changed · +2 lines · +592 tokens per session 7b219388beb3
  7. 24d ago Changed · +21 lines · +215 tokens per session 18bf71fcb6c6
  8. 28d ago Changed · +22 lines · +177 tokens per session f3eedd6d2266
  9. 1mo ago Changed · +1 lines · +248 tokens per session df38d8f60cc7
  10. 1mo ago First seen · 555 lines · 16,013 tokens per session scan A 36dd105c8e33

Subscribe to this mod's changes

gaze AGENTS.md is an instructions file published in the GitHub repository unbound-force/gaze (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 21,662 tokens to every session, about $0.0866 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

gaze AGENTS.md compared with instructions from other repositories

gaze AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gaze AGENTS.mdunbound-force/gazeInstructions file4yesterdayApache-2.0B21,662Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode