VFlash: Fast, Accurate Visual Planning via Flash Primitive Decoding
u_Unrolled
Build Atlas

Part 8 of 9 · project Unrolled Pro

Let it act

Give Atlas tools, memory and a loop, then put a gateway between the model and the tools so that a fooled model still can't do damage.

Before you start

This page builds the code. The ideas behind it are taught in the Library lessons listed at the end; read them first if a step uses something you haven't met. Inspect and copy the complete code in the Atlas Codebase Browser and run each step as you read.

Part 7 answers questions. Part 8 lets Atlas do things for a student: look up what they got wrong, quiz them on it, put a review on their calendar. That turns every model mistake into a possible action, and Part 7 already planted the problem: retrieved text is written by other people. So this part builds two things at once: the agent loop, and the gateway that decides, in plain code, which of the model's proposals actually run.

the policy proposes a tool call; the gateway checks whether the tool is granted, the arguments match the schema, the student acts on their own data, the context is tainted, writes are confirmed, and the budget allows it; only then does the tool run and its result go back to the policy.
Diagram— the policy proposes a tool call; the gateway checks whether the tool is granted, the arguments match the schema, the student acts on their own data, the context is tainted, writes are confirmed, and the budget allows it; only then does the tool run and its result go back to the policy.

Step 1 · Tools with capability flags

A tool is a function plus what it's allowed to touch. The flags are what the gateway reasons about, so they're declared next to the function rather than inferred.

Together these make the "lethal trifecta" from the agent-security lesson: private data (get_progress), untrusted content (search_lessons), and a way to send data out (send_message). Any injection that reaches this agent can try to chain them.

That's the preview. Build Atlas Parts 1 and 2 are free; the full walkthrough of Part 8 is part of Unrolled Pro.
Staff AI & Pro Tier Lesson

Unlock "Build Atlas, Part 8: Let it act"

The foundations are free forever. Unrolled Pro unlocks the complete lesson, production architectures, and 55 battle-tested ML system design case studies.

Everything included with Pro:
All 234+ Deep-Dive Lessons across transformer internals, inference, RAG & agents
55 Staff-Level ML & System Design Case Studies with mathematical capacity estimates
AI Engineer Sheet & Exercises with worked solutions, self-checks, and code
100 Landmark Research Papers guided walkthroughs & progress tracking
14-Day Money-Back Guarantee — 100% full refund if you aren't satisfied
View Plans & Unlock All Lessons

From ₹167/mo (~$2/mo) · Cancel anytime · Instant activation

100% Risk-Free: 14-day no-questions-asked money-back guarantee

Go deeper in the Library

The lessons that teach the ideas this part uses, in the order to read them.