Repository navigation
docs(web-app): the Integrations tab, and starting agents from Slack - #83
Open
fctl-sh[bot] wants to merge 3 commits into
Open
fctl-sh[bot] wants to merge 3 commits into
fctl-sh[bot] wants to merge 3 commits into
Conversation
GitHub, Linear and Slack share one Integrations tab on the workspace page. Slack's page leads with what agents read there; its intro, preview, choices and channel picker, and Slack in Settings, Notifications, projects' settings, sessions and Admin, are described with the reasons behind them.
This was referenced Nov 26, 2026
This comment has been minimized.
This comment has been minimized.
…lack link rule Integrations replaced the GitHub and Linear tabs everywhere the pages listed or counted them. The tiles' paragraph lists every state the code gives (Slack's no-app and no-events ones included) and which tile shows where; Slack's links are described as slackHref allows them; and Slack's thread joins the made-up world's previews.
Contributor
Author
|
Both findings in the review's summary were right, and 04c82e3 fixes them:
|
This comment has been minimized.
This comment has been minimized.
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Dec 1, 2026
## Summary
A workspace now connects a Slack workspace, and people there start and
steer its agents from Slack: by mentioning fctl in a channel, writing to
it in its messages (Slack's agent view), `/fctl <task>`, **Send to
fctl…** on any message, or **Start a session** on its Home tab. Each
session runs as the person who asked, on their Claude subscription, once
they link their Slack account (one link per Slack workspace, so someone
in several has several). fctl posts the session's card in the thread and
keeps it current (status, plan, pull request and checks), replies with
each turn's last message (streamed into direct messages), asks the
agent's questions with a button per answer, passes replies from people
who may message the session on to the agent, and Slack's stop button
interrupts the turn. People can get their notifications as direct
messages, and projects can post chosen events to a channel. All three of
the issue's phases are in; phase 3 is a workspace's choice to drop what
Slack's messages said from transcripts once a session ends.
Agents never hold a Slack token: `fctl slack
thread|read|history|search|reply` goes through the control plane, which
checks each conversation with Slack and lets agents read only their
session's own thread (in a channel, a private channel or a direct
message) and the public channels the workspace's admins made readable,
where the project reads them: never anyone's direct messages with fctl,
other messages of private channels, or Slack Connect channels. Each
workspace chooses what it allows on Slack's page of a new
**Integrations** tab, which now also holds GitHub and Linear (their old
addresses lead there): mentions, direct messages, which channel starts
sessions in which project, readable channels and search, agents' own
replies, notifications, project events, knowing people by their address
(only where the instance's admins allow it) and keeping Slack's words in
transcripts. Enterprise Grid org-wide installs, Slack Connect channels
and Slack's guests are refused, and the docs say they aren't supported
yet. A Slack link keeps how the browser that made it signed in, as
access tokens do, and what people ask in Slack is held to it: a
workspace's Google requirement (fctl#659) and the instance's sign-in
rules apply, signing out everywhere unlinks it, and an address match
meets no rule, as Carl Oscar Aaro chose.
- **Verified** with unit tests (fctl-domain's Slack module, the control
plane's D1 side, the web app's components), `cargo xtask check`, and end
to end in `cargo xtask dev` against a new stand-in for Slack
(`xtask/slack`, driven with `cargo xtask slack …`), which checks every
call fctl makes against Slack's documented limits: mentions in public
and private channels, direct messages, replies from linked and unlinked
people, a guest, a Slack Connect channel, questions and answers,
`/fctl`, the Home tab, stop, and agents reading a readable channel,
being refused another, and searching. That run found the Home tab's
malformed `views.publish`, fixed here. `cargo xtask dev --smoke` now
also mentions fctl in Slack and opens its Home tab.
- **Deploying:** migration 0078 and a new Durable Object class,
`SlackObject` (Socket Mode; wrangler migration v7). app.fctl.sh needs
its Slack app created from the manifest (**Admin → Slack**, or `fctl
admin slack --manifest yaml`), then `SLACK_CLIENT_ID`,
`SLACK_CLIENT_SECRET` and `SLACK_SIGNING_SECRET` as Cloudflare secrets;
`SLACK_APP_TOKEN` (Socket Mode) is only for instances Slack can't reach.
Agents get `fctl slack` with the release after this merges, through the
sandbox image; an agent whose sandbox's fctl lacks it is told that its
turns' last messages and `fctl ask` reach the thread all the same.
- **The router** now tries its routes in two halves, one after the
other. Unoptimized, as `cargo xtask dev` builds the Worker, its frame
kept a slot for every route's future (742 KB on main), and Slack's
routes pushed a password hash under it past the Worker's 1 MiB stack
("memory access out of bounds" at setup). The deepest frame is now 414
KB.
The decisions are recorded in ADR 0104, and docs/slack.md documents it
for people, with docs/self-hosting.md's manifest kept equal to fctl's by
a test.
## Screenshots
At the head of this branch, in `cargo xtask dev` against the Slack
stand-in, 1440 px wide unless they say otherwise.
The workspace page: GitHub and Linear had a tab each (before);
Integrations now holds them with Slack, each saying how it stands
(after).
| Before | After |
|---|---|
| 
| 
|
Slack before a workspace connects it: what it leads to, what agents read
and never reach, and a drawn thread (dark and light).


Connected: what agents read there, first, then the workspace's choices
(light and dark, the whole page).
| Light | Dark |
|---|---|
| 
| 
|
On a phone (390 px): connected, and the intro.
| Connected | Intro |
|---|---|
| 
| 
|
A project's settings under Slack: whether its agents read the readable
channels, and the channel its events go to, with the line it posts.

Settings → Slack (your Slack accounts) and Settings → Notifications
(Tell me in Slack, with the direct message drawn).


A session started in #web-team: the question asked there, the answer
clicked in Slack with who and where, fctl's replies as notices, and
Slack in the details rail.

Admin → Slack: the app's state, the addresses Slack calls, the manifest,
where it's installed, and knowing people by their address.

## Worth confirming
- **Decision:** Phase 3 is a choice each workspace makes under
Transcripts: keep what Slack's messages said (the default, on
app.fctl.sh too), or drop it once a session ends, from the transcript
and the search index, keeping who wrote what where with its link. The
session's encrypted snapshot keeps its agent's conversation until the
session is deleted, and nothing reads Slack zero-copy.
- **Decision:** Knowing people by their verified address in Slack,
instead of a link, needs the instance's admins to allow it (off by
default, so app.fctl.sh knows people only by linking) and each workspace
to turn it on.
- **Decision:** A project's agents read the workspace's readable
channels unless its maintainers turn that off, since the workspace's
admins chose those channels for agents to read.
- **Decision:** Slack's guests (single- and multi-channel) can't start
or steer sessions; fctl tells them so in a message only they see, as it
does in Slack Connect channels.
- **Decision:** fctl takes nothing from a conversation it can't see (a
private channel it isn't in, someone else's direct messages), since it
can't tell whether that one is shared with another organization: **Send
to fctl…** on a message there is refused, with how to invite fctl, and
`/fctl` there starts the session in the person's direct messages with
fctl.
- **Decision:** Where a session's thread stops taking posts (fctl was
removed from the channel, or it was archived), the agent's replies and
questions go to the direct messages of the person who asked, saying why,
rather than nowhere.
- **Assumption:** The networks an instance limits sign-ins to (fctl#657)
hold people's own sign-ins and tokens, not Slack's requests, as with
Linear's: a mention from outside them, on a phone say, still starts a
session as its linked person.
- **Assumption:** A session started in someone's direct messages with
fctl is visible in fctl to its project's members, as every session is
(fctl has no private sessions). What stays private is the conversation
in Slack: only its writer moves the session on there, and no agent reads
anyone's direct messages with fctl.
- **Assumption:** app.fctl.sh's Slack app stays out of Slack's
Marketplace for now. Slack then lets it read threads and channels once a
minute, 15 messages at a time, and offers it no Real-time Search, so
agents there search the readable channels' history instead; self-hosted
instances' apps are internal and have neither limit.
## Related
- hyperstructure/design#83
- hyperstructure/fctl-site#143
Fixes #620
[fctl session](https://app.fctl.sh/s/ses_01M8AF162KS3K6ZSDMM27AZA1K)
<!-- FCTL_REVIEW_SUMMARY -->
---
> [!WARNING]
> **High risk.** It adds a new way to sign in as a person and start
agents on their subscription, new stored data (migration 0078) and a new
Durable Object class, and it reshapes the router that every request goes
through.
>
> **What it does.** Lets people start and steer a workspace's agents
from Slack by mention, direct message, `/fctl`, a message shortcut or
the Home tab. Sessions run as the person who linked their Slack account,
fctl keeps the session's card and replies in the thread, and agents read
Slack only through `fctl slack` calls that the control plane checks. It
adds an Integrations tab for each workspace's Slack choices, admin setup
for the Slack app, and ADR 0104 with docs.
>
> **Deploy steps.** Migration 0078 and the new `SlackObject` Durable
Object (wrangler migration v7) ship with it, and app.fctl.sh needs its
Slack app created and `SLACK_CLIENT_ID`, `SLACK_CLIENT_SECRET` and
`SLACK_SIGNING_SECRET` set as secrets.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M8PBVNS65TX5A9QMZ4V64T0J)'s first
look at
[`2e7eccb`](2e7eccb)
· 213 files, +32146 −219 · [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: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
This branch has not been deployed
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
fctl's workspace page now has one Integrations tab for GitHub, Linear and Slack, and workspaces can start and steer agents from Slack (hyperstructure/fctl#660). These pages describe that for whoever builds the next component: "Connecting GitHub and Linear" becomes "Integrations: GitHub, Linear and Slack", with the tiles and why they share a tab, Slack's intro, its drawn thread, the connected page that leads with what agents read, its choices and channel picker, and Slack in Settings, Notifications, projects' settings, sessions and Admin, each with its reasons. The page on lists and pages, and the index, point there.
Written from the code and screenshots of that pull request, with every quoted string checked against it.
fctl session
Note
Low risk. It only changes design documentation: three markdown files. Nothing in the package's code, tokens or exports changes.
What it does. Rewrites the design docs' section on connecting GitHub and Linear as "Integrations: GitHub, Linear and Slack", to match fctl's new workspace Integrations tab (hyperstructure/fctl#660). It describes the tiles and their states, Slack's intro and drawn thread, the connected page, its choices and channel picker, and where Slack shows up in settings, notifications, projects, sessions and Admin. The lists-and-pages page, the tab counts and the docs index now point to it.
Anchor rename. The heading "Connecting GitHub and Linear" becomes "Integrations: GitHub, Linear and Slack", so its anchor changes; links within this repository were updated, but links from the fctl repositories would need checking.
fctl review's first look at
762cd03· 3 files, +133 −21 · Review agent settings