cd /news/ai-agents/building-ai-agents-in-rust-part-8 · home topics ai-agents article
[ARTICLE · art-63223] src=pub.towardsai.net ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Building AI Agents in Rust - part 8

Eugene v0.8 introduces memory for AI agents built in Rust, shipping two complementary stores, a VectorStore trait, and agentic RAG through new skills 'remember' and 'recall'. The memory system uses markdown files with YAML frontmatter stored under ~/.claude/projects/<hash>/memory/, with an entrypoint MEMORY.md loaded into the system prompt and individual files surfaced via a cheap-model selector. The VectorStore trait supports embedding-based retrieval with an in-memory implementation, ready to be swapped for Qdrant or pgvector.

read1 min views59 publishedJul 17, 2026
Building AI Agents in Rust - part 8
Image: Pub (auto-discovered)

Member-only story

Memory and agentic RAG #

Every agent in this series so far has been amnesiac. A new run starts with a fresh history and ends with a write to nothing. The user can mention they prefer terse explanations on Monday, and on Tuesday the agent is back to wrapping every answer in three caveats. For demos this is fine. For an assistant a user actually depends on, it is the difference between a tool and a colleague.

This post adds memory. eugene-memory

ships two complementary stores, one trait, and a small amount of glue. The headline pattern is the one the Claude Code CLI uses: each memory is a markdown file with a YAML-ish frontmatter, all files live in a directory under ~/.claude/projects/<hash>/memory/

, an entrypoint called MEMORY.md

gets loaded into the system prompt verbatim, and individual memory files surface on demand through a cheap-model selector that reads only their one-line descriptions. Around that lives a VectorStore

trait for embedding-based retrieval, with a small in-memory implementation, ready to be swapped for Qdrant or pgvector when the file-based approach hits its ceiling. Eugene v0.8 wires both into the agent loop through two new skills: remember

and recall

. The agent decides when each is called. The pattern is what the literature calls agentic RAG: retrieval is itself a tool, not a step every turn…

── more in #ai-agents 4 stories · sorted by recency
── more on @eugene 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-ai-agents-i…] indexed:0 read:1min 2026-07-17 ·