Skip to content

feat: put a project on autopilot (experimental) - #494

Merged
kalaspuff merged 20 commits into
mainfrom
fctl/1040-i-m-thinking-about-having-a-project-wher
Nov 9, 2026
Merged

kalaspuff merged 20 commits into
mainfrom
fctl/1040-i-m-thinking-about-having-a-project-wher

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A project can now go on autopilot (experimental): an agent that runs it on its own, toward a direction people give it, until they take it off. It works in sessions of its own in the project, keeps a plan and a log, and starts sessions for the work (its crew, shown as live cards in its transcript). Those sessions merge their own pull requests once checks pass and the work is done, so the next piece of work builds on the last; people can leave merging to themselves. As far as the powers people give it go, it changes the project's settings, secrets, repositories and schedules. A workspace's autopilot does that across the workspace, and creates projects. fctl wakes it at its check-in (every hour by default), when it asked to wake, a few seconds after people steer or answer it, and a minute after one of its sessions ends a turn, asks something or fails. It asks people questions, with answers to click and Markdown to help them choose, and for secrets, which people type in on its tab: the value goes into the project's secrets and never into a message or transcript. It doesn't wait for answers: it goes on with what it can and takes them up at its next wake. People steer it at any time with notes and its direction, and wake, pause, resume or take it off.

Its sandbox gets no token. fctl there sends each request through its own session (fctl-agent and the host pass it on as AgentCall::Api), and the control plane answers through the same handlers as anyone's request, as the person who put it on, held to its project or workspace, a maintainer's role and what an autopilot may do. It never touches people, roles, shares, tokens, runners, GitHub accounts or the workspace's settings, never deletes a project or does anything that takes confirming it's you, and replaces or removes only the secrets it set. ADR 0080 records why.

  • Web: the project's Autopilot tab (what it does and the form that puts it on; then where it stands, what it asks, notes, direction, plan, its sessions live and its log), its own transcript (a card for each wake, each session it starts and each project it creates as a card), the sessions it starts (its task in its name, a link back), its mark in session lists and the sidebar, its asks in Needs you, and the workspace setting that allows autopilots.
  • CLI: fctl autopilot for people (on, set, steer, notes, answer, secret, decline, wake, pause, resume, off, log, asks) and for the agent in its sandbox (brief, plan, log, ask, withdraw, wake, pause); fctl workspaces set --autopilots on.
  • Storage: migration 0055 adds autopilots with their notes, asks and log, and columns on workspaces, sessions and project secrets.
  • fake-claude plays an autopilot that plans, starts sessions, asks, ticks its plan off and pauses itself when it's done, and runs a note that is an fctl command, to try what an autopilot may do.

cargo xtask check --quick passes. In cargo xtask dev, a project's autopilot read its brief, wrote a plan, started sessions, asked a question with options and for a secret, took a note, two answers and a session's end up in one wake, worked through its plan and paused itself; the secret's value showed in no transcript. A workspace's autopilot with the settings and projects powers created two projects and changed another project's description. It was refused deleting a project, listing tokens, reading its owner's other workspace, and, with one session allowed at once, messaging a stopped session while another worked. A pilot session over 12 hours old was replaced by a fresh one and stopped. An autopilot needs its runner on this release: older hosts and fctl-agents refuse its requests, which its session reports.

Screenshots

What a project's autopilot asks, on its tab: a secret to type in, and a choice with the options explained.

crm-asks-dark.png

Its plan ticking off, its sessions live, and its log, with a divider for each wake.

crm-progress-light.png

Its own session: a card for each wake with what woke it, and each session it started as a live card.

crm-pilot-light.png

A session it started: its task in the autopilot's name, with fctl's note of who started it under a hairline.

crm-crew-dark.png

A workspace's autopilot creating a project, in its own session.

ws-created-light.png

The tab before a project goes on autopilot, and the form that puts it on, with merging among its powers.

intro-merge-light.png

form-merge-light.png

The tab on a phone.

crm-phone-light.png

Related

