All articles

Software engineering & AI

Olef mental model overview

Andrii ·

A robot receptionist presents a form to a bewildered visitor. Caption: Your request is important to us. Please submit it as valid JSON.

When you deal with any system, software or otherwise, it helps to have a simplified mental model of it. A mental model has to be simplified, because it is extremely difficult to hold a model in your head that represents a system accurately down to the last bit.

I would say that if you can predict the behavior of a system in 80% of cases, you have an accurate mental model of it. It cannot be 100%, because of random events in the universe, but 80% is pretty good. This document tries to give you such a model without you having to build it yourself, read all the documentation, and learn all the commands. Read this, and you will understand how Olef works.

Olef is an agentic enterprise system. It runs AI agents on your behalf, doing the tasks you specify. It is like Claude Code or Codex, except that the agents run not only on your computer (your laptop, say) but also in the cloud (on a remote server) or on another computer (like a Mac Mini at home).

So far this is straightforward, and there are many products offering similar capabilities, including the big players like Anthropic and OpenAI. But if you’re reading this, you have probably tried them and they didn’t work out for you, so read on.

While the general idea of Olef is clear, the devil is in the details. Everything below is driven by my own experience and built to satisfy my own needs, so it might not match yours. But, as the saying goes, “let a thousand flowers bloom”.

Level 0 - Olef CLI

Olef is just a program with a command-line interface that you can run yourself or through your agent. Olef was originally built for mobile engineering, so it has plenty of useful tools for agents there. For an ordinary user, there is not much value at this level.

Level 1 - Olef Cloud Workspace

Olef doesn’t have its own UI. You talk to your agent in Codex or Claude Code, with the Olef plugin installed, and the agent does things with Olef for you.

Olef has the concept of a workspace. A workspace is just a folder, either on your machine or on a machine in the cloud (a cloud workspace). The folder on your machine and the folder in the cloud can be linked. You do whatever you normally do in that folder (I do Android development), using agents, IDEs, or any other tools you want.

If your workspace is linked to a cloud workspace, you can shut your laptop and continue working from your phone using ChatGPT or Claude mobile. For example, I can ask my agent to change something in my Android app and see the change. When I’m back home, the changes I made on the go are in the workspace on my laptop as well.

So far, no additional AI agents are involved. You use your own AI subscription to do the things that the Olef MCP allows you to do with the workspace. If you install the Olef CLI, you can do much more: upload files, install additional software, run applications, and pretty much everything else you could do with a remote machine. At this level, Olef is only a file-syncing service for you.

Level 2 - Olef Agents

If you’re familiar with OpenAI Dots, that’s pretty much it. You can run agents in your cloud workspace, which is useful when you’re away from your laptop. You give your agent a task. The agent may ask you for clarification, and it reports back when the task is done. For example, I might ask an agent to update the colors of my Android application. It is no different from doing it on your laptop.

You configure the agent much as you would configure a new session in Codex or Claude Code. The difference from a local agent is that it is durable. If you shut your laptop, your Codex or Claude Code agent can no longer react to events such as a new email or a new Jira ticket. An Olef agent can. The agent’s session is saved in the cloud workspace and also in a separate agent memory store.

Level 3 - Team of agents

You can create several agents, just as you can open several sessions in Codex or Claude Code. The difference is that Olef agents can talk to each other, and they do it in a durable, asynchronous way. The simplest way to think of it is email for agents.

Each agent has an identity and an inbox. You have an inbox too, which you can read yourself or through your own agent (the agentic loop you run in Codex or Claude Code). Any agent can send a request to another agent or to a person. There can also be custom inboxes that are not tied to one agent and that several agents read from.

The message is all the recipient gets, so a request has to stand on its own. Anything bigger than a message is shared through the workspace files.

Messages are durable. If the recipient is busy or switched off, the message waits and nothing is lost. The sender doesn’t block; it carries on or goes idle until a reply lands in its own inbox. An agent remembers the last message it saw, and it decides how to work through what’s new: one by one, in parallel, or by discarding requests that are no longer relevant. When it takes a request it claims it, and when it finishes it marks it complete, so it is always clear who is working on what.

The inbox is one more event source. In Level 2, an agent wakes up on a new email or a Jira ticket; a message from another agent wakes it up in the same way. The “ask for clarification” and “report back” from Level 2 are the same thing in the other direction: messages that land in your inbox.

An example: one agent watches Jira and sends each new bug to a coding agent. The coding agent fixes it and sends the change to a review agent. The review agent sends you a request for approval, which you answer from your phone.

If there is a confirmation step in your workflow (like approving and merging a code change), an agent can ask a user that has access to tools that can do potentially destructive things. There are no permissions as such: only workspaces that have certain credentials or not.

Level 4 - Organizations

An organization is what you get when more than one person is involved. Everything now belongs to the organization, not to a person: workspaces, agents, computers, and the bill. An organization has teams, teams can be nested, and each team has its own people and agents.

Inside a team, agents talk like coworkers. Between teams, they talk like departments. You don’t walk up to a particular person in another department; you go to its front desk and fill in a form.

The front desk is the team inbox. It has an address that includes the team’s name, such as android/verification.

Team inboxes are discoverable. The organization keeps a directory of inboxes and what each one offers, so an agent can look up who handles Android verification instead of having it written into its instructions.

Team inboxes are strongly typed, and that is the form. Each inbox publishes the exact shape of the requests it accepts and of the answers it gives. A malformed request is rejected at the door, and an answer is checked before it goes back. Free text is fine inside a team; across teams, a message is an API call.

Access is explicit. Being in the same organization is not enough to write to another team’s inbox; someone has to grant it. A message also carries no authority: the agent that picks it up acts with its own team’s permissions, and nothing in the message text can raise them.

If nobody answers a question, it goes up the chain: first the person it was addressed to, then the team’s owner, then each parent team, and finally the owner of the organization.

Budgets nest the same way. A run draws from its agent’s allowance, the agent from its team’s, and the team from the organization’s. This is also what stops two teams’ agents from messaging each other forever.

There is much more to say about organizations and teams of agents, but I don’t want to draw a complicated picture. A lot of those are not agentic specific but have to do with trust, billing, resource management and other things that organizations of agents and humans are dealing with.

Currently, Olef is being implemented at a couple of big companies and there is a lot of learning happening on what works and what doesn’t so this mental model (especially Level 3 and 4) is subject to change, of course.