weave-agent-workflow: Instructions file for Codex

AGENTS.md

weave-agent-workflow AGENTS.md is an instructions file for Codex, OpenCode from GabrielKqw/weave-agent-workflow. It costs 482 tokens per session, scanned A, original, MIT.

A set of repository instructions that makes the coding agent plan before changing code and prefer the smallest workable solution. It also asks the agent to trace existing code and state how success will be checked.

In plain words
What is it for?
Use it to guide coding requests, especially changes involving several files, public interfaces, shared state, or a new project.
Why use it?
It reduces unnecessary implementation by checking whether a problem can be solved with existing code, a standard library, or a platform feature first. It gives larger changes an ordered plan and explicit risks.

Instructions file for CodexOpenCode

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

This is GabrielKqw/weave-agent-workflow's own configuration. It tells Codex and OpenCode how to work on weave-agent-workflow 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 weave-agent-workflow configures →

Reuse

Borrowing it

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

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 weave-agent-workflow AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gabrielkqw/weave-agent-workflow/agents-md"><img src="https://agentmods.dev/badge/instructions/gabrielkqw/weave-agent-workflow/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 482 This file is loaded in full into every session.
When invoked 482 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00482 $0.00482
Opus 5.5 $0.00193 $0.00193
Sonnet 5.5 $0.00096 $0.00096
Haiku 4.5 $0.00048 $0.00048

Measured yesterday against content hash d3437bed8b09, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

weave-agent-workflow 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 yesterday.

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 · 19 lines

What it actually says

Weave policy (full mode)

WEAVE MODE ACTIVE - level: full Plan before you code, automatically, on every coding request; do not wait for /weave-plan. Think first, then write the least code that solves it.

  1. Understand: read the request and the code it touches; trace the real flow from its entry point before deciding anything.
  2. Contract: state the user-visible goal, constraints, and observable checks that prove it is done. Ask only questions whose answer changes the result; state assumptions for the rest.
  3. Ladder: stop at the first rung that holds: is it needed at all, is it already in the repo, does the standard library do it, does the platform do it natively, does an installed dependency do it, can it be fixed once at the shared point every caller uses, can code be removed instead.
  4. Plan: for work spanning several files, a public interface, or shared state, write ordered steps (file, change, check), dependencies, and real risks before the first edit. For a new project, define the smallest usable milestone and how a user will try it. For a single-concern change, the contract is the plan.
  5. Build only what the plan says. If the plan starts to need a workaround, a hack, or code you cannot justify, stop and re-plan instead of patching around it.
  6. Verify with real evidence, then compare the result with the goal before saying it is done. Rules:
  • Trace the affected flow before editing; fix shared causes, not isolated symptoms.
  • Reuse repository code, then standard-library or native features, before adding dependencies.
  • Make the smallest correct change and verify it with real evidence.
  • Never weaken validation, security, privacy, accessibility, or data safety to reduce code.
  • Working memory and saved memories must be self-contained and actionable for cross-agent handoff: capture operational rationale, end-to-end flows, business invariants, defect root causes, and explicit integration contracts — never cryptic shorthand, superficial file counts, or raw incident logs that leave the next agent without execution context.

Switch modes via Claude Code/Codex hooks (/weave off|lite|full|ultra), Weave CLI (node cli/weave.js mode <mode>), or Weave MCP tools. This static file reflects full.

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. yesterday First seen · 19 lines · 482 tokens per session scan A d3437bed8b09

Subscribe to this mod's changes

weave-agent-workflow AGENTS.md is an instructions file published in the GitHub repository GabrielKqw/weave-agent-workflow (5 stars, last pushed 29d ago), licensed MIT. It adds 482 tokens to every session, about $0.0019 per session on Opus 5.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-12-05.

Related

weave-agent-workflow AGENTS.md compared with instructions from other repositories

weave-agent-workflow AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
weave-agent-workflow AGENTS.mdGabrielKqw/weave-agent-workflowInstructions file529d agoMITA482Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot