Update README.md
This commit is contained in:
1 parent
226e8ec760
commit
1ab6584bd9
1 file changed
+31
-1
@@ -1,6 +1,8 @@
|
||||
# Slackerbot
|
||||
|
||||
Talk to the bot in Slack, and your message goes to a [goose](https://github.com/block/goose) agent inside a `systemd-nspawn` container. The agent's reply streams back over ACP into a Slack thread. Replying in that thread continues the same session. One container serves all different sessions for a channel.
|
||||
Slackerbot is a meta-harness that handles users ACLs, sandbox management and session persistance accross system reboots.
|
||||
|
||||
Talk to the bot in Slack, and your message goes to a [goose](https://github.com/block/goose) agent inside a `systemd-nspawn` container. The agent's reply streams back over ACP into a Slack thread. Replying in that thread continues the same session. Different additional tools can be exposed to the agent depending on the user's access level. One container serves all different sessions for a channel.
|
||||
|
||||
- **One container per DM or channel.** DMs get a private container, and channels share one.
|
||||
- **Access Controls** different users may be given privillege access in certain channels, access is delegated by "manager users" via configuration or with the bot.
|
||||
@@ -8,6 +10,34 @@ Talk to the bot in Slack, and your message goes to a [goose](https://github.com/
|
||||
- **Managed from Slack.** Users can `scale`, `stop`, set idle timeouts with `keep`, resize `storage`, and `move` containers between nodes. Changes are limited by per-channel permissions.
|
||||
- **Scalable** A master runs the Slack bot, and slaves add capacity. New containers go wherever CPU, RAM and storage stay most even, and live migration moves a running container with only a short pause.
|
||||
|
||||
|
||||
## Top Level Design
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
slack([Slack]) <-->|Socket Mode| bot
|
||||
|
||||
subgraph master["Master host"]
|
||||
bot[bot] --> mgr[manager]
|
||||
bot <-->|ACP over WebSocket| acp[acp client]
|
||||
mgr --> local1[local node]
|
||||
mgr --> state[(state.json)]
|
||||
local1 -->|systemd-run + machined D-Bus| c1["nspawn: c-…<br/>goose serve :1984"]
|
||||
local1 -->|btrfs subvolume + quota| d1[(drives)]
|
||||
end
|
||||
|
||||
subgraph slave["Slave host (0..n)"]
|
||||
local2[local node] --> c2["nspawn: u-…<br/>goose serve :1984"]
|
||||
local2 --> d2[(drives)]
|
||||
end
|
||||
|
||||
acp -.->|direct| c1
|
||||
mgr <==>|"TLS WebSocket (slave dials out)<br/>calls · reports every 5s · agent relay · btrfs send/receive"| local2
|
||||
acp -.->|relayed over the link| c2
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Docs
|
||||
|
||||
| File | For |
|
||||
|
||||
Reference in new issue
Block a user