Metadata-Version: 2.5
Name: roosta
Version: 0.23.0
Summary: Your agentic office: a desktop app for a team of AI workers that learns your work
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: fastapi
Requires-Dist: httpx
Requires-Dist: keyring>=25
Requires-Dist: packaging
Requires-Dist: pyyaml
Requires-Dist: uvicorn[standard]
Requires-Dist: watchfiles
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Description-Content-Type: text/markdown

# Roosta

<img src="assets/roosta-pixel.png" alt="Roosta, an orange-hooded pixel character with glowing eyes and goggles" width="160" align="right">

**Your agentic office. Tiny desks. Proper work.**

Give your AI team jobs: research a topic, organise project notes, build something useful or keep an eye on what matters. Workers share knowledge of your priorities, learn from your feedback and bring findings and decisions to your Assistant board.

Your office runs on your computer, with its knowledge in readable Markdown files. Chat with the team, shape their jobs and watch them at work in the pixel-art Office. You set the direction. Roosta keeps the desks busy.

![Roosta's pixel-art Office, with AI workers at desks, in meeting rooms and around shared spaces](assets/office.png)

## Get started

Choose how to open your office. [Python in your browser](#run-in-the-browser-with-python) is the quickest way in. The [macOS app](#download-the-macos-app) gives you the same office with a Dock icon, menu bar controls and native notifications.

<a id="altenatively-run-in-the-browser-with-python"></a>

### Run in the browser with Python

On macOS or Linux, you'll need [Git](https://git-scm.com/downloads) and either [uv](https://docs.astral.sh/uv/getting-started/installation/) or [pipx](https://pipx.pypa.io/stable/installation/). Roosta needs Python 3.11 or newer. If you have **uv**, it can download Python for you:

```sh
uv tool install --python 3.11 roosta
```

If you use **pipx** instead, install a compatible Python first and select it by name (here, Python 3.11):

```sh
pipx install --python python3.11 roosta
```

Create your workspace and start Roosta. To use an existing folder of notes, substitute `roosta init --adopt <folder>` for the first command.

```sh
roosta init ~/workspace
roosta start
```

Leave that terminal open and visit [your Assistant board](http://127.0.0.1:7667/assistant). The default port is 7667, or ROOS on a phone keypad.

### Download the macOS app

Download the DMG for your Mac from [GitHub Releases](https://github.com/m0nkmaster/roosta/releases). Choose **arm64** for Apple Silicon (M-series) or **x64** for Intel. Drag Roosta into Applications, eject the disk image and open Roosta from Applications. Python comes bundled.

Releases are **self-signed and not notarised by Apple**. If macOS blocks a download you trust, go to **System Settings → Privacy & Security → Open Anyway** for Roosta and confirm.

On first launch, Roosta uses your configured workspace or creates `~/workspace`. If it finds an existing folder of documents or a compatible older setup there, it asks before adopting or migrating it. To update, quit Roosta and replace the app in Applications with the new copy. Your workspace lives outside the app.

### Set up your office

1. **Connect your AI.** On a fresh workspace, the board offers **Connect your AI**, or **Choose your Claude Code account** if Claude Code is already installed. Open AI settings to select **Use as default** on that account, or choose **Add and use as default** when adding your account. Install its software and complete any requested sign-in or model choice. The connection test is optional.
2. **Tell Roosta about your work.** Choose **Continue workspace setup**, then open **Set up your workspace** on the board. Roosta helps you describe your priorities, projects and tools, sets up a starter schedule and creates your first board card.
3. **Build your team.** Open Workers and choose **New worker** to describe a job. Each worker runs a named skill on a schedule. Visit the Office to find its desk and chat about the job.

Bring your own AI accounts. Use an OpenAI or Anthropic subscription, or pay separately for API usage. OpenAI, OpenRouter and local Ollama models run through the [Pi](https://pi.dev/) agent harness. A Cursor account runs through the [Cursor Agent CLI](https://cursor.com/cli) with a Cursor API key.

### Updating and diagnosing Python installations

Let active workers and chats finish, then run `roosta update` from the installation serving your workspace. Restart the runner (Ctrl+C and `roosta start` for the foreground setup above) or restart its existing service, then reload the dashboard. To preview the upgrade, use `roosta update --check`.

For a read-only health report, run `roosta doctor`.

To run Roosta in the background, open **Settings → Workspace and runner**. From a terminal, stop the foreground runner, run `roosta service install --workspace ~/workspace` with your workspace path, then follow the printed activation command for launchd on macOS or systemd on Linux.

<details>
<summary>Upgrade compatibility and diagnostic options</summary>

The updater looks for the latest stable GitHub release and a compatible, non-yanked wheel on PyPI. It keeps a current or newer version. It uses the original uv or pipx tool installation, or pip or uv in a standalone virtual environment. Source checkouts, bundled apps and installations with an unknown owner receive manual instructions.

Doctor checks the installation, runtimes, configuration, worker skills and directories, changes to core skills, and the local runner. It uses the workspace from `--workspace <folder>`, then `ROOSTA_WORKSPACE`, saved configuration or the current directory, in that order. Use `--offline` to skip release and local runner requests and `--json` for structured results. A blocking failure returns 1. Warnings and skipped optional features leave the exit status at zero.

Account and connector checks inspect configuration. To verify sign-in, use AI Settings or the connector's own login check.

</details>

## Inside your office

The Assistant board brings together what needs you now. Workers handle recurring jobs; the Office shows the team at work. Ask Roosta to build custom pages when you need another view of your work.

| Page | What you can do |
|------|----------------|
| Assistant (`/assistant`) | Review findings, make decisions and continue your chats |
| Office (`/office`) | See your scheduled workers in a pixel-art office |
| Workers (`/runner`) | Give workers jobs, set schedules, check run history and chat to refine their skills |
| Workspace (`/workspace`) | Search your shared knowledge and choose files as chat context |
| Pulse (`/pulse`) | Explore workspace activity and review pages that need attention |
| Custom pages (`/pages/<name>/`) | Use views Roosta builds for you with the `page-builder` skill |

### Skills give your workers their jobs

A skill teaches a worker or chat how to do one job. **Built-in skills** (called core skills in the CLI) come with Roosta and receive updates with it. **Custom skills** are new jobs you add to your workspace; Roosta updates leave them alone. For a separate job, ask `write-a-skill` to create a skill with a distinct name, such as `client-briefing`, or write its instructions in `.agents/skills/client-briefing/SKILL.md`.

Extensions and forks are two ways to customise a built-in skill, not extra types of job. For a skill such as `workspace-gardener`, choose how much you want to change.

- **Extensions add preferences.** For example, ask the gardener to check active client notes first. It still follows its usual gardening procedure. Start here for most customisation: the built-in keeps receiving updates and your additions stay in place.
- **Forks replace the whole built-in skill tree.** For example, give the gardener your own duplicate-review procedure and script. A fork pins a complete workspace copy that you maintain, including its instructions, scripts and references. Package upgrades update the built-in tree. Roosta never automatically merges those updates into your fork.

```mermaid
flowchart LR
    Q{Pinned fork?} -->|No| B["Read built-in skill<br/>Updated with Roosta"]
    Q -->|Yes| F["Read your fork instead<br/>Maintained by you"]
    B --> E[Then read extension if present]
    F --> E
```

On each turn, workers and chats read the installed operating model. For each skill they use, they read one `SKILL.md` and use scripts and references from that same tree. A gardener extension applies whichever gardener is selected, including a fork. The operating model and Roosta’s tool, approval and output rules take precedence over both forks and extensions.

To run a custom job regularly, open **Workers → New worker** and ask it to use your skill. Choose a distinct name: a same-named custom skill does not override a built-in.

For commands to extend, fork or return to a built-in skill, see [Managing workspace skills](docs/skills.md).

#### Built-in skill catalogue

| Skill | Job |
|-------|-----|
| `assistant` | Ranks findings and turns them into board cards |
| `chat-ideas` | Suggests useful new chats from your priorities, projects and tools |
| `actor` | Handles the chat on a card and drafts actions for approval |
| `sender` | Performs one action you approved |
| `workspace-gardener` | Digests, verifies, connects and tidies the workspace |
| `workspace-learner` | Learns from your AI chats and connected tools |
| `skill-auditor` | Reviews and improves the skill set |
| `workspace-new-project` | Scaffolds a project |
| `setup` | First-run setup and guided fork review |
| `connectors` | Connects a tool safely, with a catalogue of common ones |
| `page-builder` | Builds custom pages |
| `write-a-skill` | Writes and sharpens skills |
| `roosta-engineer` | Evolves your pages, tasks and skills from how you use them |

### Shared knowledge you own

Your office's knowledge lives in a local folder of Markdown files: your profile, priorities, project notes and skills. You can read and edit them yourself, or work with them directly from Claude Code, Codex, Cursor or Pi. The operating model is the set of conventions that helps agents use that knowledge consistently.

```
~/workspace/
  AGENTS.md            # your rules and standalone skill routing (CLAUDE.md points here)
  PROFILE.md           # who you are and how the assistant should sound
  PRIORITIES.md        # what matters now
  CONTEXT.md TOOLS.md  # your domain and your tools
  projects/ notes/ drafts/ analysis/ templates/
  .agents/skills/      # your custom skills (.claude/skills points here)
  .roosta/
    skill-extensions/  # additive instructions for installed skills
    skill-forks/       # explicitly pinned skill trees
    tasks.yaml         # the schedule
    connectors.yaml    # tool sign-in checks and write denials
    pages/             # your custom pages
    state/             # runtime state (gitignored)
```

### Choose your Workspace collections

In `WORKSPACE.md`, list the collection overviews you want to browse.

```markdown
# Workspace

- [Clients](Clients/README.md)
- [Projects](projects/README.md)
```

In `Clients/README.md`, explain the collection and list its members.

```markdown
# Clients

Current engagements, in review order.

- [North Coast](North%20Coast.md)
- [Acme](Enterprise/Acme.md)
```

To keep an index current without editing it, add membership rules to its
frontmatter. The gardener appends matching pages on every pass and never removes,
reorders or rewrites existing entries.

```yaml
---
title: Clients
collect_tag: client                  # pages tagged `client` join
collect_path: Clients/*/README.md    # and/or a glob from the workspace root
collect_order: alphabetical          # or newest-first (date-prefixed names); default appends
exclude: [Enterprise/Old.md]         # never auto-add these, relative to the index
---
```

To drop an added page, list it under `exclude`; deleting its line alone lets the
next pass add it again.

Use the first inline Markdown link on each top-level list item. Paths are relative
to that index and case-sensitive. Encode spaces as `%20` or enclose the destination
in angle brackets. Headings and paragraphs are yours. The first occurrence sets the
order. Hidden, private, symlinked, external and missing targets are ignored.
Only collection members become stars, once per source path. A README's supporting
folder documents and a single page's list of linked documents can appear as moons.

Without `WORKSPACE.md`, Roosta shows existing `projects/*/README.md` overviews,
or the existing priorities and context pages if there are no projects. Creating an
empty index clears that selection. All knowledge still searches visible Markdown.

Use `topics/<tag>.md` for an introduction and a reading list alongside shared tag
discovery. Decisions and plans surface matching level-two sections from the source.
Optionally list sources in `Decisions.md` or `Plans.md`, for example
`- [Delivery sequence](Clients/Enterprise/Acme.md#delivery-sequence)` for a
`## Delivery sequence` section. Open source reads the whole document.

Constellation rings use the later of the page's valid `last_updated` and dated
`verified` entries. With neither, the page's own modification time is an estimate
and formatting that page can move its star. Editing a collection index or a supporting
file leaves its members' attention dates alone. Active or blocked pages drift after
30 days. An expired `stale_after` or missing verification brings an unfinished page
into review. Confirming records your profile reviewer and today's date.

## Safety

- By default, external writes (messages, tickets, pages, email) pause for **Send/Cancel** on the board. Only then does the `sender` skill run.
- In **Workers**, expand a worker and open **Settings → Unrestricted** to grant standing approval for any action, local or external; nothing is off limits. Clear the checkbox to revoke approval. Choose **Save** to apply the change to future runs. A worker already executing or waiting for another writer keeps its current permissions.
- Standard runs use permission guardrails that allow any local change but block secret access, external writes (git push, GitHub creates, curl/wget), write-shaped MCP tools and configured connector write commands. These are tool policies, not an OS sandbox; explicitly unrestricted tasks bypass them.
- Tasks marked as writers run one at a time; other tasks may run concurrently.
- Posts the assistant sends end with `[AI]`.

Connector write denials can be loosened per connector, never globally.

## AI connections

Settings → **Your AI** shows the account Roosta uses. Open **Model and reasoning** to choose a
model and its supported reasoning effort, or **Change AI or manage accounts** to connect another
account. Each account records its provider and billing route; model choice is saved separately.
API keys live in the OS credential store (Keychain on macOS). Account sign-in credentials stay in
Claude Code's or Pi's authentication storage; Roosta can also use your existing Claude Code login.
Choose **Use as default** on any connected account. The optional connection test makes one small
billable request to check that the model can read a temporary file. Choose **Cancel test** to stop it.

Anthropic models run through the unmodified Claude Code runtime. OpenAI, non-Anthropic OpenRouter
models and local Ollama models run through Pi. Anthropic models on OpenRouter are rejected: choose
an Anthropic connection explicitly.

Chats retain their account when the default changes, even if you disconnect that account.
If a chat has no named account or its account was deleted, your next message starts a fresh
session on the connected default. The conversation history and topic summary stay with the chat. Model changes in Settings apply to subsequent
turns on that provider; account and model controls live in Settings. Workers follow the connected
default when `connection` is omitted; choosing a named connection pins only that worker.
Disconnect lists affected chats, approvals and workers.
**Install / Update to latest** downloads the publisher's latest release and verifies its checksum,
preserving other CLI installs. Roosta runs the newest installed copy of Claude Code or Pi, preferring
your own installation when versions match. Updates are explicit and wait for active AI turns to finish;
there are no Roosta version pins or background downloads. Managed downloads support macOS and glibc
Linux on Apple/ARM64 and x64; Windows runtime installation is not implemented yet.

## Develop

**From a local checkout**, to work on Roosta:

```bash
git clone https://github.com/m0nkmaster/roosta.git && cd roosta
uv tool install --editable .      # `roosta` now runs this checkout
roosta init ~/workspace
roosta start
```

With an editable install, refresh the dashboard for HTML and CSS changes, restart the runner for Python changes, and start a new turn for core skill changes. For the optional macOS shell, including how to run it from source, build it, sign it and troubleshoot notifications, see the [desktop README](desktop/README.md).

Run checks from the repository root:

```bash
uv venv && uv pip install -e '.[dev]'
.venv/bin/python -m pytest -q
cd desktop && node --test
```

Architecture, decisions and gotchas: [AGENTS.md](AGENTS.md). Release notes: [CHANGELOG.md](CHANGELOG.md).

## Licence

Apache-2.0. The Office uses the [LPC Revised](https://github.com/ElizaWy/LPC) sprites (OGA-BY 3.0) and OFL fonts; Tabler is MIT. Credits are beside each vendored asset.