Worth confirming

  • Decision: it's called Autopilot ("Put Agency CRM on autopilot", "Take it off autopilot"), marked experimental wherever it shows.
  • Decision: a workspace's admins allow autopilots first, off by default, and turning that off pauses every autopilot in the workspace. Project maintainers put a project on autopilot; a workspace's autopilot, one per workspace, takes its admins. Putting one on is a sensitive action, as making a token that does everything is.
  • Decision: it runs on the Claude subscription of whoever put it on and acts as them. As with schedules, someone else who changes how much it works, resumes it or takes it over runs it on theirs from then on.
  • Decision: merging is a power like the others. With it, fctl's note on each session the autopilot starts asks that session to merge its own pull request (gh pr merge, through its own GitHub access and within the repository's rules) once checks pass, review findings are answered and the work is done. Without it, merging is left to people, and the autopilot asks them when work waits on a merge. Agents are otherwise told to merge only when asked, which this note does.
  • Decision: every power is on by default, merging included (also settings, secrets, repositories, schedules, and projects for a workspace's autopilot); the form lets people turn each off.
  • Decision: 3 sessions at once by default (1 to 8), at most 20 started an hour, a check-in every hour by default (15 minutes to a day). Wakes go to its own session while that session is under 12 hours old; then fctl starts a fresh one with a briefing.
  • Decision: its own session stays out of session lists (its tab links to it). Nobody follows the sessions it starts: while it's on, a question there wakes the autopilot rather than showing in Needs you; while it's paused or off, they show there for its owner, as any session they started.
  • Decision: what a workspace's autopilot does (its plan, notes, asks, sessions, log and own session) is for the workspace's admins, as it reaches projects other members may not see. Others who can read its home project see only that it runs, and how. For the same reason it stays the workspace's: put on again, it can't become its project's alone.
  • Decision: taking it off keeps its direction, notes, plan, log and open asks for when it's put on again; its open asks leave Needs you while it's off.
  • Decision: an autopilot's log keeps no one's name in its text: a person's line gets their current name as it's read, and reads "Someone" once their account is gone. The reasons fctl pauses one say "its owner" ("It acts as its owner, who no longer manages Shop"), while the header still says whose subscription it runs on.

fctl session


Warning

High risk. It adds an agent that acts on its own with powers over a project's or workspace's settings, secrets, repositories and schedules and merges pull requests, and it adds database tables and migrations, new permission rules and secret handling.

What it does. Lets a project, or a whole workspace, go on autopilot (experimental): an agent that runs it toward a direction people give it, keeps a plan and a log, starts sessions for the work and has them merge their own pull requests. It wakes on a schedule and when people steer or answer it, and it asks people questions, including for secrets that go straight into the project's secrets. Adds the control plane, API, CLI, web UI, agent prompt, docs and migrations for it.

New powers and migrations. Migration 0055 adds the autopilot tables, and the autopilot gets limited powers (places, crew caps, secrets) that need a careful look before merging.

fctl review's first look at 3b632de · 130 files, +13557 −175 · Review agent settings

fctl-sh Bot added 11 commits November 9, 2026 17:11
An agent that runs a project, or its whole workspace, on its own: it works
in sessions of its own, starts sessions to do the work, and sets up what the
work needs as far as its powers go, as the person who put it on and on their
Claude subscription. The schedules' alarm wakes it at its check-in and when
something needs it; people steer it with notes and answer what it asks,
secrets too, which go into the project's secrets.

Its sandbox's fctl reaches the API through fctl-agent (AgentCall::Api): the
control plane answers as its owner, held to its places, a maintainer's role
and what an autopilot may do.
Tried in the dev stack with a workspace's autopilot that ran people's
notes as commands (fake-claude now does that):

- `fctl projects create` without --workspace was refused: the relay now
  fills in the autopilot's own workspace.
- Its log said "Changed its description" for another project: lines name
  a project other than its home ("Changed playground's description"),
  and a project it created or changed shows as a card with its icon in
  the log and in its transcript. An archive alone no longer reads
  "Changed its archived it".
- A refusal now says what an autopilot never does.
- A resume wakes it as one ("Woke as it was resumed"), not as being put
  on, in its log, its message, its turns and its wake card.
- Reads no longer cost the relay a lookup for the log.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl/src/cmd/autopilot.rs Resolved
Comment thread crates/fctl-domain/src/autopilot.rs Resolved
Comment thread crates/fctl-control/src/api/sessions.rs Resolved
Comment thread crates/fctl-control/src/autopilots.rs Resolved
Comment thread crates/fctl-control/src/autopilots.rs Resolved
Comment thread crates/fctl-control/src/housekeeping.rs Resolved
Comment thread web/src/lib/needs.ts Resolved
fctl-sh Bot added 2 commits November 9, 2026 17:40
From fctl's review of 8d17562:

- `--powers all` means every power of the autopilot's scope: a
  project's autopilot no longer gets `projects`, which it refused.
- A caller held to places reaches only their workspaces in ws::load,
  GET /github and a workspace a request leaves out: an autopilot can't
  read its owner's other workspaces or their GitHub accounts.
- A message or a resume that sets one of its resting sessions working
  needs room under crew_max, as starting one does.
- Wakes and briefs mark seen only the notes and answers they showed.
- A wake carries on in a session at work, however old; a fresh session
  that replaces one stops it.
- An ask is claimed before its secret is stored, and opens again if
  storing fails.
- Closed asks go 90 days after the autopilot heard of them.
- One workspace's autopilot at a time, in the database too.
- Needs you counts the sessions of an autopilot that is paused or off.

Also: a person's `fctl autopilot wake` says it wakes now (and refuses
--in, which is the autopilot's), and a wake someone asked for reads
"Woke as someone woke it".
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/autopilots.rs Resolved
…ave with accounts

From fctl's review of 184cb5a:

- A secret people give an autopilot is stored in one transaction with
  the claim on its ask: both or neither, so no wake hears of a secret
  that isn't there, and a later answer stores nothing.
- An idle session that a message is about to set working counts towards
  how many work at once, so a burst of messages can't pass crew_max.
- A second workspace autopilot refused by its unique index is told so
  (409), by asking again: D1's errors don't say which constraint failed.

From fctl-site's review: people's lines in an autopilot's log store
"{who}" for them, which their current name replaces as the log is read,
and the reasons fctl pauses one say "its owner": a name no longer
outlives its account there. The CLI and the brief now name people once.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-domain/src/autopilot.rs Resolved
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/autopilots.rs Resolved
Comment thread crates/fctl-control/src/autopilots.rs Resolved
…eep what woke them

From fctl's review of 181a030:

- Putting an autopilot on again with --model default (or effort) clears
  what it had pinned, as set does.
- A workspace's autopilot's own session and brief are its admins': its
  tab shows others its sessions and log in the projects they see.
- A wake that fails once claimed puts what woke it back, for a retry in
  five minutes rather than at the next check-in.
- A direction set while a wake runs is reported at the next one.
- Resume only resumes one that is still paused.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/autopilots.rs Resolved
Comment thread docs/api.md Resolved
… autopilot's work is its admins'

A new power, merge (on by default): fctl's note on each session an
autopilot starts asks it to merge its own pull request once checks pass,
review findings are answered and the work is done, so that the next
piece of work builds on it; without it, to leave merging to people. The
autopilot's briefing says which, and how to hold one back or ask people.
Carl Oscar asked for agents that merge as they finish, to keep working
iteratively.

From fctl's review of 4ea3058: what a workspace's autopilot does (its
plan, notes, asks, sessions, log and brief) is for the workspace's admins
(AutopilotCan::read), in place of filtering each list, which left gaps:
others see that it runs, and how. A wake that keeps failing backs off 5,
15 and 60 minutes, each in its log, then pauses it, as a failing session
does.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl/src/cmd/autopilot.rs Resolved
From fctl's review of 88c3a8c:

- Putting a workspace's autopilot on again as a project's is refused:
  what it kept (plan, notes, asks, log, own sessions) reaches all the
  workspace's projects, and would open up to the project's members. The
  form no longer offers it.
- Who doesn't see what it does sees no pause reason either, and no count
  of its asks on the project's tab.
- `fctl autopilot` says what a reader who isn't an admin can't see,
  rather than an empty direction.
- The module doc says so too.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/workspaces.rs Resolved
fctl-sh Bot added 2 commits November 9, 2026 19:15
…g-about-having-a-project-wher

# Conflicts:
#	web/src/lib/needs.ts
@kalaspuff
kalaspuff merged commit beb5a9f into main Nov 9, 2026
13 checks passed
@kalaspuff
kalaspuff deleted the fctl/1040-i-m-thinking-about-having-a-project-wher branch November 9, 2026 19:38
kalaspuff pushed a commit to hyperstructure/design that referenced this pull request Nov 9, 2026
## Summary

A new page in the web app's design docs, *Autopilot*, describes how
fctl's autopilots (experimental: an agent that runs a project, or a
workspace, on its own) look and behave. It covers the project's
Autopilot tab (what putting it on does, the form, the header's states,
what it asks, steering, the rail and the log), how the autopilot shows
in its own session (wake cards, the sessions and projects it starts or
creates as live cards) and in the sessions it starts, its mark in lists
and *Needs you*, the edge cases, and how to check a change. The page
index links it.

