
Watch it work
How it works
- Your Slack message or reaction
- Your Slack app
- T3 thread
- Link in Slack
Workflows
Start a thread from Slack
On with the packYour own Slack message or reaction with your trigger emoji (default :t3code:), or a mention of your Slack app starts a T3 thread, and Slack shows you its link. With the context library of the Memory pack on, your :brain: reaction saves the thread to your notes.
Read before you turn it on
Your Slack messages and the threads they belong to become agent prompts. Only your own messages, reactions, and mentions start a thread.
What it costs
You need your own Slack app, which you make from a manifest in a few minutes. One small process stays connected to Slack.
Know before you turn it on
Your Slack messages and the threads they belong to become agent prompts. Only your own messages, reactions, and mentions start a thread, and the prompt treats the rest of the Slack thread as data.
Settings4 settings that your agent asks about
slack.userIdWhat is your Slack member ID, so only your own messages start threads? In Slack, open your profile, then More, then Copy member ID.slack.emojiWhich Slack emoji starts a thread? Give its name, such as eye or +1.Default:t3codeslack.captureEmojiWhich Slack emoji saves a message and its thread to your context library? Give its name, such as brain. It works while the context library of the Memory pack is on.Default:brainslack.nodesWhich nodes start the threads that Slack asks for, as SSH names separated by spaces, such as devbox-1 devbox-2? Hedge takes them in turn. Leave it empty to start them on the hub, or on a box while Boxes is on.
Add Slack to your Hedge
Paste this prompt into a T3 Code thread on a machine that runs Hedge.
Your install prompt
Add this Hedge pack to my setup with me: Slack. Hedge runs on my hub and my nodes in the cloud, not on my Mac. Run each command of this prompt on the hub, over SSH with the `PATH` line of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md when you run elsewhere. Install nothing from Hedge here. Ask me each choice with your question tool, and run every command yourself. 1. Find my hub. List my cloud boxes as step 1 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md does, and run `hedge hub status` over SSH on each one that runs, until one names the hub. Do not ask a `hedge` on this Mac: an earlier setup can leave one here. The name after "The hub:" is the SSH name of the hub. In each SSH command of a note, put that whole name in place of the host that holds `<hub>`. When every box prints "The hub: not named", or no box runs Hedge, I have no hub yet. Tell me, and offer to set one up first with steps 5, 7, and 9 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md. To make a box that already runs Hedge the hub, skip step 5 for it. 2. Run `hedge update` on the hub, so it has the newest engine and packs. Then run `hedge packs` there, and leave out each pack that is already on. 3. Read the setup note of each pack. Ask me what it asks, and collect the flags that it names. Where a note names "the setup command" or "the command in item 2 of step 9", use the `hedge packs` command of this prompt. Do not run a step that a note puts after that command yet. - Slack: ~/.local/share/hedge/engine/packs/slack/SETUP.md 4. Turn the packs on with one command on the hub, and add the flags that the notes name: hedge packs --add slack 5. Do the steps that each note puts after the command. 6. Run `hedge doctor` on the hub, and explain each line. Do each `To do:` line with me, and say what a sign-in is for before it opens. 7. My nodes take the change at their next `hedge update`. To give it to one now, run `hedge update` there.