anda AGENTS.md

AGENTS.md instructions for ldclabs/anda, covering agents.md, scope, repository shape, working rules and runtime boundaries.

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/ldclabs/anda/agents-md
Clone the repo
git clone --depth 1 https://github.com/ldclabs/anda

Made for: Codex, OpenCode.

Per session 1,786 This file is loaded in full into every session.
When invoked 1,786 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.01786 $0.01786
Opus 5 $0.00893 $0.00893
Sonnet 5 $0.00357 $0.00357
Haiku 4.5 $0.00179 $0.00179

Measured today against content hash 0bfa439aaf8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 today.

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 · 184 lines

How it starts

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

Scope

This file applies to the whole ldclabs/anda workspace. Follow more specific instructions in nested AGENTS.md files if any are added later.

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.
  • 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_history is the persisted, provider-neutral history. Provider per-turn intermediate state (Anthropic thinking.signature, Gemini thoughtSignature) belongs in CompletionRequest::raw_history, which every adapter sends ahead of the converted chat_history and which is scoped to one in-process reasoning round. Do not add provider-specific fields to ContentPart to carry such state — an adapter dropping it on the way in is correct by design. Do fix the reverse: converting out of ContentPart must never emit something the provider rejects (e.g. a thinking block with an empty signature); omit it instead.

Read the full file on GitHub · 184 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. today First seen · 184 lines · 1,786 tokens per session scan A 0bfa439aaf8a

Subscribe to this mod's changes

anda AGENTS.md is an instructions file published in the GitHub repository ldclabs/anda (438 stars, last pushed 25d ago), licensed Apache-2.0. It adds 1,786 tokens to every session, about $0.0089 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-09-01.