It describes the web app as the fctl pull request below builds it; I
checked each part against that branch running in `cargo xtask dev`, in
both themes and at a phone's width. `npm run check` and `npm test` pass.

## Related

- hyperstructure/fctl#494
- hyperstructure/fctl-site#120

[fctl session](https://app.fctl.sh/s/ses_01M70EQ52E7JJ8V9X1PZHGNVCN)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Low risk.** It only adds a documentation page and a link to it, with
no code changes.
>
> **What it does.** Adds docs/web-app/autopilot.md, a design page
describing how fctl's experimental autopilots look and behave in the web
app: the project's Autopilot tab, its asks, steering, log, its own
session and the sessions it starts, and the edge cases. The docs README
links it. The latest commit adds that a workspace's autopilot that is
switched off and on again stays the workspace's, so the form doesn't
offer the choice of what it runs.
>
> **Merge power.** The page says autopilot sessions merge their own pull
requests once checks pass, unless that power is switched off.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M70VM6H9XJXMW6TV921X3RAK)'s first
look at
[`857ee6f`](857ee6f)
· 2 files, +236 −0 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
kalaspuff added a commit to hyperstructure/fctl-site that referenced this pull request Nov 9, 2026
…ng (#120)

## Summary

The privacy policy now says what fctl's autopilots (experimental: an
agent that runs a project, or a workspace, on its own) keep, who
receives it and how long it stays. An autopilot keeps its direction,
plan, powers and rhythm, people's notes, what it asks and the answers,
and a log of what it did. A secret it asks for goes into the project's
secrets and never into an ask, an answer or a transcript. What it reads
goes to the Claude account of the person who put it on, or took it over.
Project members see it. An ask goes 90 days after the autopilot heard
the answer or the refusal, or took it back, and the log keeps its newest
1,000 entries. Taking a project off autopilot keeps its direction,
notes, plan, log and open asks for when it's put on again. The policy's
date is now 9 November 2026.

It matches what the fctl pull request below stores and sends; `npm test`
and `npm run build` pass.

## Related

- hyperstructure/fctl#494
- hyperstructure/design#31

[fctl session](https://app.fctl.sh/s/ses_01M70EQ52E7JJ8V9X1PZHGNVCN)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Low risk.** It only changes the privacy policy text and its updated
date; the policy must match the fctl release that carries the autopilot
changes, which is not out yet.
>
> **What it does.** Adds autopilots to the privacy policy: what they
keep (direction, plan, notes, asks and answers, log), who receives it
(the Claude account of the person who put the project on autopilot), who
sees it (project members), how long it is kept, and what account
deletion leaves of it. Bumps the updated date.
>
> **Merge timing.** The description says the fctl change this policy
describes (hyperstructure/fctl#494) is merged but not yet in a release,
so this is best merged once that release reaches app.fctl.sh.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M70X5J26K590ACMBK71426GX)'s first
look at
[`6d1a4c7`](6d1a4c7)
· 1 file, +39 −4 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Carl Oscar Aaro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant