gaze: Command for Claude Code

.opencode/commands/uf.agent-brief.md

uf.agent-brief is a command for Claude Code, OpenCode from unbound-force/gaze. It costs 43 tokens per session (4,572 once invoked), scanned A, original, Apache-2.0.

A command for creating and reviewing AGENTS.md, a project briefing that tells AI coding agents how to build, test, lint, and work within a repository. It can also configure bridge files such as CLAUDE.md and .cursorrules.

In plain words
What is it for?
It helps generate an AGENTS.md from a project, score and review an existing file, suggest improvements, and force either create or audit mode.
Why use it?
It reduces the repeated setup and missing project context that can make coding-agent sessions inconsistent. It chooses between creating a missing briefing and auditing an existing one.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md; mentions OpenCode.

This is unbound-force/gaze's own configuration. It tells Claude Code 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/.opencode/commands/uf.agent-brief.md
Clone the repo
git clone --depth 1 https://github.com/unbound-force/gaze

Made for: Claude Code, 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 uf.agent-brief

README.md
[![agentmods](https://agentmods.dev/badge/commands/unbound-force/gaze/uf.agent-brief.svg)](https://agentmods.dev/commands/unbound-force/gaze/uf.agent-brief)
Your own site
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.agent-brief"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.agent-brief.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,572 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.1 $0.00043 $0.04572
Opus 5 $0.00022 $0.02286
Sonnet 5 $0.00009 $0.00914
Haiku 4.5 $0.00004 $0.00457

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

Security

Grade A, and why

uf.agent-brief 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 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.

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.

.opencode/commands/uf.agent-brief.md · 513 lines

How it starts

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

Command: /uf.agent-brief

Description

Manage the AGENTS.md lifecycle: create, audit, and improve the project briefing that AI coding agents read at session start.

AGENTS.md is the API contract between humans and AI agents. It tells agents how to build, test, and lint the project, what conventions to follow, and what constraints to respect. Without a good AGENTS.md, every agent session starts from cold context.

Modes:

  • No AGENTS.md → Create mode (analyze project, generate file)
  • AGENTS.md exists → Audit mode (score, report, suggest)
  • /uf.agent-brief create → Force create mode (overwrite)
  • /uf.agent-brief audit → Force audit mode (read-only)

Instructions

Step 1: Mode Detection

  1. Check if AGENTS.md exists at the repository root.

  2. Parse the user's argument (if any):

    • create → force create mode
    • audit → force audit mode
    • No argument → auto-detect based on file existence
  3. Route to the appropriate mode:

    • Create mode: No AGENTS.md exists, or user passed create
    • Audit mode: AGENTS.md exists, or user passed audit
  4. Announce the selected mode:

    • Create: "No AGENTS.md found. Analyzing project to generate one..."
    • Audit: "Found AGENTS.md (N lines). Running quality audit..."
    • Force create: "Force-creating AGENTS.md. Existing file will be replaced after your review."

Step 2: Project Analysis

Analyze the project to understand its characteristics. Read the following files (skip any that do not exist):

Language & Dependencies:

  1. go.mod → Go project (extract module name, Go version, key deps)
  2. package.json → Node/TypeScript project (extract name, scripts, key deps)
  3. Cargo.toml → Rust project (extract name, edition, key deps)
  4. pyproject.toml → Python project (extract name, version, key deps)
  5. tsconfig.json → TypeScript confirmation

Build System (read only in Create mode or when refreshing Build & Test section in Audit mode): 6. Makefile or justfile → extract build/test/lint targets 7. .github/workflows/ → read CI workflow files to find exact build, test, vet, and lint commands (these are the source of truth for build commands)

Read the full file on GitHub · 513 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 · -36 lines · -22 tokens per session e752752ac454
  2. 6d ago First seen · 549 lines · 65 tokens per session scan A 259f775e256a

Subscribe to this mod's changes

uf.agent-brief is a command published in the GitHub repository unbound-force/gaze (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 4,572 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.