Infinity-API: Instructions file for Codex

AGENTS.md

Infinity-API AGENTS.md is an instructions file for Codex, OpenCode from RocketPy-Team/Infinity-API. It costs 647 tokens per session, scanned A, original, MIT.

A repository guide for a Python web API built with FastAPI, a framework for creating web services. It describes the code layout, development commands, style rules, testing, and container-based setup with MongoDB.

In plain words
What is it for?
Use it when adding API controllers, services, repositories, models, or routes; formatting and linting Python; running tests; starting development; or running the API with MongoDB in containers.
Why use it?
It removes guesswork about where code belongs, which commands to run, and how to check changes before deploying. It also separates focused unit tests from broader integration tests.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to RocketPy-Team/Infinity-API. 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/RocketPy-Team/Infinity-API/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/RocketPy-Team/Infinity-API

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 Infinity-API AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rocketpy-team/infinity-api/agents-md"><img src="https://agentmods.dev/badge/instructions/rocketpy-team/infinity-api/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 647 This file is loaded in full into every session.
When invoked 647 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.00647 $0.00647
Opus 5.5 $0.00259 $0.00259
Sonnet 5.5 $0.00129 $0.00129
Haiku 4.5 $0.00065 $0.00065

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

Security

Grade A, and why

Infinity-API 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 2mo 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 · 25 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

Source code lives in src/, with FastAPI entrypoints in src/api.py and domain layers grouped by concern (controllers/, services/, repositories/, models/, routes/, views/). Shared settings and helpers sit in src/settings/ and src/utils.py. Tests mirror this layout under tests/unit/ and tests/integration/ for focused and end-to-end coverage. Deployment assets stay at the root (Dockerfile, compose.yaml, Makefile), while virtualenv tooling is kept in infinity_env/.

Build, Test, and Development Commands

  • python3 -m pip install -r requirements.txt prepares runtime dependencies; add requirements-dev.txt for local tooling.
  • make format runs Black and Ruff autofixes across src/ and tests/.
  • make lint executes Flake8 and Pylint with the repository presets.
  • make test wraps pytest with the configured tests/ path.
  • make dev starts Uvicorn on http://localhost:3000 with hot reload.
  • docker-compose up --build -d (from compose.yaml) builds and runs the API plus MongoDB in containers; use make clean to prune stacks.

Coding Style & Naming Conventions

Target Python 3.12 and a 79-character line length (Black, Ruff, and Pylint enforce this). Prefer module-level functions in snake_case, classes in PascalCase, and constants in UPPER_SNAKE_CASE. Keep FastAPI routers named <feature>_router inside src/routes/, and align Pydantic models with CamelCase class names under src/models/. Run make format before opening a PR to avoid stylistic churn.

Testing Guidelines

Pytest drives both unit and integration suites; name files test_<feature>.py and group fixtures near usage. Place pure-function tests in tests/unit/ and API or database flows in tests/integration/. Execute pytest tests/integration/test_environment.py -k simulate to target scenarios while keeping --import-mode=importlib behavior intact. New features should include happy-path and failure-case coverage, plus integration smoke tests when touching MongoDB writes.

Read the full file on GitHub · 25 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. 2mo ago First seen · 25 lines · 647 tokens per session scan A ac0e5bb076ce

Subscribe to this mod's changes

Infinity-API AGENTS.md is an instructions file published in the GitHub repository RocketPy-Team/Infinity-API (10 stars, last pushed 19d ago), licensed MIT. It adds 647 tokens to every session, about $0.0026 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

Infinity-API AGENTS.md compared with instructions from other repositories

Infinity-API AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Infinity-API AGENTS.mdRocketPy-Team/Infinity-APIInstructions file1019d agoMITA647Codex, OpenCode
graftcode graftcode-python.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,639GitHub Copilot
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