Lion Cipher Lab

Build a multi-step AI agent that must ask before it acts

Why it matters

"AI agent" is the most hyped and least understood phrase in the industry. Strip away the marketing and an agent is a small, honest thing: a loop where a model proposes one step, your code runs a tool, the model sees the result and decides what to do next, until the job is done or a budget stops it. Building one yourself is the fastest way to see both why it is powerful — it can handle open-ended tasks whose exact steps you could not script in advance — and why it is dangerous. The instant a model can chain steps and choose its own tools, you have handed it agency, and its central failure mode…

What you'll learn

Steps in this lab

  1. What a multi-step agent is — and when it's the right tool
  2. Install Ollama and a small model
  3. Define the world: synthetic data and least-privilege tools
  4. Let the model propose ONE step at a time
  5. The safety scaffolding: allowlist, approval gate, step budget
  6. Run it, and watch it get denied — then approved
  7. Make it better — and know when NOT to build an agent at all

Open the full interactive lab →