Lion Cipher Lab

Run a security agent fully offline with Ollama — and measure when a small local model is actually trustworthy

Why it matters

"Just run a local model" is easy to say and easy to get wrong. Small models that fit on a laptop can absolutely do agentic work — loop, pick a tool, read the result, decide the next step — but they are markedly less reliable at it than a frontier model, and the failures are specific and repeatable: they emit JSON wrapped in prose, they invent tool names that don't exist, and they loop without ever deciding they're done. If you are doing incident response on an air-gapped network, or you simply cannot let sensitive data leave the building, running fully offline is not a compromise — it is the…

What you'll learn

Steps in this lab

  1. The reliability gap — and why offline is sometimes the RIGHT call
  2. Open a terminal and install Ollama and a small model
  3. Build the offline world: synthetic data and three read-only tools
  4. Two ways to ask the model: naive free text vs constrained JSON
  5. The instrumented ReAct loop — count every failure mode
  6. Run it, read the BEFORE/AFTER, and make the judgment
  7. Make it better — and know when a small local model is the wrong tool

Open the full interactive lab →