Repository navigation
feat: put a project on autopilot (experimental) - #494
Merged
kalaspuff merged 20 commits intoNov 9, 2026
Merged
Conversation
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.
This was referenced Nov 9, 2026
This comment has been minimized.
This comment has been minimized.
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".
This comment has been minimized.
This comment has been minimized.
…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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…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.
This comment has been minimized.
This comment has been minimized.
… 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.
This comment has been minimized.
This comment has been minimized.
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.
This comment has been minimized.
This comment has been minimized.
…g-about-having-a-project-wher # Conflicts: # web/src/lib/needs.ts
…s only, in workspace lists too
kalaspuff
approved these changes
Nov 9, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
fctlthere sends each request through its own session (fctl-agent and the host pass it on asAgentCall::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.fctl autopilotfor 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.fctlcommand, to try what an autopilot may do.cargo xtask check --quickpasses. Incargo 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.
Its plan ticking off, its sessions live, and its log, with a divider for each wake.
Its own session: a card for each wake with what woke it, and each session it started as a live card.
A session it started: its task in the autopilot's name, with fctl's note of who started it under a hairline.
A workspace's autopilot creating a project, in its own session.
The tab before a project goes on autopilot, and the form that puts it on, with merging among its powers.
The tab on a phone.
Related
Worth confirming
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.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