devo AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/7df-lab/devo/agents-md
Clone the repo
git clone --depth 1 https://github.com/7df-lab/devo

Made for: Codex, OpenCode.

Per session 1,071 This file is loaded in full into every session.
When invoked 1,071 The same file — it is already loaded in full.
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 $0.01071 $0.01071
Opus 5 $0.00535 $0.00535
Sonnet 5 $0.00214 $0.00214
Haiku 4.5 $0.00107 $0.00107

Measured 2d ago against content hash 947d3d56b152, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

AGENTS.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 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 · 52 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 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 (317 stars, last pushed 2d ago), licensed MIT. It adds 1,071 tokens to every session, about $0.0054 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.