Repository navigation
feat(autopilot): pass screenshots on to its sessions as published links - #516
Merged
kalaspuff merged 2 commits intoNov 11, 2026
Merged
Conversation
An autopilot can't attach files to its sessions' tasks or messages (the API refuses it uploads), and its sessions see only what it writes them. Where the project publishes screenshots, its ~/AGENTS.md now tells it to publish one with fctl publish and put the link in the task or message, instead of the section on screenshots in pull requests, which it doesn't open.
This comment has been minimized.
This comment has been minimized.
kalaspuff
approved these changes
Nov 11, 2026
kalaspuff
deleted the
fctl/1169-autopilot-sessions-should-know-that-in-o
branch
November 11, 2026 23:08
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
An autopilot had no way to pass a screenshot on to one of its sessions: its sessions see only what it writes them, and the API refuses it attachment uploads, so
fctl run --attachandfctl send --attachfail for it. Where the project publishes screenshots, an autopilot's own session now gets a "Screenshots for your sessions" section in its~/AGENTS.mdin place of "Screenshots in pull requests" (it opens none): publish the image withfctl publish, put the link in the session's task or afctl sendmessage, say what it shows, and tell the session to download it to look at it. It also mentions that the same Markdown shows a screenshot to people infctl autopilot ask --detail. The architecture docs andllms.txtsay so too.Verified with a unit test of the rendered
~/AGENTS.md(an autopilot with and without publishing) andcargo xtask check --quick.Worth confirming
~/AGENTS.md, which fctl-agent writes only when the project publishes screenshots and the sandbox's fctl hasfctl publish, rather than in its briefing. So an autopilot in a project that doesn't publish screenshots hears nothing of it, and it reaches autopilots once their runners' hosts run this release.--attachneeds a protocol change, which Let an autopilot attach files to the sessions it starts #517 tracks as a follow-up.fctl session
Note
Low risk. It only changes the text of the instructions file an autopilot's own session gets, and only where the project publishes screenshots.
What it does. An autopilot's session now gets its own screenshots section in
~/AGENTS.md: it says the autopilot can't attach files to the sessions it starts, so it should publish a screenshot withfctl publishand put the link in the session's task or message. Other sessions keep the existing pull request wording. The supervisor sets a newautopilotflag from the session spec, and the architecture docs andllms.txtdescribe it.fctl review's first look at
73833e4· 4 files, +77 −7 · Review agent settings