Skip to content

add a shared agent to Slack as an app of its own, and talk to it in DMs - #387

Open
hkonsti wants to merge 3 commits into
hkonsti/agent-sharingfrom
hkonsti/slack-apps
Open

hkonsti wants to merge 3 commits into
hkonsti/agent-sharingfrom
hkonsti/slack-apps

Conversation

@hkonsti

@hkonsti hkonsti commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Agents in Slack, behind the slack experiment: an owner links a Slack workspace, adds a shared agent to it as a Slack app of its own, and members talk to it in DMs. Second of a stack of three; based on the agent sharing PR.

  • Workspace and apps. An owner links a workspace with an app configuration token, kept encrypted and rotated before it expires. A shared agent is added from a card in its settings pane: its app is made from a manifest through Slack's manifest API and installed through OAuth, and the card says whether it's added, installed, needing an update or removed. An agent in Slack stays shared, and deleting one removes its app first.
  • Inbound. A Slack user the organization doesn't know gets a link to confirm who they are (unlinked from the Account page). After that, a message at the top of the DM opens a thread of their chat with the agent that lives in Slack, and a reply in the Slack thread is their reply in it. Each Slack message is taken up once.
  • Outbound. A sweep claims each thread's place in Slack and posts what its member would read there since the last time (the agent's answers, its updates, a failure, an alert that fired), in order and once, with retries, rate limits and long messages split. Sub-agents are left out. Slack's own session status shows where the thread stands (processing, suspended while it waits for the member, active once done), and the session takes the thread's title.

What a member reads in a thread, and where a thread stands, are now one rule each, shared by the page, the Chat connection and Slack. Migrations v078–v080 add the Slack workspace, app, member link, message and thread place tables. Docs: agents/slack.mdx.

…it as a Slack app of its own, behind the slack experiment

An owner links a workspace with an app configuration token, kept encrypted and rotated before it expires. A shared agent is added from a card of its settings pane: its app is made from a manifest through Slack's manifest API and installed through OAuth, and the card says where it stands: added, installed, needing an update, or removed. An agent in Slack stays shared, and deleting one removes its app first. Nothing reads what members write to an app yet.
…ad that lives in Slack alone, once they have confirmed who they are

A Slack user the organization doesn't know is sent a link to confirm who they are, and unlinks on the Account page. From then on a message at the top of the DM opens a thread of their chat with the agent, with its place in Slack, and a reply in the Slack thread is their reply in it, each Slack message taken up once. The app neither lists, finds nor writes to such a thread; its record in the Chat connection says where it lives and links there, as an alert set in it does on the Alerts page. Nothing is posted back to Slack yet.
…r, once, and show where the thread stands with Slack's own session status and title

A sweep claims each thread's place in Slack and posts what its member would read there since the last time: the agent's answers, what it tells them as it goes, a failure, an alert that fired as one line. Sub-agents are left out; the session shows the thread at work while they run. The session is processing while the thread is in progress or asleep, suspended while it waits for the member, and active once it is done or watching, and takes the thread's title once a small model has written it. What a member reads in a thread, and where a thread stands, are each one rule now, shared by the page, the Chat connection and Slack.
@hkonsti
hkonsti added this pull request to stack #389 November 25, 2026 22:54

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant