any-agent AGENTS.md

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

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/mozilla-ai/any-agent/agents-md
Clone the repo
git clone --depth 1 https://github.com/mozilla-ai/any-agent

Made for: Codex, OpenCode.

Per session 1,476 This file is loaded in full into every session.
When invoked 1,476 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.01476 $0.01476
Opus 5 $0.00738 $0.00738
Sonnet 5 $0.00295 $0.00295
Haiku 4.5 $0.00148 $0.00148

Measured 3d ago against content hash ed78445e607d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 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.

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-based tracing. AgentTrace / AgentSpan are the primary types.
  • 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).
  • tests/: unit/, integration/, snapshots/, plus shared fixtures in tests/conftest.py.

Read the full file on GitHub · 76 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. 3d 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,197 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,476 tokens to every session, about $0.0074 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.