Lion Cipher Lab

Build your first AI harness: an LLM that triages log lines with a tool

Why it matters

A language model on its own is just a text box — you paste something in, you read something out. It becomes useful software the moment you wrap it in a harness: a program that feeds it inputs in a loop, gives it a tool or two it can call, and — the part everyone skips — checks its answers before doing anything with them. That wrapper is what every real AI feature is made of, from alert triage to code review bots. This lab has you build the smallest honest one end to end, on your own machine for free, so you understand it from the inside instead of from a vendor's marketing. Just as…

What you'll learn

Steps in this lab

  1. What an AI harness is — and when it's the right tool
  2. Install Ollama and a small model
  3. Define the tool and the synthetic logs
  4. Ask the model for STRUCTURED output, not prose
  5. The guardrail: validate before you trust
  6. The loop: tool call, confidence threshold, human-in-the-loop
  7. Prove the guardrail works: try to break your own harness
  8. Make it better — and know when NOT to reach for this at all

Open the full interactive lab →