any-agent: Instructions file for Codex

AGENTS.md

any-agent AGENTS.md is an instructions file for Codex, OpenCode from mozilla-ai/any-agent. It costs 2,162 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for contributing to AnyAgent, a Python library that connects a common agent interface to several AI frameworks. It identifies the main source modules, documentation, setup files, and framework-specific integrations.

In plain words
What is it for?
Adding or updating framework integrations, working with agent configuration and callbacks, and running the project's checks before submission.
Why use it?
It helps contributors find the correct implementation and follow the project's build, test, formatting, and contribution rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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

About the project

any-agent provides one interface for running and evaluating agents built with different agent frameworks. Researchers and developers use it to compare frameworks such as Agno, LangChain, LlamaIndex, and OpenAI Agents SDK, while the catalogue entries provide agents and instructions for this interface.

mozilla-ai/any-agent · 1,255 stars · on GitHub · docs.mozilla.ai

Reuse

Borrowing it

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

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 any-agent AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mozilla-ai/any-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/mozilla-ai/any-agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,162 This file is loaded in full into every session.
When invoked 2,162 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.02162 $0.02162
Opus 5.5 $0.00865 $0.00865
Sonnet 5.5 $0.00432 $0.00432
Haiku 4.5 $0.00216 $0.00216

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

Security

Grade A, and why

any-agent 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 · 93 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

CLAUDE.md is a symlink to this file. Always edit AGENTS.md directly; never modify CLAUDE.md.

Project Status: Soft Deprecation

any-agent is in soft deprecation. It is still published and maintained, but:

  • Bug fixes and security fixes only. No new features are planned.
  • New projects should use mozilla-ai-tinyagent (PyPI: mozilla-ai-tinyagent) if they only need the core agent loop. That package is where the distilled agent loop now lives.
  • Reach for any-agent when you specifically need to run or evaluate agents across multiple frameworks (Agno, Google ADK, LangChain, LlamaIndex, OpenAI Agents SDK, smolagents, TinyAgent) under one API.

Before starting feature work, check whether the change belongs in tinyagent instead. See the banner in README.md for the user-facing statement.

Where to Look First

Project Structure & Module Organization

  • src/any_agent/: Core library. AnyAgent is the main entry point; AgentConfig and AgentFramework define config.
  • src/any_agent/frameworks/: One module per supported framework (agno, google, langchain, llama_index, openai, smolagents, tinyagent). Each implements AnyAgent's abstract methods via lazy imports to keep optional dependencies isolated. The tinyagent module is a thin shim that delegates to the standalone mozilla-ai-tinyagent package; the loop itself lives there.
  • src/any_agent/callbacks/: Callback system with per-framework wrappers (wrappers/) and span generation (span_generation/). Base class is Callback in base.py.
  • src/any_agent/tools/: Built-in tools (web browsing, user interaction, final output) plus MCP client integration (mcp/), A2A tools, and Composio integration.
  • src/any_agent/tracing/: OpenTelemetry tracing setup plus attribute keys (AnyAgentAttributes, and GenAI re-exported from tinyagent). The AgentTrace / AgentSpan / TokenInfo / CostInfo / AgentMessage types are re-exported from the tinyagent package by agent_trace.py, so both packages share the same classes; otel_types.py re-exports the OTel value types the same way.
  • src/any_agent/evaluation/: LLM judge and agent judge evaluators.
  • src/any_agent/serving/: A2A protocol and MCP server implementations for serving agents.
  • src/any_agent/vendor/: Vendored adapters (langchain_any_llm, llama_index_utils). Excluded from the ruff lint hook (ruff-format still applies) and from coverage.
  • src/any_agent/testing/: Test helpers (helpers.py) shipped with the package.
  • src/any_agent/utils/: Small shared utilities (cast.py).
  • demo/: Standalone Streamlit demo deployed to Hugging Face Spaces. It has its own requirements.txt and is excluded from the ruff lint hook (ruff-format still applies) and from mypy; it is not part of the library.
  • scripts/: Repo tooling (convert_to_gitbook.py, generate_api_docs.py, wake_up_hf_endpoint.py), excluded from mypy.
  • tests/: unit/, integration/, snapshots/, cookbooks/ (runs the notebooks under docs/cookbook/), docs/ (checks code blocks in the docs via mktestdocs), and assets/ (fixture data: trace JSON and HTML), plus shared fixtures in tests/conftest.py.

Read the full file on GitHub · 93 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 · +17 lines · +686 tokens per session e05906173fa7
  2. 2mo ago First seen · 76 lines · 1,476 tokens per session scan A ed78445e607d

Subscribe to this mod's changes

any-agent AGENTS.md is an instructions file published in the GitHub repository mozilla-ai/any-agent (1,255 stars, last pushed 6d ago), licensed Apache-2.0. It adds 2,162 tokens to every session, about $0.0086 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

any-agent AGENTS.md compared with instructions from other repositories

any-agent AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
any-agent AGENTS.mdmozilla-ai/any-agentInstructions file1.3k6d agoApache-2.0A2,162Codex, 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