divi: Instructions file for Codex

AGENTS.md

divi AGENTS.md is an instructions file for Codex, OpenCode from QoroQuantum/divi. It costs 1,450 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for QoroQuantum/divi covering its development setup, code style, tests, and documentation. An AGENTS.md file tells coding agents how to work in a repository.

In plain words
What is it for?
Use it to choose the Python environment, install dependencies with uv, format Python files, follow license-header rules, and run appropriate tests.
Why use it?
It gives an agent the project's required rules before it edits or tests code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/qoroquantum/divi/agents-md"><img src="https://agentmods.dev/badge/instructions/qoroquantum/divi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,450 This file is loaded in full into every session.
When invoked 1,450 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.01450 $0.01450
Opus 5.5 $0.00580 $0.00580
Sonnet 5.5 $0.00290 $0.00290
Haiku 4.5 $0.00145 $0.00145

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

Security

Grade A, and why

divi 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 14d 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

Dev environment

  • Python version is defined in pyproject.toml (requires-python).
  • Always use the virtual environment in .venv/ or venv/ when running commands.
  • If neither exists, do not run any Python code until the human specifies which Python executable to use.
  • uv is the primary workflow:
    • Install: uv sync --all-extras (always sync with extras to include ai dependencies)

Code style and formatting

  • Use ruff for formatting, import sorting and linting.
  • Do NOT run pre-commit run -a — it modifies unrelated files. Let pre-commit fire on commit.
  • New/updated .py files (outside docs/) should include the license header from LICENSES/.license-header (pre-commit enforces this).
  • Hook configuration lives in /.pre-commit-config.yaml; keep any new files compatible with these hooks.
  • If the human is asking an inquisitive or brainstorm-style question, do not change code; respond with analysis or ideas only.

Testing

  • Write spec-driven tests first (behavior-focused) before adding critical low-level mocking.
  • Use pytest ecosystem tools (e.g., pytest-mock) only; avoid unittest unless no alternative exists and the human agrees.
  • Markers are registered in pytest.ini. Do not run requires_api_key tests as an agent unless explicitly asked, and avoid e2e during development.
  • API tests require a Qoro API key:
    • QORO_API_KEY=... uv run pytest -n auto --run-api-tests
    • or uv run pytest -n auto --run-api-tests --api-key your-key-here
  • Never inline imports nor classes in test functions. If you are facing errors due to circular imports, ask for approval before inlining imports to fix it.
  • Do not leave meta comments in source or tests that explain where other code moved (e.g. "tests live in …", "keep one smoke here"). Relocations should be obvious from module layout and test names; use docstrings only when they document behaviour under test.
  • Use simulator fixtures from tests/conftest.py: dummy_simulator when a real backend is not needed (returns fake counts), default_test_simulator for actual circuit execution (QASM→shots), dummy_expval_backend for expval-mode tests. Never instantiate a simulator backend directly in a unit test — always use a fixture. A test that genuinely needs its own instance (e.g. it exercises constructor arguments or a backend configuration no fixture covers) is a special case: say so and get the human's agreement first.
  • Test layout mirrors divi/ — one test_<module>.py per source module (see docs/source/development/testing.rst).
  • Shared test infrastructure (do not mix roles):
    • conftest.py — pytest fixtures and hooks only (@pytest.fixture, pytest_addoption). Auto-discovered; never import from conftest in test code.
    • _helpers.py — explicit-import builders, assertion helpers, constants, and shared test doubles (e.g. DummySpecStage, backend spies). Use from tests.<pkg>._helpers import ….
    • _contracts.py — shared verify_* behavioural checks imported across multiple test_*.py files in the same package. Use a descriptive name such as _circuit_runner_contracts.py when the scope is narrower than the whole package.
    • Fixtures used by a single test file may stay in that file; promote to conftest.py when reused within the package or subtree.

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. 14d ago Changed · -21 tokens per session 88cdcc0ce40c
  2. 2mo ago First seen · 73 lines · 1,471 tokens per session scan A c0be9a32035e

Subscribe to this mod's changes

divi AGENTS.md is an instructions file published in the GitHub repository QoroQuantum/divi (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,450 tokens to every session, about $0.0058 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

divi AGENTS.md compared with instructions from other repositories

divi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
divi AGENTS.mdQoroQuantum/diviInstructions file23yesterdayApache-2.0A1,450Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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