ai-workflows: Instructions file for Codex

AGENTS.md

ai-workflows AGENTS.md is an instructions file for Codex, OpenCode from dryvist/ai-workflows. It costs 2,243 tokens per session, scanned A, original, MIT.

Reusable AI workflows for GitHub Actions, the automation service built into GitHub repositories.

In plain words
What is it for?
Use them to run reusable AI-assisted workflows such as code review, issue handling, dependency review, notifications, testing, verification, and release-note work.
Why use it?
They let many repositories share one maintained set of continuous-integration and deployment workflows instead of copying workflow logic into each repository.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 ai-workflows AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dryvist/ai-workflows/agents-md"><img src="https://agentmods.dev/badge/instructions/dryvist/ai-workflows/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,243 This file is loaded in full into every session.
When invoked 2,243 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.02243 $0.02243
Opus 5.5 $0.00897 $0.00897
Sonnet 5.5 $0.00449 $0.00449
Haiku 4.5 $0.00224 $0.00224

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

Security

Grade A, and why

ai-workflows 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 25d 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 · 224 lines

How it starts

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

ai-workflows

Reusable AI agent workflows for GitHub Actions. Consumer repos call these with thin ~10-20 line callers.

Architecture

This repo is the single source of truth for CI/CD automation workflows. Each workflow is a GitHub reusable workflow (on: workflow_call) that consumer repos invoke via uses: dryvist/ai-workflows/.github/workflows/<name>.yml@<40-hex-sha> # vX.Y.Z.

Directory Structure

.github/
  prompts/
    *.md                            # Prompt files (one per workflow)
  scripts/
    render-prompt.sh                # Shared: envsubst + GITHUB_OUTPUT
    best-practices/                 # Extracted JS scripts per workflow
    ci-fail-issue/
    ci-fix/
    dep-review/
    issue-backlog-sweep/
    issue-linker/
    issue-resolver/
    post-merge-docs-review/
    post-merge-tests/
    pr-agent/
    release-notes/
    review-thread-resolver/
    shared/
    verification/
  workflows/
    *.yml                           # Pure YAML workflow definitions (no embedded content)

Workflow Types

There are three families, and they do not share a credential contract:

  1. Agentic workflows use the shared run-ai-agent adapter, which selects Claude or Codex from GH_ACTION_AI_AGENT and defaults to Claude. These are the workflows that edit a tree and open a pull request.
  2. pr-agent.yml runs PR-Agent against the model router for PR-scoped review, code suggestions and descriptions. Its prompts live in the consumer repository's own .pr_agent.toml; see docs/pr-agent.md.
  3. Router workflows (thread-triage, docs-drift, repo-hygiene-digest) make one chat completion with actions/ai-inference (a .prompt.yml beside the workflow's scripts holds the messages and, where the answer is JSON, the schema). They take LLM_ROUTER_BASE_URL and LLM_ROUTER_API_KEY — both secrets — and default to a self-hosted runner, because only such a runner reaches the router.

A router workflow that cannot reach the router FAILS, releasing the runner: the action's client retries a connection failure or 5xx twice and gives up, and the job is capped at ten minutes. CI never waits for a model beyond that; the router role's own fallback chain absorbs load. pr-agent picks the router key and role by repository visibility (LLM_ROUTER_OSS_API_KEY + oss_model on an open-source repo); every review still runs on the self-hosted pool against the router. Never restore a skip-and-succeed path: a green check that did no work is what these replaced.

Read the full file on GitHub · 224 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. 25d ago Changed · -2 lines · -45 tokens per session 8a3e95002ec5
  2. 26d ago Changed · +1 lines · +35 tokens per session ea79da45a9da
  3. 1mo ago Changed · +2 lines · +69 tokens per session 12ff4a60d4a2
  4. 1mo ago Changed · +2 lines · +9 tokens per session 4aa3f4a9844b
  5. 1mo ago Changed · +31 lines · +409 tokens per session 50406ed14c44
  6. 2mo ago First seen · 190 lines · 1,766 tokens per session scan A b960c9dfaddc

Subscribe to this mod's changes

ai-workflows AGENTS.md is an instructions file published in the GitHub repository dryvist/ai-workflows (4 stars, last pushed 19d ago), licensed MIT. It adds 2,243 tokens to every session, about $0.0090 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-08-31.

Related

ai-workflows AGENTS.md compared with instructions from other repositories

ai-workflows AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-workflows AGENTS.mddryvist/ai-workflowsInstructions file419d agoMITA2,243Codex, 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