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.
npx agentmods add agents/mozilla-ai/any-agent/indexgit clone --depth 1 https://github.com/mozilla-ai/any-agentWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01500 |
| Opus 5 | $0.00000 | $0.00750 |
| Sonnet 5 | $0.00000 | $0.00300 |
| Haiku 4.5 | $0.00000 | $0.00150 |
Grade A, and why
index 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.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Defining and Running Agents
Defining Agents
To define any agent system you will always use the same imports:
from any_agent import AgentConfig, AnyAgent, AgentRunError
# In these examples, the built-in tools will be used
from any_agent.tools import search_web, visit_webpage
Check AgentConfig for more info on how to configure agents.
Single Agent
agent = AnyAgent.create(
"openai", # See other options under `Frameworks`
AgentConfig(
model_id="mistral:mistral-small-latest",
instructions="Use the tools to find an answer",
tools=[search_web, visit_webpage]
),
)
Multi-Agent
{% hint style="warning" %} A multi-agent system introduces even more complexity than a single agent.
As stated before, carefully consider whether you need to adopt this pattern to solve the task. {% endhint %}
Multi-Agent systems can be implemented using Agent-As-Tools.
Framework Specific Arguments
Sometimes, there may be a new feature in a framework that you want to use that isn't yet supported universally in any-agent.
The agent_args parameter in AgentConfig allows you to pass arguments specific to the underlying framework that the agent instance is built on.
Running Agents
try:
agent_trace = agent.run("Which Agent Framework is the best??")
print(agent_trace.final_output)
except AgentRunError as e:
agent_trace = e.trace
Check AgentTrace for more info on the return type.
Exceptions are wrapped in an AgentRunError, that carries the original exception in the __cause__ attribute. Additionally, its trace property holds the trace containing the spans collected so far.
Async
If you are running in async context, you should use the equivalent create_async and run_async methods:
import asyncio
async def main():
agent = await AnyAgent.create_async(
"openai",
AgentConfig(
model_id="mistral:mistral-small-latest",
instructions="Use the tools to find an answer",
tools=[search_web, visit_webpage]
)
)
agent_trace = await agent.run_async("Which Agent Framework is the best??")
print(agent_trace.final_output)
if __name__ == "__main__":
asyncio.run(main())
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.
- 2d ago First seen · 190 lines · 0 tokens per session scan A 6029cf373be6
index is an agent published in the GitHub repository mozilla-ai/any-agent (1,197 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,500 tokens. 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.
Other agents, from other repositories
a2a
One agent invoking another is delegation; A2A is the transport binding used when the target is outside your platform, and this page separates the two.
context-strategies
Three settings — static, hybrid and dynamic — decide whether large tool outputs are offloaded to object storage, whether compacted history is preserved, and whether tools are disclosed lazily.
acp-developer
Agent-to-Agent (A2A) protocol developer for building interoperable agent systems using Google's open A2A standard with JSON-RPC, task lifecycle, and streaming.
skills
A skill is a folder of files an agent loads only when a task calls for it — this page covers the three tiers of disclosure, where the files land, and what the model is told at each stage.
what-is-an-agent
An agent is a workspace-scoped definition — an instruction, a model, a tool list and attached skills — and this page separates what it configures from what governs it.
ai-readiness-reporter
Runs the AgentRC readiness assessment on the current repository and produces a self-contained, static HTML dashboard at reports/index.html. Explains every readiness pillar, the maturity level, and an actionable remediation plan, framed by AgentRC measure → generate → maintain loop. Use when asked to assess, audit…