dbt-autofix: Instructions file for Codex

AGENTS.md

dbt-autofix AGENTS.md is an instructions file for Codex, OpenCode from dbt-labs/dbt-autofix. It costs 1,321 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for updating dbt projects so they can be parsed and compiled by the dbt Fusion engine. dbt is a tool for transforming data in a warehouse using SQL and related models.

In plain words
What is it for?
Use it to migrate a dbt project to the new authoring layer, check data-platform connections, handle unsupported model types such as Python models, and document the changes made.
Why use it?
It helps identify unsupported dbt features and guides fixes while preserving existing project behavior. It also requires a successful compile before migration is considered complete.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 dbt-autofix AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dbt-labs/dbt-autofix/agents-md.svg)](https://agentmods.dev/instructions/dbt-labs/dbt-autofix/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dbt-labs/dbt-autofix/agents-md"><img src="https://agentmods.dev/badge/instructions/dbt-labs/dbt-autofix/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,321 This file is loaded in full into every session.
When invoked 1,321 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.01321 $0.01321
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

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

Security

Grade A, and why

dbt-autofix 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 7d 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 · 73 lines

How it starts

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

AGENTS.md

Goals

  1. Make a pre-existing dbt project compatible with the new authoring layer, so it can parse and compile successfully on the Fusion engine.
  2. Preserve existing functionality as much as possible.
  3. Flag when the dbt project is using functionality that's not yet supported in Fusion, and ask users so they can choose whether to wait for feature support or remove use of unsupported features.

Migrating to the new authoring layer and the dbt Fusion engine

if a user says "migrate my dbt project to the new authoring layer" or "make my dbt project compatible with the Fusion engine" do the following steps and the migration is only successfully completed once dbtf compile finishes with 0 errors. Create a changes_made.md file documenting and summarizing all of the code changes made in the user's dbt project, including what the error was, the fix applied, and a summary of why the fix was chosen.

Before you begin, please read and understand the resources section below. You should strictly use the resources below to update the project.

  1. Run dbtf debug in the terminal to check their data platform connections. Proceed to step 2 if there are no errors. If there are errors, please summarize the error succinctly so the user knows how to debug on their own.
  2. Run dbtf parse --show-all-deprecations in the terminal to check for compatibility errors in their current project. Summarize the log output by specifying how many errors were found and group the errors in a way that's easily understandable.
  3. Install dbt-autofix and run autofix to try to fix errors. Prefer uv/uvx to install (uv tool install dbt-autofix) and run the package (uvx dbt-autofix deprecations), but fall back to pip and other methods if needed. Summarize the results of the autofix run and include how many errors were resolved. Run dbtf parse again to check for remaining errors and summarize with how many errors were found and a brief summary of the types of errors.
  4. For remaining errors, please ONLY use the resources below to attempt to resolve them. If you can't figure out a fix from the resources below, notify the user and break out of the flow. Attempt the fixes error by error, grouping similar errors based on the error code and message. You should also summarize which error you're working on in the chat to give users context.

Read the full file on GitHub · 73 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. 7d ago First seen · 73 lines · 1,321 tokens per session scan A 164bf8caae77

Subscribe to this mod's changes

dbt-autofix AGENTS.md is an instructions file published in the GitHub repository dbt-labs/dbt-autofix (88 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,321 tokens to every session, about $0.0066 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-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens