Metadata-Version: 2.5
Name: ombro
Version: 0.3.0
Summary: A small local harness for briefing a crew of AI roles and getting bounded, reported work back.
Author: Heliotrope Atelier Ltd
License-Expression: AGPL-3.0-only
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: h11>=0.16.0
Requires-Dist: httpcore>=1.0.9
Requires-Dist: httpx>=0.28.1
Requires-Dist: jsonschema>=4.26.0
Requires-Dist: pypdf>=7.1.1
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: starlette>=1.10.0
Requires-Dist: textual>=8.2.8
Requires-Dist: typing-extensions>=4.16.0
Requires-Dist: uvicorn>=0.54.0
Requires-Dist: websockets>=17.4
Description-Content-Type: text/markdown

# Ombro

A small, local harness for briefing a crew of AI roles and getting bounded,
reported work back.

Ombro assumes models will try to do too much, so it puts deterministic limits
around them. You brief Ombro Lead, which turns what you want into a spec;
you start a job from it, walk away, and read a report later. The Lead plans
the job and briefs the crew's roles. Every job ends in a report, whether it
finished, hit a limit or failed.

**Status: 0.2.0, the first public release.** Ombro is new and still
settling: things may change between releases, and some may not yet work as
you'd expect. If something doesn't, please open an issue.

There are three ways in, all over one Python core:

- **The desktop app**, for macOS and Linux. It can also connect to Ombro
  running on a server.
- **The terminal interface**: `ombro` on its own opens a full-screen chat with
  the Lead.
- **The command line**: `ombro <command>` (`ombro jobs`, `ombro report`, and
  so on), for quick checks and scripts.

What it does: chats and briefs with the Lead; jobs that run unattended within
limits you set; roles and crews; schedules; web search and fetch, and a
browser; outside services through MCP servers and web APIs, with approvals for
what reaches other people or spends money; skills; Python scripts in the operating
system's sandbox; and folders you choose to share.

## Get Ombro

**The desktop app.** Download it from the [Releases page](../../releases/latest):

- macOS (Apple silicon): the `.dmg`, signed and notarised. Or with Homebrew:
  `brew install mrkrsl/tap/ombro`.
- Linux (amd64 and arm64): `.deb`, `.rpm` or AppImage. On Ubuntu 22.04 and
  later the AppImage needs `libfuse2` (`sudo apt install libfuse2`).

The app carries the `ombro` command too, the same Ombro at the same version
(see The desktop app, "The ombro command"). Homebrew, the `.deb` and the `.rpm`
put it on your PATH; from the `.dmg` or an AppImage, choose
**Install ‘ombro’ Command…** (in the Ombro menu on macOS, the tray menu on
Linux).

Windows and Intel Macs aren't supported yet.

**The terminal on its own.** Python 3.11 or later:

```bash
uv tool install ombro
```

(or `pipx install ombro`). Then `ombro init`; see Quick start.

**A server.** See Running Ombro on a server, below. There's a Docker image too.

**From source:**

```bash
uv tool install .          # the terminal command, from this checkout
uv sync && uv run pytest   # for development
```

Building the app is in The desktop app, below.

## What leaves your computer

Ombro keeps everything on your computer (or your server): settings, keys,
chats, jobs, reports and memory. It has no telemetry, no account and no
Ombro service. The one thing it asks by itself is whether there's a new
version: the desktop app asks GitHub, where its releases are, once a day
(turn that off in Settings › General). Everything else goes only where you
point it:

- **The model providers you add.** Your chats, briefs and the job's work go to
  the model each role uses. A local model (Ollama, LM Studio) keeps even that
  on your computer.
- **The web, when a job needs it.** Searches go to the search provider
  (DuckDuckGo unless you choose Firecrawl), and pages a job reads or browses are
  fetched from their sites.
- **The tools you add.** MCP servers, web APIs and Composio get what a job
  sends them. By default, anything that sends, shares or spends waits for your
  approval first (see Permissions).
- **Sign-ins you start**, with the service you're signing in to.

Keys are stored in owner-only files and are never sent to a model or written to
a journal or report.

## Quick start

```bash
ombro init                         # creates ~/.config/ombro, connects a model, then the set-up interview
```

`init` first asks your name, used only to greet you (Enter skips it). Then it
asks for a model provider and its API key: DeepSeek (the default), OpenAI,
Anthropic, Google Gemini, Mistral, xAI, Groq and OpenRouter are listed with
their addresses filled in, Ollama and LM Studio on your own computer need no
key, and any other OpenAI-compatible endpoint can be typed in. It
asks the endpoint which models the key can use, and offers them as a choice
for your default (an endpoint that does not list its models is asked for a
name). Every listed model that chats goes into `models.md` (speech, image and
embedding models are left out), so roles can use any of them. It then makes one test call. The key is typed into a hidden prompt and
stored in `secrets/keys.env` with owner-only permissions. It is never sent to a
model or written to a journal or report.

Once a model answers, the Lead holds the set-up interview: who you are, how
you work and how you want reports. It proposes `preferences/instructions.md`
and a "Working with you" section of its `soul.md` (its character is kept),
and writes them only if you accept. Then it offers to keep, rename or add a
crew, to add the first roles (each asked its model when there is a choice),
and to brief a first task.

```bash
ombro role add ["Marketing Assistant"] # the Lead interviews you and proposes the role's files
ombro brief "find three bakeries"      # the Lead interviews you and saves a spec; offers to start it
ombro specs                            # saved specs, by name
ombro start --spec find-bakeries       # start a saved spec (by name or by path)
ombro start                            # brief a task, then start it as soon as you accept the spec
ombro start --spec my-spec.md --detach   # keeps going after the terminal closes
ombro jobs                             # list jobs
ombro status [job_id]                  # limits and usage
ombro journal [job_id] [--follow]      # the event log, readable; --follow shows new events as they come
ombro report [job]                     # the final report (any part of the job's name; the latest by default)
ombro chat [--resume [title]]          # talk with the Lead; /brief, /remember, /new, /chats inside
ombro chats                            # saved chats by title
ombro summary                          # who you are, the crew, what is running and waiting, and jobs not yet seen
ombro preferences [edit]               # your name, theme, default crew, editor and outward preset
ombro stop <job_id>                    # stop a job; it writes its report first
ombro open [job_id]                    # open a job's workspace folder
ombro limits                           # what jobs and interviews may use
ombro limits set generous              # change the allowance level
ombro keys                             # list keys (masked) and what uses them
ombro keys set FIRECRAWL_API_KEY       # set one; typed into a hidden prompt
ombro schedule                         # schedules, their next and last jobs, and the scheduler entry
ombro schedule add <name> --spec <spec> --cron "30 7 * * 1-5"
ombro schedule show | enable | disable | remove <name>
ombro schedule install | uninstall     # the one system scheduler entry; asks first
ombro tick [--dry-run]                 # start what is due (the scheduler calls this each minute)
ombro approvals                        # what waits for your approval, across jobs
ombro approvals show ab12-3            # one in full: tool, arguments, role, reason
ombro approvals approve ab12-1 ab12-3  # run the named ones (each at most once); asks first
ombro approvals decline ab12-2         # drop it for good
ombro approvals edit ab12-3            # change its arguments; it waits for approval again
ombro tools [server]                   # tools and MCP servers; a server's tools and their permission
ombro tools web.search --provider duckduckgo --max-calls 30   # change a built-in tool
ombro tools add <name>                 # add a web API or an MCP server (asks which, or --api / --mcp)
ombro tools edit <name>                # change a web API
ombro tools remove <name>              # remove a web API or an MCP server
ombro folder                           # shared folders, and whether each can be backed up
ombro folder add ~/Documents/Brand     # share one; asks read or write
ombro folder remove brand
ombro models                           # model connections, their models, the default, and who uses each
ombro models default | refresh | add   # choose the default; ask each endpoint for its models; connect another
ombro model [lead | <crew>/<role>] [name]   # which model the Lead or a role uses
ombro keys remove FIRECRAWL_API_KEY
ombro role list [--crew <crew>]        # the Lead, then each crew's roles
ombro role add [title] --crew <crew>   # a role joins one crew
ombro role edit | remove <crew>/<role> # or the role's own name, where only one crew has it
ombro role edit lead                   # the one Lead's files
ombro role rename <role> "New Title"   # the folder too; saved briefs that name it follow
ombro role kind <role> specialist|helper
ombro crew list | add <name> | use <name>   # a new crew starts empty; `use` sets the default crew
ombro crew add legal --title "Legal Team"   # the title shown; without one, "Legal Crew"
ombro start --spec <spec> --crew ops   # --crew gives the crews when the spec names none
ombro start --spec <spec> --role marketing-researcher   # who does the work, this job only
```

Every command that lists or shows something takes `--json`, for an interface
to read: `jobs`, `status`, `report` (with its deliverables as `file://`
links), `journal` (with `--follow`, one event a line), `keys` (names and
whether each is set, never a value), `specs`, `role list`, `crew list`,
`limits`, `schedule`, `folder`, `models`, `summary` and `preferences`.

Roles and crews have a display title as well as a folder name. The role
interview asks for the title ("Marketing Assistant") and makes the folder
name from it (`marketing-assistant`); a role or crew without a `title:`
shows its name tidied. Everything shown to you uses titles, and a crew's
title works wherever its name does (`ombro crew use "Marketing Team"`).

Set `OMBRO_HOME` to use a home directory other than `~/.config/ombro`.
Example roles and specs are in [`examples/`](examples); a spec can also be
any Markdown file you write yourself.

## The terminal interface

`ombro` on its own, in a terminal, opens the terminal interface: a chat with
the Lead, full screen, with the shell restored when you leave. It opens with
a header (your crew as a tree, what is running, scheduled and waiting) that
scrolls away as the conversation grows. Type to chat; `/` lists the
commands; `/brief` starts a task interview and `/chat` goes back; `/theme`
switches between light and dark. Ctrl+C stops what is in progress; with
nothing in progress and nothing typed, press it twice to leave, or type
`/quit`. `theme: auto | light | dark` in `preferences/config.md` sets the
colours; `auto` asks the terminal for its background, then the system.

On a home with no model or key, it opens into set-up: your name, the model and
its key (typed into a hidden field), then the set-up interview. `/setup` goes
through it again.

The `/` commands do what their `ombro` commands do:

- `/brief`, `/chat`, `/new`, `/remember`: as in `ombro chat`. When a brief is
  confirmed, it offers to start the spec at once, in the background.
- `/start [spec]`: start a saved spec again, with no interview (no name: choose
  from the saved specs, newest first).
- `/jobs`, `/report [job]` (the summary, deliverables and decisions, with every
  file the job made as a link; `/report <job> full` adds Ombro's record),
  `/stop <job_id>`, `/open [job_id]`.
- `/approvals`, `/approvals show | approve | decline <ref>...`,
  `/approvals resolve <ref> sent | not-sent`; decisions work while a job is going.
- `/role`, `/role add [title] [--crew <crew>]`, `/role edit <name>`;
  `/crew`, `/crew add <name> [title]`, `/crew use <name>`.
- `/limits`, `/limits set [level]`: one allowance level for all of Ombro.
- `/model` (who uses which model, and changing one); `/models`,
  `/models default | refresh | add`.
- `/keys`, `/keys set <NAME>` (hidden); `/folder`, `/folder add <path>`,
  `/folder remove <name>`; `/schedule`, `/schedule enable | disable <name>`;
  `/tools`, `/tools <tool>` (change a built-in tool's provider or calls, such
  as `/tools web.search`), `/tools add [name]` (a web API or an MCP server),
  `/tools remove <name>`; `/preferences`,
  `/preferences edit`; `/theme`, `/help`, `/quit`.

Enter sends; Shift+Return (or Option+Return, Ctrl+J, or `\` then Return)
starts a new line. While the Lead is working a small glyph turns beneath the
conversation. `/new` clears the screen and starts a fresh chat.

A job started here shows its progress as it goes (who was briefed, who
returned). When any job ends while the interface is open, scheduled jobs
included, a notice says how it ended, links its deliverables, says what is
waiting and how to open the report; on opening, it says what finished and what
is waiting since you were last here. The interface is a layer over the
commands and files: everything it does, the command line does too. A few
things are still command-line only: `ombro approvals edit`, `ombro schedule add`,
`ombro keys remove`.

## The desktop app

The app (in `gui/`) is a Tauri window over the same core: it starts
`ombro serve`, a local API on 127.0.0.1 with a per-launch token, as a sidecar
and talks only to it. Chats, briefs, jobs, reports, approvals, schedules and
every setting are there, and a menu bar item shows what waits for you.
Closing the window keeps it in the menu bar; scheduled jobs run whether the app
is open or not.

Files dropped on the window, or chosen with the paperclip, go with your next
message (see Chat, "Attached files"); they are sent to `ombro serve`, so this
works with Ombro on a server too. A job's brief page has **Discuss this
brief**, which opens a chat where the Lead has that brief and asks whether to
change it, start it again or schedule it.

**Updates.** The app looks for a new version a little after it starts and
once a day (Settings › General turns that off; Check for Updates… in the Ombro
menu, or Check now in Settings, looks at once). When there is one, a notice
offers **Install and restart**; nothing installs until you click it, and not
while jobs run on this computer. Each update is signed, and one whose signature
doesn't match is refused. On macOS the app replaces itself. On Linux an
AppImage replaces itself, and a `.deb` or `.rpm` installs the new package,
asking for your password. A server's Ombro updates with its package
(`pipx upgrade ombro`, or a new Docker image).

It uses the same home as the terminal (see Files), so the two can be used
side by side: settings in `~/.config/ombro`, jobs and chats in `~/Ombro`. On first run, with no home yet, it
holds the set-up as a conversation.

**The ombro command.** The app's own command line is the whole of `ombro`:
`ombro` alone opens the terminal interface, and every other command works.
It's the app's version, and the app's updates update it too.

- Homebrew links it as `ombro` when it installs the app.
- The `.deb` and `.rpm` put in `/usr/bin/ombro`.
- From the `.dmg`, choose **Install ‘ombro’ Command…** in the Ombro menu, under
  Check for Updates…. It links `/usr/local/bin/ombro` to the app, asking for
  your password if that folder needs it. **Remove ‘ombro’ Command…** takes it
  away again.
- From an AppImage, the same item is in the tray menu. It writes a two-line
  script to `~/.local/bin/ombro` that runs the AppImage (what's inside it
  moves each time it starts, so a link won't do).

If you already have an `ombro` from uv or pipx, the item leaves it in place
and says which one your terminal runs first. Both use the same settings and
home, so either works; `ombro --version` tells you which you have. The app's
command starts a little more slowly (about 0.4 s, as it unpacks itself each
time).

Building it needs Node, Rust and uv. From `gui/`:

```bash
npm ci
npm run sidecar                     # freezes the ombro command into src-tauri/binaries
npx tauri build --bundles app       # the app, unsigned: fine on the Mac that built it
```

The app is then at
`gui/src-tauri/target/release/bundle/macos/Ombro.app`. Open it from Finder,
or drag it to Applications. Run `npm run sidecar` again after any change to
the Python core, or the app runs the old one. Release builds are signed and
notarised by `gui/scripts/release_macos.sh`, which needs a Developer ID.

To try it without a model or your own home, make the demo profile, which is
all invented and sends nothing anywhere:

```bash
uv run python gui/scripts/demo_home.py --fresh --open   # ~/ombro-demo, then opens the app on it
```

For work on the front end, `ombro serve --dev` (with `OMBRO_HOME` set to a
test home) accepts Vite's dev server and prints a URL to open in a browser.
`npm test` runs the app's tests; `npm run schema` and `npm run types` regenerate
its TypeScript types from the core's view types.

## Running Ombro on a server

Ombro can run on a server (Linux or macOS), with the desktop app connecting to
it from your computer. Jobs then run on the server and can't reach your
computer's files. Your settings, keys, crews, jobs and chats all live on the
server; the app keeps only which server it uses, and that server's key in your
system keychain.

### Install on the server

Python 3.11 or later, then Ombro from PyPI (or a wheel built from this
repository with `uv build`: `pipx install ./dist/ombro-*.whl`):

```bash
pipx install ombro                               # or: uv tool install ombro
ombro serve install                              # keeps the server running, now and after a restart
```

`ombro sandbox` says whether code a job writes can run on that machine. On
some Ubuntu versions (24.04, for one; 25.10 doesn't need it), a security setting stops bubblewrap
(Ombro's sandbox for job code) working until it's allowed once, with a small
AppArmor profile. `ombro serve install` offers to do it (sudo asks for your
password); by hand it's:

```bash
ombro sandbox --apparmor | sudo tee /etc/apparmor.d/ombro-bwrap >/dev/null
sudo apparmor_parser -r /etc/apparmor.d/ombro-bwrap
```

`ombro serve install` shows what it will set up and asks first: a systemd user
service on Linux (with lingering, so it keeps running when you log out) or a
launch agent on macOS. Either way the server also starts scheduled jobs, so no
cron entry is needed. `ombro serve status` checks it; `ombro serve remove`
takes it away. `ombro serve` on its own runs it in the foreground.

The server listens on 127.0.0.1:8765 unless told otherwise. Don't put it on the
open internet, or on a plain home-network address: reach it over SSH or
Tailscale, which encrypt the traffic. Every request needs a paired
device's key, which only the app is given.

### Connect the app

On first run the app asks where Ombro should run; later, Settings › General ›
Where Ombro runs. Choose a server, then:

- **Over SSH**: type `you@server` (or a name from `~/.ssh/config`). The app
  signs in with your SSH key, pairs by itself, and keeps an SSH tunnel to the
  server open. Nothing to copy.
- **By address**: for Tailscale, start the server on the machine's Tailscale
  address (`ombro serve install --host 100.x.y.z`) and type that address in the
  app, with the pairing code the server shows. A code is four characters, works
  once, and is thrown away after ten wrong tries. The first one is printed each
  time the server starts until a device pairs (`journalctl --user -u ombro` on
  Linux); `ombro pair` makes a new one, for a day.

`ombro pair --list` shows the paired devices and how each paired;
`ombro pair --forget NAME` (or an id, or `--forget-all`) stops one connecting.

Two things to know about pairing:

- **A paired device has full control of that server.** It can change every
  setting, including adding a tool that runs a program there as Ombro's user
  (in Docker, inside the container). Pairing a device is like giving it a shell
  on the server: pair only your own, and check the list now and then.
- **Pair straight after installing.** The first code doesn't run out, and it is
  printed in the server's log (and `docker compose logs`) at each start until a
  device pairs, so anyone who can read those logs first could pair first.
  Wrong guesses are limited from each address and overall, and a code is thrown
  away after ten wrong tries; pairing over SSH is never held up by this. The
  server warns when it listens on every address, or on an address where the
  key would cross the network unencrypted.

Files a job made come to your computer only when you ask: **Save to this
computer** copies them into `~/Downloads/Ombro/<job>/`. Shared folders are
folders on the server. Signing in to an online tool (Notion, say) works as
before: the browser comes back to the app, which passes the answer to the
server. On the server itself, use the terminal over SSH (`ssh you@server`, then
`ombro`); `ombro connect <tool>` there prints the sign-in address and asks for
the address your browser ends up on.

### In Docker

Requires Docker: on a Mac, Docker Desktop, OrbStack or Colima (the lightest,
command-line only: `brew install colima docker docker-compose`, then
`colima start`); on Linux, Docker Engine. On a machine with AppArmor (Ubuntu
and Debian, and Colima's VM, which is Ubuntu), load Ombro's container profile
there once first, from this folder, or the container won't start. With Colima,
put `colima ssh --` before each `sudo`:

```bash
sudo cp docker/apparmor-ombro-container /etc/apparmor.d/ombro-container
sudo apparmor_parser -r /etc/apparmor.d/ombro-container
```

Then:

```bash
docker compose up -d
docker compose logs ombro        # the pairing code
```

`compose.yaml` publishes the server on 127.0.0.1:8765 of the machine running
Docker, with two volumes: settings, and jobs and chats. In the app, connect by
address to `127.0.0.1:8765` with the code. To reach it over Tailscale from
another computer, publish it on the machine's Tailscale address instead (see
`compose.yaml`). With Colima, that needs `colima start --network-host-addresses`,
since Docker runs in Colima's VM, which doesn't otherwise have the address. To share a folder with jobs, mount it
under `/home/ombro/shared` (an example is in `compose.yaml`), then share
`/home/ombro/shared/<name>` in Settings › Folders.

Code a job writes runs in bubblewrap inside the container, as on any Linux
server: no internet, and only that job's files, never Ombro's keys. bubblewrap
needs Linux namespaces, which Docker's defaults block, so the container is set
up for that and kept as tight as it can be while job code still runs: Docker's
own seccomp and AppArmor profiles with just what bubblewrap needs added
(`docker/seccomp.json`, `docker/apparmor-ombro-container`), no capabilities, no
new privileges, and a read-only system with `/tmp` in memory. Ombro runs as an
ordinary user inside it. Remove the `seccomp`, `apparmor` and `systempaths`
lines and everything else works, but jobs report that code can't run.

Ombro's image has no browser. `compose.yaml` has one as an optional service,
a headless Chromium in a container of its own that never sees Ombro's keys or
settings; start it with the rest:

```bash
docker compose --profile browser up -d
```

Ombro reaches it by its name on the compose network (`http://browser:9222`),
with no port published, and gives each job a new, empty profile in it, as on
the desktop. The browser sits behind a small guard on its own network, which
lets it reach the public internet and Ombro's proxy for pages (see Browser),
and nothing else: not the machine Docker runs on, your network, Ombro's server
or a cloud's metadata address. Without it, web search works but pages can't be read, and
Settings › General says so. On a server without Docker, install Chromium or
Chrome there and it's used as on the desktop.

The container profile loaded above also lets bubblewrap make namespaces where
the machine restricts them (Ubuntu 24.04 does), so in Docker no separate
`ombro-bwrap` profile is needed. `docker compose exec ombro ombro sandbox` says
whether jobs can run code.

## Interviews

The Lead interviews you in three places: set-up (`ombro init`), adding a role
(`ombro role add`) and briefing a task (`ombro brief`, or `ombro start` with no
spec). The three are kept apart: set-up records only who you are and how
you work, for every task; a role describes a kind of work it can be briefed
for again and again; a brief covers one task. In each the Lead asks pointed
questions, reflects back what it understood, and proposes the exact files it
would write. Each question shows how far through you are:

```
[●●●○○  3 of 5 covered  ·  still to cover: what would be a waste, non-goals  ·  about halfway]
```

When it has enough, it proposes the files. The harness checks the proposal,
shows it, and asks:

```
[a]ccept, ask for a [c]hange, [e]dit by hand, or [q]uit?
```

Nothing is written until you accept. A change request goes back to the Lead;
`e` opens the draft in your editor (`editor` in `preferences/config.md`, or
`$EDITOR`), checks your version, and shows it again. `/quit` or Ctrl-C at
any point writes nothing. When a file is replaced, its old text is kept next
to it as `name.previous.md`.

- **Roles.** The Lead may propose only tools from the tool registry and
  skills from `skills/` (or `skills: all`); anything else is refused. The harness checks the role
  the same way a job loads it, and warns when a role has no workspace tools
  (so it can only work from its brief).
- **Task briefs.** The Lead must find out what done looks like, who uses the
  result and how, the binding constraint, what would make it a waste, and the
  non-goals. A spec with any of these empty is refused. If answers are
  missing or contradict each other, the Lead lists the gaps and you can answer
  them; if you end the brief instead (`/end`), `ombro start` records an
  `insufficient_brief` job whose report names the gaps, and no role is briefed.
- **Standards are not asked about.** Accuracy, honesty and citing sources
  are Ombro's fixed rules for every Lead, role and interview, so the Lead
  never asks whether you want them.
- **Keys** are never asked for. Anything you type is scrubbed of the values in
  `secrets/keys.env` and of common key shapes before it reaches the model or the transcript.
- Each interview has its own token cap (see Limits) and is saved as a
  transcript in `interviews/`. A job started from an interview
  keeps a copy as `interview.md`, and its report shows the interview's tokens
  separately from the job's.

## One Lead, many crews

There is one Lead, above every crew. It is the role you talk to in chat and
interviews, and the one that briefs roles in jobs. A crew is a named group of
roles with its own memory: a team of skills (legal, marketing, ops) or a
separate project or client (marketing for one project, marketing for
another), whichever suits you. A fresh install has the Lead and a `default`
crew with one role in it, `general-assistant`, a generalist for everyday
tasks that no other role fits.

A spec names the crews its job may use (`crews: [marketing-a, ops]`); a spec
with no `crews:` line uses the default crew. The brief interview proposes the
crews, asks which one where two do similar work, and shows them before you
accept. In a job with more than one crew, roles are named `crew/role`
(`marketing-a/writer`); the Lead may use a role's own name where only one of
the crews has it. Jobs, specs, schedules and interview transcripts belong to
no crew.

A spec can also say who does the work (`roles: [marketing-researcher]`),
which the brief interview records when you name a role. The Lead then briefs
those roles for the work itself, and others only for side tasks such as a
check; the report says who the spec named and who else was briefed. Without
`roles:`, the Lead chooses from the roles' descriptions.

## How a job works

1. Ombro loads the Lead, the roles of the crews the spec names, the limits,
   the spec and those crews' memory (see Memory).
2. The Lead decides whom to brief and with what (`brief`), one role at a time.
3. The role works within its own step limit and hands in a structured result
   with `submit_result`.
4. The harness validates the result and records it in the journal. An invalid
   result is retried once with a stricter instruction, and then the brief is
   marked failed and the Lead is told. A reply cut off at the output limit
   (`max_output_tokens`, 32,000 by default, thinking included for models that
   think) is not counted as invalid: the role is told to write less at once,
   and three in one brief end it. Where a model's endpoint allows fewer output
   tokens, Ombro learns its maximum from the endpoint, uses it, and the report
   suggests a `max_output_tokens` line for that model in `models.md`. Near a
   token cap the reply allowance shrinks to what is left.
5. The Lead briefs again, searches past reports (`memory.search`), or calls
   `finish`.
6. On finish, or when any limit is reached, delegation stops. The Lead
   rewrites its part of the notes of each crew whose roles it briefed, one
   call per crew, then writes the report
   in a separate call with no tools. If even that is impossible, the harness
   writes the report from the journal.
7. The harness adds one line for the job to the `memory/index.md` of each
   crew the spec names.

A job is named for its spec, then when it started:
`teapot-survey-20261113-1301`. Commands that take a job take any part of its
name (`ombro report teapot`), or the latest job by default.

The report reads as a report: the task's title and a status line in words,
then a short summary, the deliverables (in the workspace or a shared folder),
decisions for you, and what was and was not done. Ombro's own record follows
after a divider: the job's facts, the briefs, outward actions, code, shared
folders, flagged material, the changes to each crew's notes, and usage. The
terminal interface shows reports and the Lead's words as Markdown.

## Memory

Each crew has its own memory, and a job sees only the memory of the crews its
spec names. What a job costs stays the same however many jobs came before
it; it grows only with the crews a spec names.

- **`memory/index.md`**: one line per job that named the crew, written by the harness: date, job
  ID, outcome, one-line brief and the path to its report. Every job gets
  one, including stopped, failed and insufficient briefs.
- **`memory/notes.md`**: standing lessons in two parts. **From you** holds
  your own dated entries (added by hand or with `/remember` in chat); no
  model ever changes or drops them. **From jobs** is the Lead's: at the end
  of each job that briefed a role, it rewrites this part from what the roles
  returned, or keeps it as it is. The whole file has a cap of 10,000
  characters. A rewrite over the cap is refused and the Lead is told how much
  room it has; a second refusal leaves the notes as they were. The report's
  "Changes to notes.md" lists what was added and removed, worked out by the
  harness. The old file is kept as `notes.previous.md`.
- **At the start of a job** the Lead is given the notes.md of each crew the
  spec names and the 20 most recent index entries across those crews, each
  at most 200 characters. Nothing else.
- **`memory.search`** (the Lead only) finds passages in the past reports of
  jobs that used the spec's crews,
  reports by keyword, up to 4,000 characters in all, and is capped at 8 calls
  a job. It does not use a round.

The figures are in `limits.md`, in characters, so they mean the same on
every model: `memory_notes_max_chars`, `memory_index_entries`,
`memory_index_entry_chars`, `memory_search_max_chars`.

## Skills

A skill is a reusable method, kept in one library that every crew shares, in
the open Agent Skills format: `skills/<name>/SKILL.md`, with `name` (lower
case and hyphens, the same as the folder) and `description` (what it does and
when to use it) in the front matter, then the method in Markdown. An optional
`references/` folder holds longer material the method points to. An older
`skill.md` is read the same way.

- **Who uses which.** A role's `config.md` lists its skills
  (`skills: [kettle-survey]`), or `skills: all` for the whole library. A role
  with no `skills:` line has none, so a new skill reaches no role until you
  give it: `ombro skills give <skill> <crew/role>`, `/skills give`, the role
  interview, or editing `config.md`.
- **Read on demand.** A role's prompt lists only the name and description of
  each skill it may use; it reads the method with `skills.read` when it needs
  it. The Lead sees the whole library and each role's skills, so a brief can
  say which skill to read. The listing in any prompt is capped at
  `skills_list_chars` (4,000 characters), and a read at `skill_read_chars`
  (20,000), so a growing library does not grow the cost of a job. The report
  says which skills each role read.
- **Models propose; you decide.** After a completed job in which a role
  returned a result, the Lead may propose one skill (a new one, or a better
  version of one), or none, which is the usual answer. A proposal waits for
  your approval as a `skills.propose` action: `ombro approvals show <ref>` gives the
  whole text, or the diff against today's version, the roles it is for, and
  any signs of injected text in it; `approve` writes it and gives it to those
  roles, `decline` drops it, and `edit` opens the text in your editor. At most
  10 proposals wait at once (`skill_proposals_waiting`); a model-written
  skill is capped at `skill_max_chars` (10,000 characters).
- **In chat**, ask the Lead to remember how to do something and it offers a
  skill, showing it in full, or as a diff; nothing is written without your yes.
- **Nothing is lost.** Replacing a skill keeps the old version in
  `skills/Archive/<name>/<date-time>/`. Each skill records where it came from
  (`metadata: source:`); one with no source is yours.
- A skill never adds a tool, and its `scripts/` folder is not run.

- **Importing.** `ombro skills add <folder>` (or `/skills add <folder>`)
  brings in a skill you found elsewhere. A skill from outside is someone
  else's instructions, so Ombro checks its format, shows you the whole text
  (or the diff against yours), lists any signs of injected text and what it
  will not copy, and adds it only after your yes. It copies `SKILL.md` and
  `references/` (text files up to 1 MB), never `scripts/` or anything else,
  and records it as imported. No role uses it until you give it.

`ombro skills` lists the approved skills and who uses each, then the
proposals waiting for your approval; `ombro skills show <name>` and
`edit <name>` show and edit one.

## Chat

`ombro chat` is a conversation with the Lead, with two modes; the current one
is always shown in the prompt (`[Chat] You:` or `[Brief] You:`).

- **Chat** sees every crew: it is the same one Lead. It can search and read
  reports, specs, notes, indexes and workspace files, and use web search and
  fetch. It knows which folders you have shared, lists and reads them all as
  `shared/<name>/...`, and can write a file in one shared for writing: it
  shows you what it will write, and nothing changes until you say yes. It
  never deletes; a file that should go is set aside (below), also after your
  yes. For quick things it works as a crew member would, with every tool: the
  browser, `code.run` (in a folder of the chat's own, `Files/chats/<id>/`),
  and every tool of the web APIs, MCP servers and Composio services in
  tools.md, those that change things too. Whatever a job would have wait for
  approval, and anything that reaches people outside or spends money, it asks
  you about in the chat first ("Go ahead?"). It cannot brief roles, start
  jobs or approve what waits in Approvals. Longer work goes to the crew, as a
  brief or a live job (below). Chat transcripts, journals, keys and
  settings cannot be read.
- **Report back, or do it live.** A question gets an answer. Work gets one
  question from the Lead: "Shall I take this away and report back, or shall
  we do it live, here?" The Lead doesn't recommend either, and report back
  is the default. **Report back** is the brief (below): an interview, then a job in the background, and the report
  later. **Do it live** starts a *live job* at once, from a short spec the
  Lead writes and shows: its steps show in the chat as they happen, its Lead
  may stop and ask you (a background job never waits for you; its questions
  go in the report), and its report opens in the chat when it ends. Then you
  can save it as a brief, or schedule it. A live job is an ordinary job
  (`live: true` in job.md): the same limits, journal, approvals and report;
  Esc or `ombro stop` stops it, and if you leave the chat it carries on in
  the background and stops waiting for answers (after 15 minutes at most).
  `/live [@crew] <text>` starts one with your own words.
- **Brief** is the task interview. The Lead never switches to it on its own.
  Choose Report back, or type `/brief [@crew]
  [text]` at any point: the interview starts from what you said in the chat
  (your own messages, most recent first, up to 4,000 characters) and the
  Lead's one-line summary if you accepted its offer. It saves a spec, which
  you start with `ombro start --spec <name>`. `/chat` goes back with nothing written.
- **Saved specs.** Ask to restart a task you briefed before and the Lead
  finds its spec and asks, in one question, whether to start it: yes, no, or
  "change it". It can say who does the work this time (for this job only, as
  `ombro start --spec <name> --role <role>` does), leaving the saved spec as it
  is. "change it", or asking for a change to the task itself, opens the saved
  spec: the interview starts from its text, asks only about the change, and
  shows it as a diff (the old text is kept as `<name>.previous.md`).
- **`/new`** saves the chat and starts a fresh one, with its own token cap
  and usage from zero. Nothing from the old one carries over.
- **Titles.** After the first exchange a small model call names the chat in
  a few words (a confirmed brief gives it the spec's title; `/rename <title>`
  sets your own, which is kept). If the model gives none, the chat takes the
  first words of your first message until it does. The file is named to match:
  `chats/teapot-makers-20261113-1417.md`.
- **Attached files.** Drop files on the app's window or use the paperclip; in
  the terminal, drag a file into your message (its path becomes its name). Each
  is kept in `~/Ombro/Files/<date>/`, up to 25 MB. Text, code, CSV and JSON
  go to the Lead as text, as do PDF and Word (`.docx`) files, up to 40,000
  characters, marked as material to assess, never to obey. Images (PNG, JPEG,
  GIF, WebP, up to 5 MB) are shown to a model that can see, with that message
  only; a model that can't answers without them. Anything else is named, with
  where it is. A brief or live job made in that chat is given the files: the
  spec lists them as `inputs:`, and the job copies them into
  `workspace/inputs/` and names them in its brief.
- **Carry on.** `/chats` lists past chats by title and reopens one: the
  conversation is shown again and you carry on where you left off
  (tool results from before are not kept). `ombro chats` and
  `ombro chat --resume <part of a title>` do the same on the command line.
- **`/remember [@crew] <text>`** adds a dated line to a crew's notes.md
  ("From you"); the default crew unless you name one, or `ombro chat --crew
  <name>` sets it for the session. The Lead can offer to remember something
  and propose a wording. Nothing is written until you confirm the wording. If
  it would pass the cap, you are shown the sizes and your entries and asked
  what to trim.
- **Bounded.** A chat has its own token cap (`chat_max_tokens`, set by the
  allowance), per-tool call caps (`chat_tool_max_calls`) and a cap on model
  calls for one message. Usage is shown after each reply. Once the
  conversation passes `chat_history_chars` (30,000), the oldest turns are no
  longer sent to the model.
- **Saved.** Each chat is saved in `chats/`. Transcripts are never loaded into
  a job and never searched; only what you chose to remember carries into jobs.

In chat and interviews, a line that starts with `"""` begins a block of
several lines, ended by a line that ends with `"""`, so a pasted paragraph
is one answer.

## Schedules

A schedule is a file in `schedules/<name>.md`:

```yaml
---
name: morning-brief
cron: "30 7 * * 1-5"          # local time: minute hour day month weekday
spec: specs/morning-brief.md  # a saved spec, which names the crews; scheduled jobs never interview
enabled: true
limits: {allowance: conservative, run_timeout: 15m}   # optional; in tokens
grace: 10m                     # optional; default schedule_grace in limits.md
---
```

The files are the source of truth. `ombro schedule install` adds one system
scheduler entry (a launch agent on macOS, a crontab line elsewhere) that jobs
`ombro tick` every minute; nothing is installed without your confirmation,
and `ombro schedule add` offers it when it is missing. Editing a schedule
needs no reinstalling: the next tick reads it, and the change takes effect
from the schedule's next slot. The desktop app installs the entry itself, for
your usual home, when it runs from where apps are installed: Applications on
macOS; on Linux the `.deb` or `.rpm`, or an AppImage, whose entry (and its
jobs) run the `.AppImage` file itself, so they go on after the app quits. If
you move the AppImage, the app puts the entry right the next time it starts.

- **Starting.** Tick starts each due slot once, detached, exactly as
  `ombro start --detach` does, under limits fixed at the start and recorded in
  job.md. job.md and the report name the schedule and the slot. The limits
  are limits.md, then the spec's `limits:`, then the schedule's. A scheduled
  job must have a token cap, so `unlimited` is refused.
- **Late and missed.** A slot is started if a tick sees it within its grace
  period. A slot missed because the machine was off, asleep or logged out is
  never started late: it is noted in the `index.md` of each crew its spec
  names, one entry per gap:

  ```
  - 2026-11-10 · schedule:morning-brief@2026-11-10T07:30..2026-11-12T07:30 · missed · 3 slots: the machine was off or asleep (no tick from 09 Nov 23:00 to 12 Nov 09:14) · schedules/morning-brief.md
  ```
- **Overlap.** If a schedule's previous job is still going, or
  `schedule_max_running` scheduled jobs are going, or this tick has already
  started `schedule_max_starts`, the slot waits while it is within grace, then
  is skipped and noted with the reason.
- **Never twice.** Ticks take a lock, and a slot is looked up by its
  wall-clock time in the jobs and the index before it starts. When clocks go
  back, the repeated hour's slots start once; when they go forward, a slot in
  the skipped hour starts at the first minute after the change.
- **Never silent.** A due slot that cannot start (a missing spec, invalid
  limits, no model) becomes a `failed` job with a report and an index entry.
  A schedule file with a problem is shown by `ombro schedule` and logged once.
- **Logs.** `scheduler/tick.log` has one line per tick and one per start or
  note. `scheduler/scheduler.log` catches anything the system scheduler sees
  on stderr. `scheduler/tick.md` records the last tick, which is how a
  missed slot is told from one that was not due; it is safe to delete.

## Tools

A role gets the tools its `config.md` lists, or every one with `tools: all`,
which new roles start with (as with `skills: all`), so a tool or skill added
later reaches every role at once:

| Tool | Does |
|---|---|
| `web.search` | Web search through a provider. Returns titles, URLs and snippets. |
| `web.fetch` | Reads one page, in the browser (after its scripts run) or through Firecrawl. |
| `workspace.read`, `workspace.write`, `workspace.list` | Text files in the job's `workspace/` and `scratch/` folders, and in folders shared with the job. PDF and Word files are read as their text. |
| `workspace.place` | Copies a workspace file outside the job: at once into a folder shared for writing, waiting for your approval anywhere else. |
| `code.run` | Runs a Python script the role writes, in the operating system's sandbox. See Code and shared folders. |
| `browser.open`, `browser.click`, `browser.type`, `browser.screenshot` | A page in a headless browser: read it after its scripts run, click links and ordinary buttons, type into a search box, save a picture of it. See Browser. |
| `browser.submit` | Submits a form on the page. One with your details, or that commits you to something, waits for your approval. |
| `memory.search` | The Lead only: passages from past reports of jobs that used the spec's crews. |

Workspace paths start with `workspace/` (deliverables) or `scratch/` (working
notes). Absolute paths, `..`, and symlinks that lead outside those folders
are refused, and nothing is written through a symlink. A deliverable a role
names by path is listed in the report with its full path. Only files in
`workspace/` are listed as deliverables; working files in `scratch/` and
short inline notes are listed apart, and workspace files no role named are
listed too.

Roles ask for a tool by what it does, never by vendor. `tools.md` says which
provider backs each one:

| Provider | Tools | Notes |
|---|---|---|
| `firecrawl` | search, fetch | Needs `FIRECRAWL_API_KEY`. |
| `duckduckgo` | search | No key. Unofficial and rate-limited, so best effort. |
| `browser` | fetch | No key. The default: the page in the headless browser (see Browser). Local and private network addresses are refused. |
| `fake` | search, fetch | Invented results. Records every request in the job's `fake-calls.jsonl`. |

```yaml
---
tools:
  web.search: {provider: firecrawl, max_calls: 20}
  web.fetch: {provider: firecrawl, max_calls: 30}
  workspace.write: {max_calls: 40}
providers:
  firecrawl: {key: FIRECRAWL_API_KEY}
---
```

Without `max_calls`, a job may make 20 searches and 30 fetches through
Firecrawl, which bills each call, and 60 searches through DuckDuckGo and 100
pages read in the browser, which are free. `/tools web.search` changes either.

`max_calls` caps a tool's calls per job, which is also how a service that
bills in its own units, such as Firecrawl credits, is kept in bounds. Like
limits, tool settings are fixed when a job starts and recorded in `job.md`.

### Browser

Web pages are read in a browser, headless (no window): `web.fetch` and the
browser tools both use it, so pages that need JavaScript read as a person sees
them. Ombro drives a Chrome, Chromium, Edge or Brave already on the computer;
nothing is bundled or downloaded. Settings › General › Browser chooses:
Automatic (the first found, named), one of those installed, or Don't use a
browser, in which case web search still works but pages can't be read (except
through Firecrawl). In `tools.md` that is `providers: browser:` with `path:`
or `off: true`; a browser elsewhere is `endpoint:` (or
`$OMBRO_BROWSER_ENDPOINT`), as in Docker.

Every crew member that reads the web has the browser (a role with
`web.fetch` gets the rest), and so does the Lead in chat.

- **Its own profile.** Each job and chat gets a new, empty browser profile,
  removed when it ends: none of your sign-ins, cookies or saved passwords, and
  nothing kept from one to the next. A local browser ends with the job, even if
  the job is killed.
- **Public addresses only.** Every connection a page makes, not only the ones
  the role asks for, goes through Ombro's own proxy, which looks each name up
  once, checks the address is public and connects to exactly that address. So a
  page can't reach this computer or your network, even with DNS tricks (a name
  that answers with a public address, then a private one). Service workers are
  turned off. Downloads are refused, pop-up dialogs are dismissed, and an address
  a role opens may carry no more than `fetch_max_query` characters after `?`.
- **Reading is reading.** Only text a person could see is read (text hidden on
  the page isn't), and it is material, like any page (see Untrusted material).
  Links, ordinary buttons (a tab, "show more", a cookie banner), search boxes
  and typing up to 200 characters into a field are part of reading.
- **Forms: only yours wait.** A form is sent in the job, and its result read,
  unless it carries your details or commits you to something. It waits for
  your approval when a field is for a name, email, phone, address, postcode,
  birth date or a message; a value looks like an email address or phone
  number; more than 200 characters are typed into it; or its button or address
  says buy, pay, order, checkout, book, subscribe, sign up, register, send,
  post, publish, donate, upload, comment or delete. So filters, dates,
  quantities and cookie choices just work, and a contact form or an order
  waits. Under the `manual` approval mode, every form waits.
- **Approving a form.** Approvals shows the page's address, each field and its
  value, the button and why it waits. On approval, Ombro opens that address
  again in a new browser, fills the form in and presses the button, and
  Approvals shows the page it led to. A form must therefore work from its own
  address: a basket or a sign-in isn't carried over. A spec can allow it by
  name (`outward: {allow: [browser.submit]}`), and then it's sent in the job.
  In chat, the Lead asks you there and then instead ("Go ahead?").
- **After reading your private material.** Once a job or chat has read your
  private material (shared folders, memory, Notion, email, anything through an
  MCP, API or Composio tool), the browser limits what it can carry to other
  sites: about 300 characters typed per site, short addresses with no encoded
  parts, and nothing that copies what it read. A job is told why and goes on;
  a form that would break those limits waits for your approval; in chat, you're
  asked. The report's Browser section lists every site typed into, with what
  was typed, and every address opened. A job that has only read the web isn't
  limited this way.
- **No passwords, no payment details.** Password, card, bank and one-time-code
  fields are never filled in, by a role or on approval. Ombro can't sign in or
  pay for you, by design.

A job may open 60 pages, make 100 clicks, type 60 times, save 20 pictures and
send 10 forms, unless `tools.md` sets `max_calls` for them.

### Web APIs

Any web API can be a tool, by its name, address and key. Add one in the app
(Settings › Tools › Add a tool) or under `apis:` in `tools.md`:

```yaml
apis:
  podcasts:
    url: https://api.podcastlist.example/v2
    key: PODCASTS_API_KEY        # its name in keys.env; never the value
    send_key: bearer             # bearer, header:<Name> or query:<param>
    about: Our podcast list.     # what it's for: the Lead decides from this when it helps
    how_to: GET /episodes?q=…    # optional: its paths, from its docs
    class: external              # read-only, internal or external: what its changes are
    max_calls: 30
```

Every crew member is offered every API. A role gets `api.<name>.get` for
lookups and `api.<name>.request` for anything else; a request is a change of
the API's class, so it follows your approval mode like an MCP tool and may
wait in Approvals. A read-only API has one tool that takes any method as a
lookup, since some APIs search with POST. A role names a path, never an
address: calls go only to the API's own host and path, redirects are not
followed, and Ombro adds the key, which no model sees. `ombro tools` lists
the APIs.

Every secret lives in one owner-only folder, `secrets/`: single keys in
`keys.env`, sign-ins for remote MCP servers in `oauth/`, and key files (such
as a service account's) by name. Keys are read at the moment of use, so a key
set with `ombro keys set` is picked up on the next call, even in a job already
going. Nothing in `secrets/` ever reaches a model, a journal or a report. A
`.env` from an earlier version is moved into `secrets/keys.env` the first
time Ombro runs, and Ombro says so.

## Code and shared folders

**Code.** A role that names `code.run` can write a Python script and run it,
for work on files: renaming, sorting, converting, editing in bulk, counting
and checking. Ombro does not try to judge code by reading it, because a
list of "dangerous commands" is easy to get round. Instead every script runs
in the operating system's own sandbox, which limits what any code can reach:

- **macOS:** the system sandbox (`sandbox-exec`), with a profile that
  denies everything it does not name.
- **Linux:** bubblewrap (`bwrap`; install it with your package manager, for
  example `sudo apt install bubblewrap`). The script starts in an empty
  file system with no network, holding only what is bound into it.
- Anywhere the sandbox cannot be set up, `code.run` is left out of the job
  and the report says why. Code never runs unconfined.

A script can read and write the job's `workspace/` and `scratch/`, and the
folders shared with the job as granted. It can read what Python needs to
start, and nothing else: not the rest of the Ombro home (secrets, settings,
roles, memory, other jobs, this job's journal, `job.md` or report), not the
rest of your files, and not the network. It runs on the Python Ombro runs
on, isolated, with the standard library only. It cannot start other
programs (on Linux it can start programs already inside its sandbox, which
still has no network). Its environment holds no keys. It may change what is
in `workspace/`, `scratch/` and a writable shared folder, but never the
folders themselves; if one is ever not a real folder where the job started,
the tools refuse it.

Each script is limited by `code_timeout` (60s, never more than the job has
left), CPU time, `code_max_memory` (1 GB; on macOS by watching the script),
5 MB for any one file, and `code_output_chars` (8,000 characters of output
shown to the role: the start and end, with the middle cut). `code_max_total`
(2 GB) caps everything in a job's `workspace/` and `scratch/`: past it, no
more scripts run in that job. `code.run` has
10 calls a job unless `tools.md` says otherwise. The role is told the exit
status, the output, the time, any limit that stopped it, and which files
were created, changed or removed, worked out by the harness. Each script and
its output are kept in the job's `code/` folder, which scripts cannot write
to. The journal has a `code_run` event for each, and the report a Code
section.

**Shared folders.** A job reaches only its own `workspace/` and `scratch/`
unless you share a folder. Grants live in `folders.md`, by name:

```yaml
---
folders:
  brand:  {path: /Volumes/Studio/Brand, access: read}
  photos: {path: ~/Pictures/2026 trip, access: write}
declined: [~/Projects/site]
---
```

- **Only you grant.** `ombro folder add <path>` asks read or write. When
  `ombro brief` (or `ombro start` without a spec) starts in a folder that is
  not shared, Ombro asks once whether to share it; a "no" is remembered in
  `declined`. In the brief interview the Lead asks which folders the task
  needs; a folder not yet shared is put to you when you accept the spec.
  A model can suggest a folder but never shares one.
- **What can be shared:** folders inside your home folder, and mounted
  drives and server shares (`/Volumes/...` on macOS; `/mnt`, `/media` and
  `/run/media` on Linux). Never the root, system folders, your home folder
  itself, hidden folders, `~/Library`, or the Ombro home.
- **A spec chooses.** Grants apply to every crew, and a spec names the ones
  its job uses (`folders: [brand, photos]`, or `folders: {photos: read}` to
  lower write to read). A spec cannot add a folder that is not shared; one
  that is no longer shared is left out and the report says so. Folders are
  fixed when a job starts and recorded in `job.md`. Jobs never stop to ask.
- **Inside a grant** roles work as you would: `shared/<name>/...` through
  the workspace tools and in scripts. Changes there are internal and run
  without approval; the grant is the permission, and presets do not change it.
  The Lead in chat reaches every grant too, writing only after your yes.
- **Nothing is deleted.** No role, the Lead included, deletes a file in a
  shared folder. To get rid of one, `workspace.set_aside` (given to every role
  that can write) moves it into `For deletion/`, or into `Archive/` when a
  newer file replaces it, at the top of the same folder, with a line in that
  folder's `README.md` saying why. The report lists what was set aside. Only
  you empty either folder.
- **Replacing keeps the old version.** The first time a job replaces a file in
  a shared folder, its old version is copied into `Archive/` with a note (once
  per file per job). In chat, every replacement keeps the old version. Scripts
  that replace files are covered by the backup clone; scripts are told never
  to delete, though that is not yet enforced.
- **Backup.** Before a job that can write to a shared folder starts, Ombro
  clones it into the job's `backup/` if the disk allows (APFS on macOS,
  reflinks on Linux). A clone is near-instant and takes almost no space until
  files change. A server share usually cannot be cloned: it stays writable,
  `ombro folder` says no backup will be taken, and the server's own
  backups are the remedy. The report lists every file created, changed and
  removed, from a before-and-after comparison by the harness.
- **Somewhere not shared.** To save a file in a folder that is not shared
  for writing, a role writes it in `workspace/` and calls `workspace.place`.
  The copy waits for your approval with a copy of the file as it was; `ombro
  approvals approve` checks the destination again, and never replaces a file
  unless the action says `overwrite: true`. Approving a placement does not
  share the folder. Reading a folder that is not shared is refused, and the
  report lists the paths refused, so you can share the folder before the
  next job.

## Untrusted material

Anything a model reads that came from neither you nor Ombro (web pages, MCP
results, file contents, script output, what roles return) is **material**,
and may try to steer the model. Ombro's defence does not depend on the model
noticing:

- What a role can do (its tools, folders, crews, permissions and limits) is
  fixed before it reads anything. Material cannot add to it.
- Material reaches a model fenced, between `⟪material <id> from <source>⟫`
  and `⟪end material <id>⟫`, with a random id for each call; text inside that
  copies a fence is neutralised. The fixed rules say fenced text is assessed,
  never obeyed.
- Once a role has read material in a brief, its external calls in that brief
  wait for your approval even under `auto`, unless the spec allows that tool
  by name. The report says which waited for this reason.
- `web.fetch` and `browser.open` refuse an address with more than
  `fetch_max_query` (200) characters after `?`, so a page cannot have a role
  send data out in a link. The browser reads only visible text, keeps pages
  off this computer and your network, and sends a form only with your approval.
- Internal changes (editing your own documents, sheets and pages) can still
  happen after a job or chat has read untrusted material such as a web page or
  an email. Once it has, Ombro asks before anything that deletes or changes who
  can see something. Shared folders are backed up for each job, and services
  such as Notion keep page history. A tool counts as internal only when you've
  said so, in `tools.md` or by confirming what the server claims when you add
  it (`ombro tools <server>`, or Check its tools in Settings › Tools); until
  then it counts as external.
- Secrets never enter a prompt, code has no network, and nothing is deleted.
- Common signs of injected instructions ("ignore previous instructions",
  text addressed to an AI, hidden characters, requests to send or delete
  files) are flagged in the report's Material section, with where they came
  from. A flag never stops a job; it tells you what to check. In chat, Ombro
  says so in the conversation at once.

## Outside services: MCP, permissions and approvals

Ombro builds no integrations of its own. Every tool that reaches an outside
service (a sheet, a calendar, a social account, a CRM, a design tool, Zapier)
comes from an MCP server listed in `tools.md`:

```yaml
---
servers:
  sheets:
    command: uvx                          # a local server, which handles its own sign-in
    args: [--with, "mcp==1.30.0", "mcp-google-sheets==0.6.3", --include-tools, "get_sheet_data,update_cells"]
    env: {SERVICE_ACCOUNT_PATH: "${SHEETS_KEY_FILE}", DRIVE_FOLDER_ID: "<a folder shared with the account>"}
    start_timeout: 120s                   # the first start downloads the package
  notes:
    url: https://mcp.example.invalid/mcp  # a remote server you sign in to: `ombro connect notes`
    class: internal
  remote:
    url: https://other.example.invalid/mcp  # a remote server with a fixed token instead
    headers: {Authorization: "Bearer ${REMOTE_TOKEN}"}
tools:
  mcp.sheets.update_cells: {max_calls: 10}
  mcp.sheets.share_spreadsheet: {permission: refuse}
---
```

`ombro tools add --mcp <name>` (or `/tools add`, choosing an MCP server) writes
an entry like these for you, so tools.md need
not be edited by hand. It asks whether the server is local or remote, takes its
command or address, and asks for each secret in a hidden prompt: the value goes
into `secrets/keys.env` and tools.md gets only `${NAME}`, in `env` for a local
server or `headers` for a remote one. It warns when a package runner's server
or library is not pinned to an exact version, refuses a `${NAME}` on the
command line, checks the entry as a job would, and writes nothing until you
confirm. The same as flags, for scripts and interfaces:

```bash
ombro tools add notes --mcp --command "uvx invented-notes-mcp==1.2.3" --secret NOTES_TOKEN --class internal
ombro tools add tracker --mcp --url https://mcp.tracker.invalid/mcp --secret Authorization=TRACKER_TOKEN
ombro tools remove notes     # its tool settings too; says which roles named its tools; keys are kept
```

(`ombro server add` and `ombro server remove`, the old names, still work.)

`${NAME}` is read from `secrets/keys.env` when the server starts and is never logged.
A server Ombro starts gets only `PATH`, `HOME`, `USER`, `LOGNAME`, `LANG`, `LC_ALL`,
`LC_CTYPE` and `TMPDIR` from Ombro's own environment, plus its `env`, so keys kept in
your shell never reach it; `pass_env: [NAME, ...]` on a server passes others it needs.
Put a `${NAME}` in `env`, not in `command` or `args`: other users of the machine can read
a command line in the process list, and Ombro warns if one is there.
A server's tools are named `mcp.<server>.<tool>`; `ombro tools <server>`
lists them. A role can use only the ones its `tools:` list names, so a large
server costs only what a role uses. Ombro speaks MCP itself (tools only),
rather than through the SDK, in both eras of the protocol: it asks in the
2026-07-28 way first and falls back to the 2025-06-18 handshake for a server
that does not understand it. `ombro tools <server>` says which one a server
speaks. Where the 2026-07-28 standard says to send a request again after a
broken answer, Ombro does so only for listing tools: a tool call that may
have happened is never sent twice (it becomes uncertain instead).

**Signing in to a remote server.** A remote server that asks for sign-in is
connected once, in your browser:

```
ombro connect notes          # opens the browser; sign in and allow access
ombro keys                   # lists keys, and each remote server's sign-in
ombro disconnect notes       # forgets it, and asks the service to revoke it
```

Ombro follows MCP's authorization standard: it finds the server's sign-in
service from the server itself, registers itself as a native app (or uses
a `client_id` you give the server in `tools.md`), and signs in with PKCE,
binding the token to that server's address. The sign-in is kept in
`secrets/oauth/<server>.json`, readable only by you, and renews itself. A
job never opens a browser: if a sign-in has lapsed, that server's tools are
left out, the report says to connect again, and actions waiting for approval keep waiting.

**Pin what a server runs.** A package runner such as `uvx` downloads and
runs the server's code, so name an exact version (`==0.6.3`, never
`@latest`). It also resolves the server's own dependencies afresh, so pin
those where the server needs it: `mcp-google-sheets` 0.6.3 asks for any
`mcp>=1.8`, gets 2.x and fails to start, hence `--with "mcp==1.30.0"`. If a
server can limit the tools it offers (here `--include-tools`), offer only
those your roles use. When a server fails to start, Ombro shows the last
lines it printed; in a job, all of it is in the job's `mcp-<server>.log`.

**Classes.** Each tool is classed by who it reaches, as you would judge a
trusted employee's work:

- `read-only` changes nothing.
- `internal` changes things in your organisation's own tools: documents,
  sheets, databases, CRMs, Notion, Linear, files and drafts, including
  overwriting and trashing, and even when colleagues see or are notified of
  the change. It is done, then reported, like an employee who comes back
  with the finished spreadsheet. Internal is not the same as harmless: it
  runs without approval because the role is trusted, and backups and
  version history are the remedy if it goes wrong.
- `external` reaches people outside your organisation, or the public, or
  spends money: email sent, messages to customers, social posts,
  publishing to the web, public records, purchases. A tool that can reach
  either side, such as sending email or calendar invitations, counts as
  external, because it cannot tell who is inside.

The boundary is the organisation, not visibility: a Notion page is internal
even though Notion can publish pages; publishing one to the web would be
external. The class is a default you can change: a team chat whose tool
could reach outside counts as external, and `class: internal` makes it
internal if you know it stays inside.

A tool's class comes from, each overriding the one before: the server's
markings (`readOnlyHint` makes it read-only, `openWorldHint: false` makes it
internal), `class:` on the server in `tools.md` (for all its tools that are
not read-only), then `class:` on the tool. A tool that changes something and is not
classed counts as `external`, the safe default. Most servers do not mark
tools this way, so a sheets or documents server usually needs one line:

```yaml
servers:
  sheets:
    command: uvx
    class: internal      # its tools that are not read-only are internal
```

`ombro tools <server>` shows each tool's class, where it came from, and the
line to add where a tool is external only by default.

Composio's tools are classed by what they do, since one Composio account
holds many services. A tool whose name only looks things up is read-only.
One whose name sends to other people, shares, deletes or spends (`SEND`,
`REPLY`, `SHARE`, `PERMISSION`, `DELETE`, `TRASH`, `PAY` and the like) is
external, so it waits. Any other change in your own document tools (Google
Sheets, Docs, Drive and Slides, Notion, Airtable, Linear and the like), or
to a draft, is internal: a brief that asks for a sheet gets it made, filled
and formatted without asking. Anything else follows `class:` under
`composio:`, and `class:` on a tool in `tools:` still wins over all of it.

**One piece of work, one approval.** Calls on the same item (the same
sheet, document, page or file, in the same service) count as one piece of
work. Deleting inside something the same job or chat made is editing its
own work, so it is internal; sending, sharing and spending never are. In a
job, once a call on an item waits for approval, later calls on that item are
not held one by one: the role is told it waits, and the report names them.
In a chat, one yes covers the later calls on that item, unless they send,
share, delete or spend.

**Permissions.** Every outward call is allowed (it runs, and is recorded),
held for approval (it waits under Approvals) or refused:

| `outward` | read-only | internal | external |
|---|---|---|---|
| `manual` | allow | stage | stage |
| `balanced` (default) | allow | allow | stage |
| `auto` | allow | allow | allow |

Set your default with `outward:` in `preferences/config.md`. A spec
overrides it, with a preset and, if wanted, particular tools:

```yaml
outward: {preset: balanced, allow: [mcp.mail.send_message], stage: [mcp.sheets.update_cells]}
```

The task interview asks what may happen without you whenever the crew has
external tools, and writes the answer into the spec. A crew whose tools are
only read-only and internal needs no answer. `permission: refuse` in
`tools.md` beats everything, for every class, read-only included: a refused
tool is not offered to any role. Permissions are fixed when a job starts and
recorded in `job.md`; scheduled jobs follow them like any other.

**Approvals.** A call held for approval does not happen. The harness writes
it to the job's `outbox/` as one file (tool, arguments, the role and its
reason, the time, a status), tells the role it waits for approval, and never
holds an identical call twice in a job. Each one counts towards the tool's
`max_calls`. The report's Outward actions section lists work done, sends
allowed, and everything that waited for approval, from the harness's own record.

A job never waits for an approval, whether report-back or live: it carries
on with everything that does not need the action and reports the rest as
not done. When something still waits as the report is written, the Summary
opens with **Stopped for your approval**, naming it, and Approvals and the tray
show it waiting. Approving later runs only that action,
not the steps after it; ask the Lead in a chat to finish the work.

You can decide while the job is still going. Holding an action and every decision take
the job's outbox lock, so the two never cross. An action you approve during
the job is carried out by the approval, not by the job: the role is not told,
and nothing it returns reaches the job. The report shows each action that waited
as it stood when the report was written (waiting, or decided by you), and
decisions made after that are added at the end.

You decide on named actions only; there is no "approve all":

- `ombro approvals` lists what is waiting, across jobs, by reference (`ab12-3`).
- `ombro approvals approve ab12-1 ab12-3` shows each in full, asks once, and
  runs them. `decline` drops them for good. `edit` changes an action's
  arguments (in your editor, or `--arguments '<json>'`); they are checked
  against the tool's rules and the action waits for approval again. You may
  also edit `arguments` in the file by hand; it is shown as edited and
  checked before it runs.
- An action runs at most once. Its status is written before and after the
  call, under a lock. If Ombro stops mid-call, or the server does not
  answer, the action becomes `uncertain`: it may or may not have happened,
  and it is never retried. Settle it with `ombro approvals resolve <ref> sent`
  or `not-sent`.
- Outcomes are recorded in the action's file, the job's journal, job.md and
  an "Approvals" section added to the report.
- Every `ombro approvals` command takes `--json` (as do the other listing commands), and `approve` and `decline` take
  `--yes`, for an interface that has already shown and selected the actions.

`ombro fake-mcp` is a fake MCP server, with one tool of each class, that
writes what it would have done to a file. The tests use it, and so can a dry
run (see `examples/`).

## Guardrails

Limits are enforced by code, never by asking the model. Every model call and
tool call passes through one gate that checks all limits before the call and
records the usage after it.

One word in `limits.md` sets how far jobs, chats and interviews may go, for the whole of
Ombro (`ombro limits set <level>`, or `/limits` in the terminal interface):

| `allowance` | job tokens | rounds | job time | each interview | each chat |
|---|---|---|---|---|---|
| `conservative` | 300,000 | 4 | 15m | 50,000 | 100,000 |
| `moderate` (default) | 800,000 | 8 | 30m | 100,000 | 200,000 |
| `generous` | 2,000,000 | 16 | 1h | 250,000 | 1,000,000 |
| `unlimited` | no cap | 50 | 4h | no cap | no cap |

Any of these can be set by hand in `limits.md` or a spec's `limits:` block,
which wins over the level. Even `unlimited` keeps every other cap:

| Limit | Scope |
|---|---|
| `max_tokens` | job; total tokens |
| `max_rounds` | job; Lead delegation rounds |
| `job_timeout` | job; wall clock |
| `max_steps` | each brief; model calls a role may make |
| `tool_max_calls` | each tool, per job (`max_calls` in `tools.md`) |
| `max_output_tokens` | each model call |
| `outward` | each outward call: allowed, held for approval or refused (see above) |
| `loop_threshold` | the same tool with the same arguments repeated |
| `code_timeout`, `code_max_memory`, `code_output_chars` | each script `code.run` runs |
| `interview_max_tokens`, `interview_max_turns` | each interview |
| `chat_max_tokens`, `chat_tool_max_calls`, `chat_calls_per_message` | each chat |

Limits and usage are in tokens; Ombro reports no costs. Settings from earlier
versions (`budget_usd`, prices in `models.md`, `cost_per_call` in `tools.md`,
`display_currency` in preferences) are accepted and ignored. A job's usage is
kept under `usage:` in its `job.md`; older jobs that call it `spend:` are still
read.

Tokens, rounds, time and a stop request end the whole job. Narrower limits
end only what they bound, and the job goes on:

- A role's `max_steps` or loop detection ends that brief. The Lead is told and
  can brief again more narrowly or finish. The report records which limit
  ended which brief.
- A tool that has used its `max_calls` refuses further calls for the rest of
  the job. The role is told and carries on without it.
- The Lead's own step limit, and the Lead repeating the same call, still stop
  the job.

A share of the token limit (`report_reserve`) is held back so the final
report can always be written. The Lead's rewrite of notes.md also comes out
of the reserve, and is skipped if it would leave too little for the report. Limits are fixed when a job starts and recorded
in its `job.md`. Interviews run under their own gate and cap, so an interview
never uses a job's allowance.

If a job's process dies, the next `ombro` command that notices writes a report
from the journal and marks the job `failed`.

## Files

Everything variable lives in two folders, as Markdown with YAML front matter,
except the journal, which is JSON Lines. Settings, secrets, crews, specs and
schedules are in the hidden home, `~/.config/ombro`. What you open every day
is in a visible folder, `~/Ombro`:

```
~/Ombro/
  Jobs/<job_id>/report.md, workspace/  each job's report and the files it made; also job.md, spec.md,
                interview.md, journal.jsonl, scratch/, outbox/, code/ (scripts and their output),
                backup/ (clones of writable shared folders)
  Chats/<time>.md                      chat transcripts (never loaded or searched)
  Files/<date>/                        files attached in chats, given to the briefs and jobs made there

~/.config/ombro/
  limits.md  models.md  tools.md  folders.md
  secrets/keys.env  secrets/oauth/  secrets/<key file>   owner-only
  preferences/config.md  preferences/instructions.md
  skills/<name>/SKILL.md, references/  the skills library; skills/Archive/ keeps old versions
  scheduler/tick.md, tick.log, scheduler.log   the last tick and the scheduler's logs
  lead/config.md, soul.md              the one Lead, above every crew
  specs/<name>.md                      saved specs; each names its crews
  schedules/<name>.md
  interviews/<time>-<kind>.md
  removed/schedules/<name>.md          schedules removed with `ombro schedule remove`
  crews/<crew>/
    crew.md
    roles/<role>/config.md, soul.md
    memory/index.md, notes.md
    removed/<role>/                    roles removed with `ombro role remove`
```

`$OMBRO_FILES` names another visible folder. With `$OMBRO_HOME` pointing
anywhere but `~/.config/ombro` (a test or demo home), everything stays in that
one folder, with `jobs/` and `chats/` inside it. A home from before the
visible folder has its `jobs/` and `chats/` moved there on start, once, and
only where the new folder is empty. Prompts and indexes still name a job's
files `jobs/<job_id>/…`. `Jobs/` and `Chats/`, and any folder holding them, can't be shared with jobs.

Jobs were once called runs. A home from then keeps its jobs: on start,
Ombro moves its `runs/` folder to `jobs/`, and each `run.md` to `job.md`.

A home made by an earlier Ombro, with a Lead inside each crew, is refused
with a message: move it aside (keeping `secrets/` if you want your keys) and
run `ombro init` for a new one.

A role is a folder with `config.md` (name, kind, description, model, tools,
skills, max_steps) and `soul.md` (its prompt). `kind` is `specialist` or
`helper` in a crew, and `lead` only for the one Lead in `lead/`; helpers
default to the `cheap` model and fewer steps.

## Testing without a model

`models.md` accepts `api: fake` with a `script:` JSON file of canned replies,
and `tools.md` accepts `provider: fake` for search and fetch, and the fake
MCP server for outward tools. The test suite uses the same fakes, scripted answers for interviews, and mock HTTP
transports for the real providers, so every guardrail, interview and tool is
tested without a network connection or a paid call. Schedules are tested with a fake
clock and a fake scheduler installer; no test touches launchctl or crontab.
Code is tested in the real sandbox of the system the tests run on, with
invented files in temporary folders; the network test only tries to reach a
listener on the machine's own loopback address. The other system's sandbox
tests are skipped.

## For developers

Ombro is one Python package, `src/ombro`, with three ways in on top of it:
the terminal (`cli.py` and the `*_cmd.py` modules, plus the Textual interface
in `tui/`), the server (`serve/`, which the desktop app and remote devices
talk to) and the desktop app (`gui/`: Tauri in `gui/src-tauri`, React and
TypeScript in `gui/src`). The app runs the core as a sidecar: a frozen
`ombro serve`, built by `npm run sidecar`.

**A job.** `ombro start` (in `cli.py`) makes the job's folder and starts it
in a process of its own (`jobs.py`, `start_detached`). That process runs
`engine.py`, the Lead loop: every model call and tool call passes the
guardrail gate (`gate.py`), results are checked against the result contract
(`contract.py`), everything is written to the job's journal (`journal.py`),
and the job always ends in a report (`report.py`). Live jobs, the ones you
stay for, are in `livejob.py`.

**A conversation.** `session.py` runs one live conversation, the same way for
the terminal and the app. `chat.py` is the chat with the Lead; `interview.py`
and `interviews.py` are the set-up, add-a-role and brief interviews; the
commands that act inside a conversation (adding a tool, starting a job) are
flows in `flows.py`.

**Tools.** `tools.py` is the registry. Native tools (search, fetch,
workspace files) are in `native.py`; outward tools, their class and the
permission each call gets in `outward.py`; MCP servers in `mcp.py` (added and
removed by `mcp_servers.py`); web APIs in `apitool.py` (added by `tool_cmd.py`); Composio in `composio.py`; the browser in `browser.py`;
staged actions waiting for approval in `outbox.py`. Text that came from
outside (web pages, tool answers) is marked as material in `material.py`.

**Code and folders.** `coderun.py` is code.run, run through `sandbox.py`
(sandbox-exec on macOS, bubblewrap on Linux). Shared folders are in
`folders.py`.

**Everything else.** Settings and limits: `settings.py`, `home.py`,
`models.py`. Model clients: `client.py`, `anthropic_client.py`,
`responses_client.py`, `chatgpt.py`. Memory and skills: `memory.py`,
`skills.py`. Schedules: `schedules.py` (the files and `ombro tick`),
`scheduler.py` (the one system entry that calls it) and `service.py`
(`ombro serve install`). What an interface shows: `views.py` and
`viewtypes.py`, from which the app's TypeScript types are generated.

**Version.** One version for the core and the app, set with
`python3 scripts/bump_version.py 0.2.0`; `tests/test_version.py` fails if any
copy disagrees.

**Tests.** `uv run pytest` runs the core's tests in `tests/`, with no network
and no paid calls (see Testing without a model); the fakes are `fake.py`,
`fake_mcp.py` and `providers/fake.py`. `npm test` in `gui/` runs the app's
tests, and `cargo test` in `gui/src-tauri` the Rust side's.

## Security

To report a vulnerability, see [SECURITY.md](SECURITY.md). Please don't open a
public issue for it.

## Contributing

Bug reports, ideas and pull requests are welcome: see
[CONTRIBUTING.md](CONTRIBUTING.md). The first time you open a pull request,
you'll be asked to accept the [Ombro Contributor Agreement](CLA.md) by
commenting one sentence on it. You keep your copyright.

## Trademark

"Ombro" and the Ombro logo are trademarks of Heliotrope Atelier Ltd. The
licence lets you change and share the code, but not the name: if you
distribute a modified version, give it a different name and logo, and don't
suggest it is Ombro or endorsed by us. Saying that your fork is based on
Ombro is fine.

## Licence

Ombro is free software under the GNU Affero General Public License, version 3
only (`AGPL-3.0-only`; see `LICENSE`). Copyright © 2026 Heliotrope Atelier Ltd.
