Agent-Span: Instructions file for Codex

AGENTS.md

Agent-Span AGENTS.md is an instructions file for Codex, OpenCode from oxbshw/Agent-Span. It costs 700 tokens per session, scanned A, original, MIT.

A set of coding instructions for AgentSpan, an asynchronous Rust web-access gateway for AI agents. It explains the repository layout and the commands used to build, test, lint, format, and run its services.

In plain words
What is it for?
It is for working on AgentSpan's routing, caching, authentication, API, channels, health checks, and Python SDK, including adding a communication channel or an MCP tool. MCP is a standard way for AI assistants to connect to tools.
Why use it?
It gives a developer a map of a multi-package Rust repository and makes the expected checks explicit. This reduces guesswork when changing code or adding integrations.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 Agent-Span AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/oxbshw/agent-span/agents-md"><img src="https://agentmods.dev/badge/instructions/oxbshw/agent-span/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 700 This file is loaded in full into every session.
When invoked 700 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.00700 $0.00700
Opus 5.5 $0.00280 $0.00280
Sonnet 5.5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

Agent-Span 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 · 61 lines

How it starts

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

AGENTS.md

AgentSpan is an async-Rust web access gateway for AI agents. This file is for AI coding assistants (Claude Code, Cursor, Codex) working in this repo.

Build & test

cargo test --workspace                    # run all tests
cargo clippy --workspace --all-targets -- -D warnings   # lint
cargo fmt --all -- --check                # format check
cargo run --bin agentspan -- serve         # start the API on :8080
cargo run --bin agentspan-mcp              # start the MCP server (stdio)

Python SDK: pip install -e sdk/python[dev] then pytest -q in sdk/python/.

Crate layout

Crate What lives here
agentspan-core Channel/Backend traits, types, config, errors
agentspan-probe Command execution + 6-state health classification
agentspan-router Backend selection, retry, circuit breaker, adaptive routing
agentspan-cache 3-tier cache (memory/disk/Redis), singleflight, optimizer
agentspan-auth API keys (SHA-256), tenants, RBAC, rate limiting, audit
agentspan-channels All 52 channel implementations + registry
agentspan-api Axum REST server, SSE, OpenAPI spec, middleware
agentspan-mcp MCP server (stdio + HTTP), 91 tools
agentspan-cli The agentspan binary — install, doctor, serve, skill, etc.

Adding a channel

  1. Copy crates/agentspan-channels/src/hackernews.rs (free API) or spotify.rs (OAuth) as a template.
  2. Implement Channel + Backend traits. Use BackendRouter for fallback.
  3. Register in src/lib.rs (module + re-export) and src/registry.rs.
  4. Add MCP tools in crates/agentspan-mcp/src/tools.rs.
  5. Add a format rule in crates/agentspan-cli/src/commands/format.rs.
  6. Run cargo test -p agentspan-channels — the registry count test will tell you the expected count.

Adding an MCP tool

Add a ToolDef entry in crates/agentspan-mcp/src/tools.rs. The channel field must match a registered channel name. Use Op::Read for URL-based fetch, Op::Search for keyword queries, Op::Doctor for health.

Read the full file on GitHub · 61 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 · 61 lines · 700 tokens per session scan A fb32326c26d7

Subscribe to this mod's changes

Agent-Span AGENTS.md is an instructions file published in the GitHub repository oxbshw/Agent-Span (45 stars, last pushed 2mo ago), licensed MIT. It adds 700 tokens to every session, about $0.0028 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

Agent-Span AGENTS.md compared with instructions from other repositories

Agent-Span AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Agent-Span AGENTS.mdoxbshw/Agent-SpanInstructions file452mo agoMITA700Codex, 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