Anda
A Rust framework for building composable AI agent runtimes.
README Translations
English readme | 中文说明 | 日本語の説明
Introduction
Anda is a Rust framework for building AI agents that can combine models, tools, memory, and other agents into a single runtime. It focuses on composability, type-safe extension points, asynchronous execution, and practical runtime control.
The core engine lets developers register agents and tools, route model requests by capability labels, call local or remote functions, isolate context state, and add optional persistence or memory layers when an application needs them.

Key Features
-
Composable agents and tools
Agents and tools are registered through stable traits and function definitions, so specialized components can be combined into larger workflows without hard-coding one application shape.
-
Model routing
The engine can route completion requests through labeled model tiers such as primary, pro, flash, or lite, while provider-specific adapters stay behind a common request and output contract.
-
Runtime orchestration
CompletionRunner handles iterative model turns, tool calls, agent calls, usage accounting, artifacts, steering messages, follow-up messages, cancellation, and compact continuation handoffs for long-running sessions, which the model can also trigger itself at a task boundary with a handoff it writes. Subagents add root-scoped identity, turn-completion events, bounded messaging and shared budgets, with opt-in idle checkpoints and explicit context handoffs. See subagent lifecycle.
-
Scoped execution context
BaseCtx and AgentCtx provide isolated state, cache, object storage, HTTP calls, signed calls, cancellation, and child contexts for each agent or tool.
-
Extensible memory and skills
Optional extensions provide conversation storage, KIP-based memory tools, filesystem access, shell execution, fetch, notes, todos, and file-backed skills. Coding agents can opt into a shell/session/patch bundle with bounded output, supervised processes, and optional macOS/Linux process sandboxing; restricted file agents can register filesystem tools without granting shell access. File-backed skills include bounded catalogs, stable identities, paginated package resource reads, explicit-use policies, and host-owned dependency preflight.
Notes support bounded lookup and optional context indexes; validated session tasks survive context compression. See notes and tasks.
-
Discovery-aware tool bundles
Static tools, dynamic providers, and MCP servers can expose capability groups so agents can survey related tool bundles with tools_groups, expand schemas on demand with tools_select, and optionally invoke discovered callables through the built-in tools_call proxy without mutating the request’s declared tool prefix.
MCP integrations include bounded catalogs and transport input, stable routes, model-facing image results, configurable call policies, and opt-in elicitation/resource APIs. See MCP integration.
Project
Documents:
Project Structure
anda/
├── anda_cli/ # Command-line interface for Anda engine servers
├── anda_core/ # Core traits, types, and runtime contracts
├── anda_engine/ # Agent runtime, orchestration, contexts, models, and extensions
├── anda_engine_server/ # HTTP server for serving one or more Anda engines
└── anda_web3_client/ # Web3 client for non-TEE environments
How to Use and Contribute
For application builders
Use anda_cli and anda_engine_server to run and interact with configured engines.
For developers
- Build custom agents and tools with the
anda_core traits.
- Extend
anda_engine with reusable runtime features.
- Improve model adapters, context capabilities, memory integrations, and server APIs.
Products Built on Anda
- Anda Brain: Persistent memory and cognition product built on the Anda framework.
- Anda Bot: Personal AI assistant and application runtime built on the Anda framework.
- KIP: Knowledge Interaction Protocol used by Anda memory tools.
License
Copyright © 2026 LDC Labs.
ldclabs/anda is licensed under the MIT License. See LICENSE for the full license text.
评论