Anthropic API
2 posts

Building AI Agents in Rust — Part 2: Structured Prompt Architecture and the Cache Boundary
Following Part 1’s tool-calling loop, Part 2 dives into Agent system prompt architecture: Identity, Instructions, Output, Examples, and Context layers, plus Anthropic Prompt Caching and prompt fingerprinting for regression testing.
July 1, 2026 · 12 min · 2389 words · 梦兽编程

Building AI Agents in Rust — The Tool-Calling Loop Explained
A deep dive into the core mechanism of AI agents: the tool-calling loop. Through a ~200-line Rust implementation, we break down how models gain the ability to act via tool use, and why the architecture behind Claude Code and GitHub Copilot is the same fundamental loop.
June 22, 2026 · 9 min · 1810 words · 梦兽编程
