anda-bot: Instructions file for Codex

AGENTS.md

anda-bot AGENTS.md is an instructions file for Codex, OpenCode from ldclabs/anda-bot. It costs 2,071 tokens per session, scanned A, original, Apache-2.0.

Development instructions for Anda Bot, a local-first Rust AI agent with memory, subagents, a terminal interface, voice support, browser access, scheduled tasks, and messaging channels. They also describe its related web, extension, documentation, and skills projects.

In plain words
What is it for?
Use them when modifying Anda Bot or its companion projects, especially Rust workspace code, channels, automation, the terminal interface, browser integration, or distributed skills.
Why use it?
They give coding agents the project's structure and rules, helping changes stay within the right subsystem and avoiding secrets or unrelated refactors.

Instructions file for CodexOpenCode

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

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ldclabs/anda-bot/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ldclabs/anda-bot

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 anda-bot AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ldclabs/anda-bot/agents-md/github.svg)](https://agentmods.dev/instructions/ldclabs/anda-bot/agents-md)
Your own site
<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.

agentmods 80×15 button for anda-bot AGENTS.md

Your own site · 80×15
<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>
Per session 2,071 This file is loaded in full into every session.
When invoked 2,071 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.02071 $0.02071
Opus 5.5 $0.00828 $0.00828
Sonnet 5.5 $0.00414 $0.00414
Haiku 4.5 $0.00207 $0.00207

Measured 21d ago against content hash 98fc3ffb086a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 197 lines

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 rg for 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, anyOf or allOf in a model-facing schema: tool parameters and structured-output schemas. Anthropic rejects them at the top level of a tool's input_schema and fails the whole request with a 400 (KIP's top-level oneOf once 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 an enum discriminator, and check new tool schemas with util::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.md and README_cn.md are paired and should stay in sync.
  • If user-facing docs under docsite/docs/ change, keep localized counterparts aligned where they already exist, especially docsite/i18n/zh-Hans/....

Read the full file on GitHub · 197 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. 21d ago Changed 98fc3ffb086a
  2. 29d ago Changed · +9 lines · +160 tokens per session 0e39c66b2640
  3. 1mo ago Changed · +9 lines · +35 tokens per session 07aed819d2c4
  4. 1mo ago Changed · +9 tokens per session 76e72fdb4c55
  5. 1mo ago Changed · +1 lines · +9 tokens per session 00ab0dbecdb5
  6. 1mo ago Changed · +24 lines · +378 tokens per session 73fd3821ee44
  7. 1mo ago Changed · +14 lines · +234 tokens per session fa586ed99462
  8. 2mo ago First seen · 140 lines · 1,246 tokens per session scan A 50d6094026c3

Subscribe to this mod's changes

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.

Related

anda-bot AGENTS.md compared with instructions from other repositories

anda-bot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anda-bot AGENTS.mdldclabs/anda-botInstructions file277d agoApache-2.0A2,071Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot