Borrowing it
Nothing to install: this file belongs to ldclabs/anda-bot. 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-bot/main/AGENTS.mdgit clone --depth 1 https://github.com/ldclabs/anda-botWrote 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-bot/agents-md)<a href="https://agentmods.dev/instructions/ldclabs/anda-bot/agents-md"><img src="https://agentmods.dev/badge/instructions/ldclabs/anda-bot/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-bot/agents-md"><img src="https://agentmods.dev/badge/instructions/ldclabs/anda-bot/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.02071 | $0.02071 |
| Opus 5.5 | $0.00828 | $0.00828 |
| Sonnet 5.5 | $0.00414 | $0.00414 |
| Haiku 4.5 | $0.00207 | $0.00207 |
Grade A, and why
anda-bot 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 21d 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 — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for coding agents working in this repository. This file applies to the
entire tree unless a more specific AGENTS.md is added in a subdirectory.
Project Overview
Anda Bot is a local-first Rust AI agent with long-term memory, subagents, a TUI,
voice support, browser integration, cron automation, and IM channel runtimes.
The main binary is anda, implemented by the Rust package anda_bot.
The repository also contains:
chrome-extension/: Svelte + TypeScript Chrome Side Panel client.desktop/: Electron + Svelte desktop client.website/: SvelteKit marketing/support site.docsite/: Docusaurus documentation site with localized docs.skills/: runtime skill packages distributed with the project.scripts/: release/install helper scripts.
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.
Development Rules
- Keep changes scoped to the subsystem requested. Avoid broad refactors unless they are necessary to make the requested behavior correct.
- Fix the root cause and keep the implementation direct and clear. Do not add complexity for extreme or speculative scenarios beyond the task's needs.
- Prefer existing project patterns over new abstractions. This codebase already has clear boundaries for config, daemon startup, engine tools, channels, transcription, TTS, cron, and the TUI.
- When refactoring, remove obsolete branches and abstractions in the affected code, and update the corresponding callers, comments, and tests.
- Never use
oneOf,anyOforallOfin a model-facing schema: tool parameters 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 left Brain formations stuck "waiting to be organized" on Claude); strict modes reject them anywhere. Write nullable fields as"type": ["string", "null"], tagged variants as one object with anenumdiscriminator, and check new tool schemas withutil::json_schema::assert_openai_strict_parameters. Schemas we receive from Brain or Engine follow the same rule in their own repositories. - Do not commit secrets, tokens, generated local state, or user data. Runtime
state normally belongs under
~/.anda; repository examples must use placeholders. - When changing public behavior, update the relevant docs and examples. The
top-level
README.mdandREADME_cn.mdare paired and should stay in sync. - If user-facing docs under
docsite/docs/change, keep localized counterparts aligned where they already exist, especiallydocsite/i18n/zh-Hans/....
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.
- 21d ago Changed 98fc3ffb086a
- 29d ago Changed · +9 lines · +160 tokens per session 0e39c66b2640
- 1mo ago Changed · +9 lines · +35 tokens per session 07aed819d2c4
- 1mo ago Changed · +9 tokens per session 76e72fdb4c55
- 1mo ago Changed · +1 lines · +9 tokens per session 00ab0dbecdb5
- 1mo ago Changed · +24 lines · +378 tokens per session 73fd3821ee44
- 1mo ago Changed · +14 lines · +234 tokens per session fa586ed99462
- 2mo ago First seen · 140 lines · 1,246 tokens per session scan A 50d6094026c3
anda-bot AGENTS.md is an instructions file published in the GitHub repository ldclabs/anda-bot (27 stars, last pushed 7d ago), licensed Apache-2.0. It adds 2,071 tokens to every session, about $0.0083 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.
anda-bot AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anda-bot AGENTS.mdldclabs/anda-bot | Instructions file | 27 | 7d ago | Apache-2.0 | A | 2,071 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | 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 | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |