# Mission 15.1: “We already have our own AI”

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-15-1

Belongs to [Chapter 15: Wrappers and harnesses](https://llm.yoga/en/15-wrapper-harness.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Thomas**, head of IT at the customer:

> “We already have our own AI. Open WebUI on our server, login with the Microsoft account, Claude and a local model behind it. We’ve even set up an HR agent. What more could an agent give us?”

Open WebUI is a freely available chat interface that companies run on their own servers; various language models can be connected behind it. An agent is a program in which a model carries out steps on its own, such as reading files or working on tickets. This is the first meeting. Before you offer anything, you want to know what Thomas really has.

**Question 1 (decision):** Which follow-up question do you ask?

- A) “Which model is behind it, Claude or the local one?”
- B) “Does it only answer, or does it also carry out steps on its own?”
- C) “Did you train the model on your own data?”

## What’s behind it

A harness is the gear a draft horse wears. A strong horse in the pasture pulls no wagon. Only the collar, reins and shafts turn its strength into a ride. Language models are similar, and someone who says “our own AI” can mean four different layers.

At the bottom is the **model**: text in, text out, no memory, no access to files. Above it is the **wrapper**, the packaging with input field, login, history and system prompt, the fixed instruction that goes to the model before every conversation. It asks the model once per message and sends the conversation so far along with it. That alone creates the impression that the model remembers.

The **harness** lets the model act. It offers tools, runs them, returns the results and asks again until the task is done. It decides what the model gets to read with each request and what it’s allowed to do. Claude Code, Codex CLI and OpenCode, programs in which a model writes code and runs commands on the computer on its own, are harnesses like this. At the top is the **agent**: a model in a harness that pursues a goal and decides on its own which steps to take for it.

Thomas has a wrapper with add-ons. His “HR agent” is a setting in the wrapper too: an existing model with a fixed prompt and knowledge that answers once per message. That’s not nothing, because login, permissions and an interface anyone can use solve real problems. But it isn’t a program that works on tickets or changes code. Asking “Which layer?” makes sure you’re both talking about the same thing. After that, each layer has its own questions: for the model, quality and price; for the wrapper, login and where the history is stored; for the harness, tools and permissions; for the agent, what triggers it.

### In more detail: a wrapper in six lines, and where the line blurs

Here is a complete wrapper in short form (pseudocode, with German names: verlauf = history, frage = question, antwort = answer, “Antworte knapp.” = “Answer briefly.”):

```
verlauf = [system: "Antworte knapp."]
solange wahr:
  frage = eingabe("Du: ")
  verlauf += [user: frage]
  antwort = modell_api(verlauf)
  verlauf += [assistant: antwort]
```

The model is asked exactly once per message. The wrapper can’t look anything up, try anything out or correct itself. If the answer is wrong, it doesn’t notice.

A harness answers the questions a wrapper leaves open: it asks as often as needed, can look things up through tools, decides what is in the context with search and compaction, and enforces fixed rules with hooks and permissions in code instead of only in the prompt.

The lines are blurry. With knowledge stores, web search and connected tools, Open WebUI grows toward a harness. Still, it isn’t a program that changes files, runs commands and checks its own work. For a company AI that’s intended: employees should get a safe chat, not an agent with write access.

## Try it

**Sort: which layer does it sit on?**

**Task:** Seven things from the conversation with Thomas. Assign each one to a layer.

Categories: Model · Wrapper · Harness · Agent

1. Open WebUI with Microsoft login, history and model picker
2. Claude Opus 5.5, addressed through its API, without anything around it
3. The “HR agent” in Open WebUI: base model, fixed system prompt, stored knowledge
4. A program that reads files, runs commands and keeps asking the model until it’s done
5. Claude Code with the task “Find and fix the bug in the login,” deciding on its own which files to open
6. Before every command on the computer, a small program of your own checks whether it’s dangerous and blocks it
7. tybo, an assistant that takes messages around the clock and is also triggered by schedules

## Check

**Question 2 (check question):** Thomas says: “After ten messages our assistant still knows my name. So the model has a memory.” What’s true?

- A) Yes, the model learns during the conversation and only forgets it later.
- B) No, the wrapper sends the history along every time.
- C) Yes, Open WebUI writes the name into the model.

**Question 3 (check question):** What would have to be added to Thomas’s Open WebUI to turn it into a harness?

- A) A bigger model, such as Claude Opus instead of the local model.
- B) More assistants with better system prompts for each department.
- C) Tools that the program runs, again and again until the goal is reached.

**Question 4 (check question):** Which question do you ask on the wrapper layer?

- A) Who can log in, and where is the history stored?
- B) What does a million tokens, that is, word pieces, cost?
- C) What is the program allowed to do on the computer without asking?

## Done

**What you can do now**

- You can separate model, wrapper, harness and agent and say which layer a product sits on.
- You can explain why a chat seems to remember you even though the model keeps nothing.
- When a customer says “We already have our own AI,” you ask whether it only answers or carries out steps on its own, and then talk about the questions of that layer.

### Two cards for review

**Card 1:** True or false? “If a chat still knows your name after ten messages, the model has remembered it.”

**Card 2:** A program asks the model once per message and sends the system prompt and history along. Which layer does it sit on?

- A) Model
- B) Wrapper
- C) Harness
- D) Agent

- [Next mission: Same model, 76 vs. 58 percent?](https://llm.yoga/en/einsatz-15-2.md)
- [Try it on your Mac](https://llm.yoga/en/mac-15-1.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [Four layers: model, wrapper, harness, agent](https://llm.yoga/en/15-wrapper-harness-1.md)
- [What a wrapper is](https://llm.yoga/en/15-wrapper-harness-1.md)
- [What a harness adds](https://llm.yoga/en/15-wrapper-harness-1.md)
- [Common misconceptions](https://llm.yoga/en/15-wrapper-harness-4.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is B.
- A: A fair question, but it only touches the bottom layer. Whether Claude or a local model runs underneath says nothing about whether the software only answers or carries out steps on its own.
- B, correct: That’s the follow-up question from the chapter: on which layer does your AI sit? Thomas describes a chat interface with login and fixed prompts, so a wrapper, as you’ll see in a moment. That is valuable for privacy and acceptance, but it’s something different from an agent that acts on its own.
- C: With “our own AI” the question is tempting, but here it misses the point. What Open WebUI creates under “Models” is an assistant: an existing model with a fixed instruction and stored knowledge. The values the model has learned, the weights, stay as they are.

- Card 1: **Wrapper:** Interface, login, history and the connection to several models are the jobs of a wrapper. A normal chat calls the model once per message.
- Card 2: **Model:** That is the bottom layer: text in, text out. Without a wrapper it keeps nothing and can’t access any file.
- Card 3: **Wrapper:** Despite the name, a setting in the wrapper. It calls the model once per message with a fixed prompt and carries out no steps on its own.
- Card 4: **Harness:** Running tools and returning the results in a loop: that’s what makes a harness, such as Claude Code or Codex CLI.
- Card 5: **Agent:** The same harness, now with a goal. The model decides on its own which steps are needed. In the course’s sense, that’s an agent.
- Card 6: **Harness:** Checking programs like this (hooks) and permissions belong to the harness. They enforce rules in code, regardless of whether the model sticks to the prompt.
- Card 7: **Agent:** An agent that also runs continuously and is triggered by messages or schedules. Chapter 17 calls something like this an autonomous agent.

**Question 2:** The correct answer is B.
- A: The model doesn’t change during a request and remembers nothing between two requests. What Thomas sees is the work of the software around it.
- B, correct: That’s where the impression comes from. If the history gets too long and is cut off, the earlier part is gone for the model (chapter 5). You can recreate this yourself on the Mac.
- C: A wrapper doesn’t change any weights, the values the model has learned. Those only change through training such as fine-tuning (chapter 19).

**Question 3:** The correct answer is C.
- A: That only swaps the bottom layer. Even with the biggest model, it stays one call per message.
- B: Better prompts make the wrapper more useful. But it still asks once and can’t look anything up or try anything out.
- C, correct: That is the core of a harness: the program runs the requested tools and returns the results until the model is done. On top of that, there are rules about what the model is allowed to do, and managing what the model has in front of it on long tasks.

**Question 4:** The correct answer is A.
- A, correct: Login, permissions and storing the conversations are the wrapper’s business. These are exactly the questions Thomas answered with Open WebUI and the Microsoft login.
- B: That’s a question for the model, together with quality, context length and whether it runs locally.
- C: That’s a question for the harness. A wrapper doesn’t do anything on the computer; it only sends requests.

**Card 1:** **False.** The model keeps nothing between two requests. The wrapper, the chat software around it, sends the history so far with every message. If the history gets too long and is cut off, the earlier part is gone for the model.

**Card 2:** Correct: B, Wrapper A wrapper: interface, prompt, connection, one call per message. It only becomes a harness with tools that the program runs, and a loop that returns the results until the model is done.
