devo: Instructions file for Codex

AGENTS.md

devo AGENTS.md is an instructions file for Codex, OpenCode from 7df-lab/devo. It costs 1,652 tokens per session, scanned A, original, MIT.

Repository instructions for devo, a Rust-based coding agent. They define Rust naming and formatting conventions and recommend clearer APIs when boolean or optional arguments would otherwise be hard to understand.

In plain words
What is it for?
Implementing devo features, reviewing Rust changes, improving function interfaces, and fixing style or Clippy-related issues.
Why use it?
They help contributors produce consistent Rust code and avoid call sites whose meaning is unclear. Following these rules also keeps the project aligned with common linter guidance.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/7df-lab/devo/agents-md"><img src="https://agentmods.dev/badge/instructions/7df-lab/devo/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,652 This file is loaded in full into every session.
When invoked 1,652 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.01652 $0.01652
Opus 5.5 $0.00661 $0.00661
Sonnet 5.5 $0.00330 $0.00330
Haiku 4.5 $0.00165 $0.00165

Measured 1mo ago against content hash 938b81cad2c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

devo 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 1mo 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 · 97 lines

How it starts

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

AGENTS.md

Rust

This repository is a Rust-based coding agent, currently called devo.

  • All crate names use the devo- prefix. For instance, the crate in the core directory is named devo-core.
  • When using format!, inline variables directly inside {} whenever possible.
  • Always collapse nested if statements according to https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
  • Inline format! arguments whenever possible, following https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
  • Prefer method references instead of closures where applicable, per https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
  • Avoid using bool or unclear Option parameters that lead to ambiguous calls like foo(false) or bar(None). Instead, use enums, clearly named methods, newtypes, or other idiomatic Rust patterns that improve readability at the callsite.
  • If such API changes are not feasible and positional literals must still be used, follow the argument_comment_lint rule:
    • Add an exact /*param_name*/ comment before unclear positional literals (e.g., None, booleans, numeric values).
    • Do not include these comments for string or character literals unless they genuinely improve clarity, as these are exempt.
    • The comment must exactly match the parameter name in the function signature.
  • Make match expressions exhaustive whenever possible, avoiding wildcard arms.
  • Any newly introduced traits must include documentation explaining their purpose and how implementations should behave.
  • In tests, favor comparing full objects rather than asserting on individual fields.
  • If an API is added or modified, update the relevant documentation in the docs/ directory when necessary.
  • Avoid introducing small helper functions that are only used once.
  • Keep modules reasonably sized:
    • Prefer creating new modules instead of expanding existing ones.
    • Aim to keep modules under 500 lines of code, excluding tests.
    • If a file grows beyond ~800 lines, place new functionality in a separate module unless there is a strong, documented justification not to.
  • When running Rust-related commands (e.g., just fix or cargo test), allow them to complete without interruption, do not try to kill them using the PID. Slow execution due to Rust’s locking behavior is expected.
  • Agent can not apply patch to a file more than 800 lines, cause windows patch length limit, agent would failed to apply patch.
  • Do not introduce trivial wrapper functions — call the underlying function directly unless reuse or abstraction is clearly justified.
  • Exclude the target folder when using glob or grep, since it contains a large number of Rust build artifacts.

Read the full file on GitHub · 97 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. 1mo ago Changed · +45 lines · +581 tokens per session 938b81cad2c4
  2. 2mo ago First seen · 52 lines · 1,071 tokens per session scan A 947d3d56b152

Subscribe to this mod's changes

devo AGENTS.md is an instructions file published in the GitHub repository 7df-lab/devo (345 stars, last pushed 15d ago), licensed MIT. It adds 1,652 tokens to every session, about $0.0066 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-30.

Related

devo AGENTS.md compared with instructions from other repositories

devo AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
devo AGENTS.md7df-lab/devoInstructions file34515d agoMITA1,652Codex, 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