Universal human-in-the-loop control plane for AI developer agents — forward prompts to your phone, reply from anywhere
Project description
AtlasBridge
Universal human-in-the-loop control plane for AI developer agents.
AtlasBridge sits between you and your AI coding agent. Whenever your agent pauses and requires human input — approval, confirmation, a choice, or clarification — AtlasBridge forwards that prompt to your phone.
You respond from your phone via Telegram or Slack. AtlasBridge relays your decision back to the CLI. Execution resumes.
No walking back to your desk. No missed prompts. You stay in control.
┌──────────────┐ ┌───────────────┐ ┌─────────────────┐
│ AI Agent │──────► │ AtlasBridge │──────► │ Your Phone │
│ (Claude CLI) │ │ Prompt Relay │ │ (Telegram/Slack)│
│ │◄────── │ │◄────── │ │
└──────────────┘ └───────────────┘ └─────────────────┘
paused waiting detects & you reply
for input forwards prompt from anywhere
Install
pip install atlasbridge
# With Slack support:
pip install "atlasbridge[slack]"
Requires Python 3.11+. Works on macOS and Linux.
Quick start
Option A — Interactive Mode (v0.5.0+)
Run atlasbridge with no arguments in your terminal to launch the interactive control panel:
atlasbridge # auto-launches TUI when stdout is a TTY
atlasbridge ui # explicit TUI launch
The interactive UI guides you through setup, shows live status, and provides quick access to sessions, logs, and doctor checks — all in your terminal.
┌─ AtlasBridge ──────────────────────────────────────────────────────┐
│ AtlasBridge │
│ Human-in-the-loop control plane for AI developer agents │
│ │
│ AtlasBridge is ready. │
│ Config: Loaded │
│ Daemon: Running │
│ Channel: telegram │
│ Sessions: 2 │
│ Pending prompts: 0 │
│ │
│ [R] Run a tool [S] Sessions │
│ [L] Logs (tail) [D] Doctor │
│ [T] Start/Stop daemon │
│ [Q] Quit │
│ │
│ [S] Setup [D] Doctor [Q] Quit │
└─────────────────────────────────────────────────────────────────────┘
Option B — CLI commands
1. Set up your channel
Telegram (recommended for getting started):
atlasbridge setup --channel telegram
You'll be prompted for your Telegram bot token (get one from @BotFather) and your Telegram user ID (get it from @userinfobot).
Slack:
atlasbridge setup --channel slack
You'll need a Slack App with Socket Mode enabled, a bot token (xoxb-*), and an app-level token (xapp-*).
2. Run your AI agent under supervision
atlasbridge run claude
AtlasBridge wraps Claude Code in a PTY supervisor. When it detects a prompt waiting for input, it forwards it to your phone. Tap a button or send a reply — AtlasBridge injects your answer and the agent continues.
3. Check status
atlasbridge status
atlasbridge sessions
How it works
atlasbridge run claudewraps your AI CLI in a PTY supervisor- The tri-signal prompt detector watches the output stream
- When a prompt is detected, AtlasBridge sends it to your Telegram or Slack
- You tap a button or send a reply on your phone
- AtlasBridge injects your answer into the CLI's stdin
- The agent continues
AtlasBridge is a relay, not a firewall. It does not interpret commands, score risks, or block actions. It asks you — and only you — at the exact moment the agent needs human input.
Supported agents
| Agent | Command |
|---|---|
| Claude Code | atlasbridge run claude |
| OpenAI Codex CLI | atlasbridge run openai |
| Google Gemini CLI | atlasbridge run gemini |
Supported channels
| Channel | Status |
|---|---|
| Telegram | Supported |
| Slack | Supported (atlasbridge[slack]) |
Changelog
v0.5.2 — Production UI skeleton
- New
atlasbridge.uipackage: 6 screens with exact widget IDs,StatusCardscomponent,polling.py(poll_state()), and full TCSS atlasbridge/atlasbridge uinow launch the production UI skeleton (separate from the originaltui/package, which is preserved for compatibility)- WelcomeScreen shows live status cards when configured (Config / Daemon / Channel / Sessions)
- SetupWizardScreen navigates to a dedicated
SetupCompleteScreenon finish - 12 new smoke tests; 285 total
v0.5.1 — Branding fix + lab import fix
- All CLI output now shows "AtlasBridge" —
doctor,status,setup,daemon,sessions,run, andlabwere still printing "Aegis" / "aegis" atlasbridge lab list/runno longer crashes withModuleNotFoundErrorwhen installed from PyPI; now shows a clear message pointing to editable install
v0.5.0 — Interactive Terminal UI
atlasbridge(no args) — launches the built-in TUI when run in an interactive terminal; prints help otherwiseatlasbridge ui— explicit TUI launch command- Welcome screen — shows live status (daemon, channel, sessions) when configured; onboarding copy when not
- Setup Wizard — 4-step guided flow: choose channel → enter credentials (masked) → allowlist user IDs → confirm and save
- Doctor screen — environment health checks with ✓/⚠/✗ icons, re-runnable with
R - Sessions screen — DataTable of active and recent sessions
- Logs screen — tail of the hash-chained audit log (last 100 events)
- Bug fix —
channel_summarynow returns"none"when channels exist but none are configured - 74 new unit tests; 273 total
v0.4.0 — Slack + AtlasBridge rename
- Full Slack channel implementation (Web API + Socket Mode + Block Kit buttons)
- MultiChannel fan-out — broadcast to Telegram and Slack simultaneously
- Renamed from Aegis to AtlasBridge; auto-migration from
~/.aegis/on first run - Added
GeminiAdapterfor Google Gemini CLI
v0.3.0 — Linux
- Linux PTY supervisor (same
ptyprocessbackend as macOS) - systemd user service integration (
atlasbridge startinstalls and enables the unit) - 20 QA scenarios in the Prompt Lab
v0.2.0 — macOS MVP
- Working end-to-end Telegram relay for Claude Code
- Tri-signal prompt detector (pattern match + TTY block inference + silence watchdog)
- Atomic SQL idempotency guard (
decide_prompt()) - Hash-chained audit log
v0.1.0 — Design
- Architecture docs, code stubs, Prompt Lab simulator infrastructure
Status
| Version | Status | Description |
|---|---|---|
| v0.1.0 | Released | Architecture, docs, and code stubs |
| v0.2.0 | Released | macOS MVP — working Telegram relay |
| v0.3.0 | Released | Linux support, systemd integration |
| v0.4.0 | Released | Slack channel, MultiChannel fan-out, renamed to AtlasBridge |
| v0.5.0 | Released | Interactive terminal UI — setup wizard, sessions, logs, doctor |
| v0.5.1 | Released | Branding fix (Aegis→AtlasBridge in CLI output) + lab import fix |
| v0.5.2 | Released | Production UI skeleton — 6 screens, StatusCards, polling, TCSS |
| v0.6.0 | Planned | Windows (ConPTY, experimental) |
Design
See the docs/ directory:
| Document | What it covers |
|---|---|
| architecture.md | System diagram, component overview, sequence diagrams |
| reliability.md | PTY supervisor, tri-signal detector, Prompt Lab |
| adapters.md | BaseAdapter interface, Claude Code adapter |
| channels.md | BaseChannel interface, Telegram and Slack implementations |
| cli-ux.md | All CLI commands, output formats, exit codes |
| roadmap-90-days.md | 6-phase roadmap |
| qa-top-20-failure-scenarios.md | 20 mandatory QA scenarios |
| dev-workflow-multi-agent.md | Branch model, agent roles, CI pipeline |
Repository structure
src/atlasbridge/
core/
prompt/ — detector, state machine, models
session/ — session manager and lifecycle
routing/ — prompt router (events → channel, replies → PTY)
store/ — SQLite database
audit/ — append-only audit log with hash chaining
daemon/ — daemon manager (orchestrates all subsystems)
os/tty/ — PTY supervisors (macOS, Linux, Windows stub)
os/systemd/ — Linux systemd user service integration
adapters/ — CLI tool adapters (Claude Code, OpenAI CLI, Gemini CLI)
channels/ — notification channels (Telegram, Slack, MultiChannel)
cli/ — Click CLI entry point and subcommands
tests/
unit/ — pure unit tests (no I/O)
integration/ — SQLite + mocked HTTP
prompt_lab/ — deterministic QA scenario runner
scenarios/ — QA-001 through QA-020 scenario implementations
docs/ — design documents
Core invariants
AtlasBridge guarantees the following regardless of channel, adapter, or concurrency:
- No duplicate injection — nonce idempotency via atomic SQL guard
- No expired injection — TTL enforced in the database WHERE clause
- No cross-session injection — prompt_id + session_id binding checked
- No unauthorised injection — allowlisted identities only
- No echo loops — 500ms suppression window after every injection
- No lost prompts — daemon restart reloads pending prompts from SQLite
- Bounded memory — rolling 4096-byte buffer, never unbounded growth
Development
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -q
# Run a Prompt Lab scenario
atlasbridge lab run partial-line-prompt
# Lint and format
ruff check . && ruff format --check .
# Type check
mypy src/atlasbridge/
# Full CI equivalent (local)
ruff check . && ruff format --check . && mypy src/atlasbridge/ && pytest tests/ --cov=atlasbridge
Troubleshooting
Wrong binary in PATH?
atlasbridge version --verbose
This shows the exact install path, config path, Python version, and platform — useful for detecting stale installs or multiple versions.
atlasbridge: command not found after pip install
Ensure your Python scripts directory is on PATH:
python3 -m site --user-scripts # shows user scripts dir
# or for venv:
which atlasbridge
Config not found
atlasbridge doctor
Shows where AtlasBridge expects its config file. Run atlasbridge setup to create it.
Upgrading from Aegis?
AtlasBridge automatically migrates ~/.aegis/config.toml on first run. Your tokens and settings are preserved.
Contributing
See CONTRIBUTING.md. All contributions require:
- Existing tests to remain green
- New code to have unit tests
- Prompt Lab scenarios for any PTY/detection changes
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atlasbridge-0.5.2.tar.gz.
File metadata
- Download URL: atlasbridge-0.5.2.tar.gz
- Upload date:
- Size: 79.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4574b6e8be34c3209670246fa00132dfc08c7c2ecd3f9b74641c16282c86395
|
|
| MD5 |
cb67b024c5b3e011abfee0a3415b0587
|
|
| BLAKE2b-256 |
a78e636acd664fed77d4cc7a7e6cc4ec13d3a327d0e03ca8d4d1712a128844c6
|
File details
Details for the file atlasbridge-0.5.2-py3-none-any.whl.
File metadata
- Download URL: atlasbridge-0.5.2-py3-none-any.whl
- Upload date:
- Size: 102.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6c1d752db460e4e4d2f6644bec0ddce320c75ae928ff36b5750ea8c8ced7044
|
|
| MD5 |
083debe82331fa08c86a8948b00fa977
|
|
| BLAKE2b-256 |
0dd5de847e1c62c38a8f1384bdf51a9ba46c1ecce550e73d2433d9125e566236
|