personal-slack-agent
Setup | How It Works | Commands | Configuration | Publishing | Latest GitHub Release
personal-slack-agent is a local Slack-to-Codex bridge. It runs a background
agent named Bob on your machine, watches approved Slack conversations, starts
or resumes local Codex sessions, and posts status plus results back into Slack
threads.
Why Bob Exists
Some company environments restrict direct integrations between AI coding tools and internal messaging systems. A team may not be able to install a Slack app, grant OAuth scopes to a hosted connector, expose internal messages to a third party service, or run a cloud bot that talks to Codex on the user's behalf.
Bob is built for that constraint. Instead of acting as a hosted Slack app, Bob runs locally beside Codex and uses a browser-authenticated Slack Web session that the user already controls. Work still happens on the user's machine, while Slack becomes the coordination surface: prompts, progress, waiting states, approvals, and final answers remain visible in the approved company messaging system.
The goal is not to replace Codex. The goal is to make Codex work trackable from Slack when Slack is where the team already coordinates.
What Bob Does
- Watches configured Slack channels or explicitly allowed runtime conversations.
- Accepts messages that invoke a configured Slack callsign such as
Boborbob. - Starts a new local Codex session for a new Slack thread.
- Resumes the same local Codex session when someone replies in that thread.
- Posts working, waiting, approval, error, and final messages back to Slack.
- Lets terminal-originated requests use the same Slack-thread-backed workflow.
- Keeps per-channel memory policy explicit so shared channels do not update personal durable notes by accident.
How It Works
At a high level:
- Bob attaches to a local Chrome session that is already logged into Slack.
- Bob watches Slack Web realtime events and targeted Slack Web API responses.
- When an allowed user invokes Bob, Bob creates or resumes local Codex work.
- Bob posts lifecycle updates and final output back into the Slack thread.
The Slack thread is the human-readable work log. The local state database maps Slack threads to Codex session ids so later Slack replies can continue the same conversation.
For a deeper architecture walkthrough, see docs/how-it-works.md.
Current Status
The project is functional but still experimental.
Working pieces include:
- package install and CLI entry points
- config generation and validation
- background watcher loop
- websocket-first Slack event detection
- targeted Slack API hydration for channel roots and thread replies
- thread/session mapping to local Codex sessions
- thread reply resume for existing sessions
- waiting-state reminders and auto-close handling
- manual
<callsign> closethread closure with later resume support - cleanup of obsolete waiting prompts after resolution
- local process control with
bobctl start|stop|restart|status|tail-log|show-config|doctor - GitHub Actions CI, generated GitHub Releases, manual TestPyPI publishing, and PyPI publishing from generated release artifacts
Current constraints:
- macOS only
- Chrome or Chromium required
- Slack integration uses Slack Web realtime sockets plus browser-session-backed Slack Web requests, not an official Slack app install
- broad Slack message edit/delete flows are still limited beyond targeted waiting-prompt cleanup
- browser/web request behavior may need adjustment if Slack changes private web client APIs or websocket behavior
Quick Start
Install Bob from PyPI:
python3 -m venv .venv
.venv/bin/python -m pip install -U pip
.venv/bin/python -m pip install personal-slack-agent
Generate local config:
.venv/bin/bob-init
Start Bob:
.venv/bin/bobctl start --config ~/.config/personal-slack-agent/bob.toml --poll-interval-seconds 10
Trigger Bob from Slack with a configured callsign:
Bob, summarize this repo
Changing defaults.assistant_names only changes Slack-facing callsigns and
reply labels. The local command names remain fixed: bob, bobctl,
bob-agent, and bob-init.
For Chrome setup, Slack auth discovery, config review, and smoke testing, use docs/setup.md.
Docs
- Setup guide: install, Chrome setup, first config, smoke test.
- How it works: motivation, architecture, and message flow.
- Config guide: field-by-field
bob.tomlreference. - Command reference:
bob,bob-agent,bob-init, andbobctl. - Development guide: editable install and test commands for repo work.
- Publishing guide: GitHub Releases, TestPyPI, PyPI options, and package exposure.
- Slack client findings: implementation notes from Slack Web inspection.
- Sample config: committed anonymized config template.
Security Notes
slack_api_tokenis sensitive and should not be committed.- Do not publish personal
bob.tomlfiles. - Do not share the Chrome profile used for Slack browser auth.
- Treat GitHub Releases, TestPyPI, and PyPI as public distribution channels.
- Published Python wheels contain readable
.pysource files.
Project Layout
src/personal_slack_agent/: package sourcetests/: automated testsconfig/bob.sample.toml: anonymized sample configdocs/: setup, operation, architecture, and publishing docs.github/workflows/: CI, release, TestPyPI, and PyPI workflowspyproject.toml: package metadata
Development Setup And Testing
Use an editable install when working from a repo checkout:
python3 -m venv .venv
.venv/bin/python -m pip install -U pip
.venv/bin/python -m pip install -e '.[dev]'
Run the full test suite:
.venv/bin/python -m pytest -q
For more repo-development notes, see docs/development.md.
License
This project is licensed under the MIT License. See LICENSE.
Metadata
Release files for personal-slack-agent 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| personal_slack_agent-0.1.18.tar.gz | 131.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| personal_slack_agent-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 215.3 kB
Release files / personal_slack_agent-0.1.18.tar.gz
| Download URL | personal_slack_agent-0.1.18.tar.gz |
|---|---|
| Size | 131.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83771836764038c907aa48653f7d01ad3bb341aa4626fd313330aefcb2322ce1
|
|
BLAKE2b-256 checksum How to use checksums |
abef8e282b943c18e53864e3772d00de0303b4c6565a48a721d842806ee9b2a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logRelease files / personal_slack_agent-0.1.18-py3-none-any.whl
| Download URL | personal_slack_agent-0.1.18-py3-none-any.whl |
|---|---|
| Size | 83.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f32af8490c0a27cc94e2b39d0240bafa7d12d35327b7c3679974729595ba865d
|
|
BLAKE2b-256 checksum How to use checksums |
ef86a7d7d0057bd0bac0cb0b60c5eb934603410afe6d9a3f7b2d55f1644aa69c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency log