Borrowing it
Nothing to install: this file belongs to ldclabs/anda. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ldclabs/anda/main/AGENTS.mdgit clone --depth 1 https://github.com/ldclabs/andaWrote 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.
[](https://agentmods.dev/instructions/ldclabs/anda/agents-md)<a href="https://agentmods.dev/instructions/ldclabs/anda/agents-md"><img src="https://agentmods.dev/badge/instructions/ldclabs/anda/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.
<a href="https://agentmods.dev/instructions/ldclabs/anda/agents-md"><img src="https://agentmods.dev/badge/instructions/ldclabs/anda/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02181 | $0.02181 |
| Opus 5.5 | $0.00872 | $0.00872 |
| Sonnet 5.5 | $0.00436 | $0.00436 |
| Haiku 4.5 | $0.00218 | $0.00218 |
Grade A, and why
anda 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 20d 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 — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for AI coding agents working in this repository.
Agent Workflow
- Work independently as the current agent. Do not spawn or delegate work to subagents.
- Before editing, run
git status --short, confirm the current branch, and inspect existing diffs in the files you intend to change. Preserve the user's existing work; do not overwrite or revert unrelated files or changes. - Use
rgfor search and focused reads before editing. Do not assume module boundaries from filenames alone. - Before committing, review the final diff and stage only the files or hunks belonging to the requested task.
- At completion, briefly summarize the changes, the checks actually run and their results, and any checks not run or blocked. Never report an unrun check as passing. When committing, include the branch and commit ID in the summary.
Repository Shape
anda is a Rust workspace for composable AI agent runtimes.
anda_core: stable traits, shared data models, context capabilities, JSON schema helpers, and RPC helpers.anda_engine: runtime orchestration, contexts, model adapters, tools, hooks, memory, subagents, and reusable extensions.anda_engine_server: HTTP server layer for exposing engines.anda_cli: CLI entrypoint for configured engine servers.anda_web3_client: Web3 integration for non-TEE environments.docs/architecture.md: source-level runtime architecture.MCP_INTEGRATION.md: MCP host/client design and boundaries.
Keep anda_core small and dependency-light. Runtime integrations belong in
anda_engine or higher-level crates unless the shared contract genuinely needs
to change.
Working Rules
- Inspect the exact code and docs relevant to the request before editing.
- Preserve user or agent changes already present in the working tree. Do not revert unrelated dirty files.
- Prefer small, behavior-focused changes over broad refactors.
- Keep public API changes coherent across code, docs, examples, and tests.
- Use workspace dependencies from the root
Cargo.toml; do not add duplicate per-crate versions unless there is a clear reason. - Keep generated schemas and protocol-visible names stable. Agent, tool, and provider names must satisfy the function-name rules: lowercase ASCII letters, digits, underscores, and hyphens, starting with a lowercase letter, max 64 bytes.
- Never use
oneOf,anyOforallOfin a model-facing schema: tool and agent parameters, MCP-exposed tool schemas, and structured-output schemas. Anthropic rejects them at the top level of a tool'sinput_schemaand fails the whole request with a 400 (KIP's top-leveloneOfonce broke every Brain pass on Claude); strict modes reject them anywhere. Write a nullable field as a type list ("type": ["string", "null"]), alternatives of distinct types as one schema with a type list, and tagged variants as one object with anenumdiscriminator and the variant-only fields nullable or optional (seememory_tool_schema). Enforce cross-field rules such as "exactly one ofcommandoroperations" when parsing the arguments, and state them in the descriptions. schemars derives these keywords fromOption<Struct>and enums, so check the generated JSON (extension_tool_definitions_are_strict_and_union_free). The Anthropic adapter drops top-level combinators only as a safety net for external MCP schemas; it is not a way to keep them in our own. - When changing model/provider conversion code, preserve raw-history and tool/user message boundaries. Do not merge tool outputs into user messages or lose provider-specific content unless the existing code explicitly does so.
ContentPart/chat_historyis the persisted, provider-neutral history. Provider per-turn intermediate state (Anthropicthinking.signature, GeminithoughtSignature) belongs inCompletionRequest::raw_history, which every adapter sends ahead of the convertedchat_historyand which is scoped to one in-process reasoning round. Do not add provider-specific fields toContentPartto carry such state — an adapter dropping it on the way in is correct by design. Do fix the reverse: converting out ofContentPartmust never emit something the provider rejects (e.g. athinkingblock with an empty signature); omit it instead.
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.
- 20d ago Changed · -1 lines · -3 tokens per session 88cad3d3be26
- 28d ago Changed · +14 lines · +263 tokens per session 120a15e0012f
- 1mo ago Changed · +10 lines · +135 tokens per session dc5d059a3768
- 2mo ago First seen · 184 lines · 1,786 tokens per session scan A 0bfa439aaf8a
anda AGENTS.md is an instructions file published in the GitHub repository ldclabs/anda (448 stars, last pushed 18d ago), licensed Apache-2.0. It adds 2,181 tokens to every session, about $0.0087 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-09-01.
anda AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anda AGENTS.mdldclabs/anda | Instructions file | 448 | 18d ago | Apache-2.0 | A | 2,181 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |