A3S Code Core Library
Embeddable AI agent library with tool execution capabilities. This crate contains all business logic extracted from the A3S Code agent, enabling direct Rust API usage as an embedded library.
Quick Start
use ;
# async
Architecture
Agent (facade — config-driven, workspace-independent)
+-- LlmClient (Anthropic / OpenAI)
+-- CodeConfig (HCL / JSON)
+-- SessionManager (multi-session support)
|
+-- AgentSession (workspace-bound)
+-- AgentLoop (core execution engine)
| +-- ToolExecutor (14 tools: 11 builtin + 3 skill discovery)
| +-- LlmPlanner (JSON-structured planning)
| +-- HITL Confirmation
+-- HookEngine (8 lifecycle events)
+-- Security (sanitizer, taint, injection detection, audit)
+-- Memory (episodic, semantic, procedural, working)
+-- MCP (JSON-RPC 2.0, stdio + HTTP+SSE)
+-- Cost Tracking / Telemetry