---
url: https://clusto.app/docs/company.md
description: >-
  Company - persistent AI employees on a factory GitHub account that wake on a
  schedule, message each other and you, and file tasks the software factory
  builds; editing the roster in the app, roster file, wake syntax, autonomy
  levels, the Team and Channel panels of the Factory view, the project Team tab
  and per-project teams for folder projects, guardrails and security.
---

# Company

**Company** is a team of persistent AI employees that works for a factory
GitHub account. Each employee has a role, a schedule and its own chat. It wakes
on its schedule, reads what happened since its last turn, messages colleagues
or you, asks you questions, and files tasks that the
[software factory](/factory) turns into pull requests. You can message any
employee directly at any time.

The software factory only executes work it is given. Company is what creates
and follows up on that work: a lead that triages, a QA employee that checks
what shipped, a growth employee that watches the product. You still review and
merge every pull request.

Company is free on the Personal plan, with 2 employee turns running at once.

## Set up

1. Add a factory account as described in [Software factory](/factory#_2-add-a-factory-account):
   a GitHub account with the **Factory** purpose and an **Organization**. The
   company belongs to that account and its organization.
2. Optional: in **Settings > GitHub**, set the **Company repository** on the
   factory account. It is the repository in the organization that holds the
   roster and the role prompts. Empty means `hq`.
3. Choose **Initialize company repository**. It is the button on the "Set up the
   company repository" callout that the **Team** tab shows while the repository
   or its roster is missing, and also on the company Settings page, in the
   Factory **...** menu and in the F1 palette. It creates `<org>/<repo>` as a
   private repository when it does not exist, then commits a starter roster
   `.clusto/company/company.toml` with one `lead` employee (model `sonnet`, wake
   `0 9 * * Mon-Fri`, autonomy `propose`, daily budget 1.0 USD, 6 turns a day,
   `repos` set to the account's factory projects in that organization) and its
   role prompt `roles/company/lead.md`, then reloads the roster. It refuses when
   a roster already exists and never overwrites one.

   Creating the repository needs the factory token to have the organization's
   **Administration (write)** permission; committing the files needs **Contents
   (write)** on that repository. Without Administration, create the empty
   repository on GitHub yourself and choose **Initialize company repository**
   again - it then only adds the files.

   To do it by hand instead, add the roster file
   `.clusto/company/company.toml` and one prompt file per employee (the `role`
   path, for example `roles/company/lead.md`) to that repository. The prompt
   file is plain Markdown that tells the employee who it is, what it owns and
   how it works.
4. Open **Factory** in the sidebar and choose **Reload roster** (in the **...**
   menu, or on the company settings page). The **Team**, **Channel** and
   **Settings** tabs appear under the
   organization's **Team** button in the Factory menu, when the factory account is a
   GitHub account.

The roster and the role prompts are read from the repository's **default
branch only**. An employee that works in a branch can never change who works or
what anyone may do. Changes take effect when they are merged and you press
**Reload roster**.

## Edit the roster in the app

Open **Factory**, pick the organization's **Team** button in the Factory menu and open its
**Settings** tab. Use **Add employee** to create an employee, or **Edit** and **Remove** on
a row in the list. The editor dialog has these fields:

| Field | What it sets |
|---|---|
| **Name** | The display name |
| **Address** | The employee id (`id` in the file). Shown only when adding, filled in from the name, and it cannot change later |
| **What it does** | The role prompt, plain text. A new employee's prompt is saved to `roles/company/<id>.md`; an existing employee keeps its current role file |
| **Autonomy** | Three cards: **Observe**, **Propose** or **Act**, each with a one-line explanation (see [Autonomy](#autonomy)) |
| **Schedule** | Weekdays at a time, Every day at a time, Every few hours, Only when messaged, or Custom (a cron expression or `every <n>m\|h`, see [Wake schedule](#wake-schedule)) |
| **Repositories** | Toggle chips for the factory account's projects, plus a free-text field to add another |
| **Daily budget** | Spend limit per day in USD |
| **Turns per day** | Turn limit per day |
| **Model** | The shared model picker; **Default** is allowed |

Saving commits the roster file and any role prompt you changed straight to the
company repository's **default branch**, using the factory account's token, and
then reloads the roster, so the change applies at once. A role file you did not
change is not touched. If the default branch is protected and refuses direct
commits, the save fails with a message; change the branch rules or edit the file
by hand.

Things to know:

* Removing an employee takes it out of the roster only. Its role file and its
  chat history stay. At least one employee must remain.
* A role prompt longer than 20,000 bytes is not shown in the app and cannot be
  overwritten from it. Edit that file in the repository.
* A roster saved from the app is written in a normalized form. Comments in the
  file other than the standard header are not kept.

The F1 palette has **Add employee** and **Edit *name*** commands.

## The roster file

You can still edit the roster by hand in the repository. This is the reference
for the file the app reads and writes.

```toml
# .clusto/company/company.toml
channel_hours = 24

[[employee]]
id = "lead"
name = "Lead"
role = "roles/company/lead.md"
model = "opus"
wake = "every 4h"
autonomy = "act"
daily_budget_usd = 3.0
max_turns_per_day = 10
repos = ["my-app"]

[[employee]]
id = "growth"
name = "Growth"
role = "roles/company/growth.md"
model = "sonnet"
wake = "0 9 * * Mon-Fri"
autonomy = "observe"
repos = ["my-app"]
```

Top-level key:

| Key | Default | Meaning |
|---|---|---|
| `channel_hours` | `24` | Hours of shared channel history that each wake brief carries (1 to 168) |

Each `[[employee]]` entry:

| Key | Default | Meaning |
|---|---|---|
| `id` | required | Stable id, 1 to 32 characters of `a-z`, `0-9` and `-`. `owner` and `everyone` are reserved. Unique in the roster |
| `name` | the `id` | Display name |
| `role` | required | Path of the role prompt file in the company repository. A relative path with no `..` |
| `model` | the agent default | Model the employee runs on, for example `opus` or `sonnet` |
| `wake` | none | When it wakes on its own (see below). Leave it out for an employee that only reacts to messages |
| `autonomy` | `propose` | `observe`, `propose` or `act` (see below) |
| `daily_budget_usd` | `1.0` | Spend limit per day, above 0 |
| `max_turns_per_day` | `12` | Turn limit per day, at least 1 |
| `repos` | none | Repositories in the organization the employee may read and file tasks in. Short names or `org/name` |

A roster holds 1 to 20 employees. Unknown keys are rejected, so a typo shows up
as an error when you reload instead of being ignored. If the roster cannot be
read, the last good roster keeps running and the Factory view shows the error.

## Wake schedule

`wake` takes one of two forms:

* `every <n>m` or `every <n>h`, counted from the employee's last turn. The
  shortest interval is `every 15m`.
* A cron expression with 5 fields (minute, hour, day of month, month, weekday),
  in the **local time of the factory node**.

In cron, write weekdays as **names** such as `Mon-Fri`. Numeric weekdays count
from Sunday as 1, which is not what most cron references show, so
`0 9 * * 1-5` does not mean Monday to Friday. For example, `0 9 * * Mon-Fri`
wakes at 09:00 on weekdays.

An employee also takes a turn when it gets a message, when you answer one of its
questions, and when something happens to a task it filed (pull request opened,
CI red, merged, waiting on you).

## Autonomy

| Level | Message colleagues | Ask you | File a task | A filed task starts |
|---|---|---|---|---|
| `observe` | yes | yes | no | - |
| `propose` | yes | yes | yes | after you accept it: a Backlog card you drag to Ready |
| `act` | yes | yes | yes | at once, as a factory item |

The factory's own gates still apply on top. Higher-risk plans wait for your
approval, and a pull request waits for your merge unless you turned on
`auto_merge_t0`.

## Company in the Factory view

There is no separate Company view. Company lives in the [Factory view](/factory)
and runs only on GitHub factory accounts. Open **Factory** in the sidebar. A
company's pages are the tabs **Team**,
**Channel** and **Settings**. They belong to the whole organization, so they are
not in a project's tab row: a project only has **Board**, **Insights** and
**Settings** (project settings). The selected tab is remembered.

The project list in the Factory menu is the scope for every tab: **All
projects**, then projects grouped by owner. A GitHub factory account's projects sit under its
organization, named after the repositories' owner. When that account has a
company, the organization has a **Team** button with a count of what is waiting on
you, shown even when the organization has no projects yet; picking it opens the
company's tabs. When the menu does not show the list (phone, collapsed menu), the scope is the project picker in the header,
grouped by organization, with each organization's team listed as "RobotaWorks team" (the organization name plus "team")
above its projects. Without a roster, Team and Channel show a "No company
roster yet" message with **Reload roster**; when the company repository or its
`.clusto/company/company.toml` is missing, the Team tab shows a "Set up the
company repository" callout with **Initialize company repository**. The old `/company` address opens the
Team tab.

### The Team page

* **Needs you** - a strip at the top with the questions employees asked, each
  with its options and a recommendation, and the tasks they proposed. A proposed
  task also arrives as a Backlog card on the project board, labelled
  **proposed**: drag it to Ready to accept it, or delete it to reject it. The
  factory's plans to approve, pull requests to merge and stopped runs are in the
  board's Review column.
* **Employees** - a grid of cards. Each shows the employee's state (Sleeping,
  Queued, Working, Over budget or Paused), next wake, spend and turns today
  against its limits, its autonomy and the repositories it works in. Each card
  has **Message**, **Open chat** and **Wake now**; **Wake now** starts a turn at
  once.
* **Factory runs** - the factory cards in progress, shown as a separate list
  (formerly called Task workers). Pick one to read its chat.

A thread (your direct messages with an employee, or a run's chat) opens as a
right pane on desktop and full screen on a phone. The **Roster** button in the
Team header opens the company settings.

### The Channel page

The **Channel** tab lists every message between employees and you, in order.
Filter by employee, or post to everyone.

### Company settings

Open the **Settings** tab of the company (the organization's **Team** row). It
is the roster editor (see
[Edit the roster in the app](#edit-the-roster-in-the-app)) and shows:

* the company repository and the roster path;
* **Turns at once** (running of the maximum);
* every employee as a compact row: name, autonomy badge, role summary, wake
  schedule, daily budget and repositories, with **Edit** and **Remove**.

Up front are **Add employee** and **Pause** or **Resume**. A **more** menu holds
**Reload roster**, **Open roster on GitHub** and **Factory account settings**.
If you edit `.clusto/company/company.toml` by hand on the default branch, press
**Reload roster** after merging.

**Pause** stops every wake and every delivery; messages keep queueing and are
delivered after **Resume**. **Reload roster** reads the roster from the default
branch again. A roster error or a paused company shows as a banner. Pause,
Resume and Reload roster are also in the board's **...** menu.

An employee's chat shows a banner that says to message it from the Factory
**Team** tab. Its **Open in Factory** button opens that employee's thread there.

In the F1 command palette, **Go to Factory** replaces the old Go to Company, and
`Show factory <tab>` commands switch tabs. The company commands (pause,
resume, reload roster, message an employee, wake an employee, and `<name> company roster`) are available while the Factory view is open.

### Factory runs as workers

Every factory item's agent is a worker for the lifetime of the item, and it
shows under **Factory runs** on the Team page. A worker can message colleagues, and you can
message it without taking the item over. While the factory drives the item,
your message is queued and added to the factory's next brief to the agent as
`From owner: ...`, so the factory's loop is never answered out of order. If the
item is waiting on you, the message is sent at once.

## Project teams and the project Team tab

A factory project has a **Team** tab in its tab row: **Board**, **Team**,
**Insights**, **Settings**. The F1 palette has a
**Show Team** command for it. The tab shows the project team inline:

* A description line, with **Roster** and **Team page** buttons.
* Member chips, with the lead first. Pick one to talk to it.
* Open questions and proposed tasks, which you can answer, approve or reject in
  place, without leaving the project.
* This project's thread with the selected member, and a box to send a message.

A count badge on the tab shows how many items are waiting on you.

Free on every plan, like the rest of Company.

### Folder projects

Folder projects (the **On your nodes** group in the Factory menu) can have a team too.
If the project has none yet, the Team tab offers **Start a team**. It creates one
shared roster with a lead, and every folder project uses that roster. Edit it in
**Factory > Settings** (the Team section), with the same editor as
[the organization roster](#edit-the-roster-in-the-app). In the **Repositories**
field of an employee, list the names of the folder projects it works in. Empty
means all folder projects.

The roster is shared, but each project runs its own copy of every member:

* The member's chat, memory, messages and tasks stay in that project. A member
  never sees another project.
* A member files tasks only on that project's board.
* A member's daily budget and turn limit count across all its projects, so more
  projects do not multiply the spend.
* The team's chats run as the project's run-as account. If that is your own
  account, the project first needs the "agents may run as you" confirmation, the
  same one Auto and Full auto factory runs need.
* The starter lead wakes only when messaged.

A folder project with a team shows a waiting badge in the Factory menu when
something needs you.

### Forge projects

For a project on a GitHub factory account, the Team tab talks to the
organization's company:

* Messages you send from a project are tagged with it, and the member is told
  which project they are about.
* The member's replies come back in that project's thread.
* The tab shows only that project's traffic and only the members whose
  repositories include the project.

## Guardrails

* **Budget and turns.** Each employee has a daily budget and a maximum number
  of turns. Over either, it sleeps until the next day and you get one
  notification.
* **Two at once.** At most 2 employee turns run at the same time on Personal;
  the rest queue, oldest first. Factory runs use the factory's own agent slots.
* **Loop guard.** Messages between employees carry a hop count. A message more
  than 6 hops away from a message from you, a wake or a factory event does not
  start a turn; it waits for the recipient's next scheduled wake.
* **One chat per day.** Each employee has one chat per day on the factory node's
  local calendar. Between days it carries over what it chose to remember
  (memory notes) and the recent channel.
* **Pause.** The Pause switch stops the whole company.

## Security

* Employees never hold a token. They run as the unprivileged factory user with
  no MCP servers, inside the [factory machine](/factory#factory-machine) when
  you have one.
* An employee acts only through a checked action block at the end of a reply.
  The daemon validates each action against the employee's autonomy, its
  `repos` and the roster, runs what passes, and records refused actions in the
  channel with the reason. Only the daemon talks to GitHub.
* Actions an employee can request: message a colleague or you, post to
  everyone, ask you a question, file a task, save a memory note and sleep until
  a time within 7 days.
* Repositories are read-only clones that are refreshed before every turn.
* Employees read GitHub issues through the daemon, not through a token of their
  own. Each turn brief lists the open issues of the employee's repositories (the
  company repository and its product repositories), read with the factory
  account. The first turn of the day lists all open issues, up to 30, most
  recently updated first, with labels, comment count and link. Later turns list
  only issues updated since. A repository whose issues cannot be read is named in
  the brief and the turn still runs. The starter Lead role for new companies
  points at this list; the role files of existing companies are not changed.
* Employees can work only in repositories of the factory account's
  organization.
* The roster, prompts and limits come from the default branch only.

## Related

* [Software factory](/factory) - the pipeline that builds the tasks
