MixHub (Agent Session Hub)
"Runners change. The task runs on. — High-ROI daily workhorses meet top-tier masterminds, with lossless cross-agent handoff and universal mobile control."
A zero-dependency cross-agent workspace, lossless handoff engine, SSoT rules compiler, and universal mobile control bus (tmux + curses + local HTTP/Web UI) for Claude Code, Google Gemini (agy), OpenAI Codex, and DeepSeek.
Key Features
- Dual-Pane In-Place Live Workspace (
mixhub/hub/hub workspace)- Left 32-Column Sidebar: Displays all live and archived sessions with brand-colored state dots (
★pinned,●live,·dormant;●●dual brand dots for cross-agent relay sessions) and draggable split border (⋮). - Right 80% Dynamic Pane (
tmux -L hubpool):- Dormant sessions open instantaneously in a zero-RAM archive reader (
--reader) with sticky prompt headers,[/]user-turn jumping, and a right-edge turn minimap rail. - Pressing
Enteror→automatically releases any idle external session lock and attaches the live interactive CLI in-place inside the right pane.
- Dormant sessions open instantaneously in a zero-RAM archive reader (
- Left 32-Column Sidebar: Displays all live and archived sessions with brand-colored state dots (
- Cross-Agent 10-Section +
handoff.yamlDirectional Handoff & Write Fence (hub handoff <id> --to claude|agy|codex|deepseek [--mode auto|escalate|delegate|review])- Enforces a SQLite WAL
QUIESCING -> SOURCE_FENCEDwrite-lease fence (tasks,handoff_bundles,write_leases) withworkspace_epochtracking before starting a new writer. - Deterministically extracts both a structured
data/handoffs/<id>.yamlcontract (task,status,mode,repository,verified,unverified,failed_attempts) and a<2000 tokens10-section Handoff Bundle (data/handoffs/<id>.md). - 3-Mode Directional Filtering:
escalate(Weak/Daily -> Strong Mastermind): strips predecessor subjective narrative (de_anchored: true) to prevent anchoring on flawed paths.delegate(Mastermind -> Workhorse / Quota Relay): preservesdecisions_rationale,rejected_approaches,interface_contracts, andacceptance_criteria.review(Cross-Vendor Blind Review): strips developer self-justification (blind_review: true,status: ready_for_review) to prevent correlated blindness.
- Native
--provider deepseeksupport viacodex --no-daemon -c model_provider="deepseek".
- Enforces a SQLite WAL
AGENTS.mdSingle Source of Truth Bidirectional Compiler (hub sync-rules [dir])- Compiles project root
AGENTS.mdintoCLAUDE.md(with@AGENTS.md+ managed block) and.gemini/GEMINI.md(<!-- BEGIN HUB SYNC -->...<!-- END HUB SYNC -->) with--dry-rununified diff preview, SHA-256 tamper detection, andhub-policydigest approval guard.
- Compiles project root
- Agent-Agnostic Two-Way Bridge & Task-Level Topic Continuity (
hub notify)- Inbound (
send_to_session/handle_inbound_message): Routes messages and local multimodal image paths from Telegram Topics / Discord Threads / Slackthread_ts(/bind <id>,/use claude|codex|agy) to controlledtmuxpanes (tmux send-keys) or headless session resume (claude --resume <id> -p,codex exec resume <id>). - Outbound (
poll_outbound_replies): Monitors bound.jsonltranscripts (claude,codex,agy) with SQLite watermarks; replies exceeding 80 lines are automatically saved as.mdfiles and dispatched as document attachments (--file). - Cross-Agent Topic Continuity: Topic / Thread bindings attach to the task (
task_id); when handing off across agents (claude -> codex -> agy), the new session automatically inherits the bound Telegram Topic / Slackthread_ts/ Discordthread_idwithout dropping the conversation thread.
- Inbound (
- 100% ToS-Compliant Two-Tier Remote Architecture
- Zero OAuth Token Extraction: MixHub never reads, extracts, or proxies any third-party cloud OAuth token or subscription credential.
- Tier 1 (First-Party Native Remote Apps): Prioritizes Anthropic's official
claude --resume <id> --remote-control(Claude iOS App /claude.ai/code) and OpenAI's officialChatGPT.app/ ChatGPT Mobile App (hub codex-release-lock <id>). - Tier 2 (Official Hooks & Local Personal Bridge): Integrates via Claude Code's documented
Stop/Notificationhooks (~/.claude/settings.json) and Codex'snotifyhook (~/.codex/config.toml), with optional strict notify-only guard (enable_local_pty_input=False).
- Fable 5.1 Modular Protocols & Health Check (
protocols.py/hub doctor)- Defines the 4 narrow-waist
@runtime_checkableprotocols (Provider,Channel,Quirk,Theme) withsafe()fault isolation (3 consecutive plugin failures auto-degrade without crashing the kernel) and 90-daysunset/evaporate_whenQuirk audits.
- Defines the 4 narrow-waist
- Hybrid-Brain Cost & ROI Report Calculator (
cost_report.py/hub report)- Quantifies token and USD savings across local sessions using authoritative binary pricing tiers (
Claude Fable 5.1,Claude Opus 5.5,Gemini 4 Argon,GPT-6 Astra,GPT-6.1 Sol,DeepSeek V4 Pro), cumulative multi-turn context growth, and 5-minute active Cache TTL window refreshes ($5.00/1Mon Opus 5.5). - Practical 85/15 Hybrid Sizing Guidance: By routing
85%of high-frequency file reading, iteration, and test execution to daily workhorses (Argon,Sol,DeepSeek) and invoking top-tier masterminds (Opus 5.5,Fable 5.1,Astra) for the15%critical architecture and blind-review checkpoints via<2khandoff.yamlbundles, high-intensity developers typically require only~$15–$30/monthin top-tier API quota (or a base tier subscription) for full-month coverage. - Includes a restrained Claude Code-style 5-second ephemeral toast (
✦ Handoff 84.2k → 1.2k ctx (-83.0k tokens · ~$2.40 saved) · How was this handoff? [1] Great [2] Fine [3] Dismiss) and a reproducible 60-turn A/B benchmark (tests/test_handoff_ab.py).
- Quantifies token and USD savings across local sessions using authoritative binary pricing tiers (
- 5 Unified Semantic Channel Primitives Across Telegram, Discord, Slack & Feishu/Lark (
channels.py)- Exposes 5 cohesive cross-platform methods (
thinking,progress,brief,ask,handoff_notice) + first-classtyping_contextbreathing indicator (sendChatAction("typing")/assistant.threads.setStatus),<blockquote expandable>/ CardKit 2.0collapsible_panelcollapsible blocks,copy_textone-tap clipboard buttons, OpenAI Opus voice notes (sendVoice), and Slack Canvas sync.
- Exposes 5 cohesive cross-platform methods (
- Official Brand Vector SVGs & PUA Font Generator (
hub install-icons)- Web UI (
http://127.0.0.1:8765) renders authentic vector SVGs for Anthropic Claude, Google Gemini, and OpenAI Codex with stacked avatar badges for cross-agent relays and local time-of-day greetings. hub install-iconsgenerates~/Library/Fonts/HubIcons.ttf(\uE900-\uE902) whenfontToolsis available and gracefully falls back to brand-colored●.
- Web UI (
Quick Start
ln -sf ~/.gemini/session-hub/bin/hub ~/.local/bin/hub
ln -sf ~/.gemini/session-hub/bin/mixhub ~/.local/bin/mixhub
Commands
| Command | Description |
|---|---|
mixhub / hub / hub workspace |
Open the dual-pane in-place workspace (32-col left sidebar + right live/reader pane) |
hub tui |
Open the single-window TUI browser |
hub handoff <id> --to <agent> |
Fence source session and generate 10-section <2000 tok handoff bundle (claude|agy|codex|deepseek) |
hub sync-rules [dir] [--dry-run] |
Synchronize AGENTS.md (SSoT) with CLAUDE.md and .gemini/GEMINI.md |
hub notify [options] <message> |
Send plain-text notifications / mobile cards to Telegram, Discord, or Slack |
hub codex-release-lock <id> |
Release terminal Codex writer lock for instant ChatGPT.app / mobile takeover |
hub mobile-handoff <id> |
Switch session to NATIVE_EXTERNAL mobile control mode |
hub install-icons |
Generate HubIcons.ttf PUA vector font (\uE900-\uE902) or verify ● fallback |
hub doctor [--json] |
Run Fable 5.1 modular health check across Providers, Channels, Locks, and Quirks |
hub report [--format terminal|mobile|markdown|json] |
Calculate High-Low Brain Hybrid token & USD savings report |
hub anchor [id] |
Generate zero-token Markdown fact anchors from raw JSONL transcripts |
hub slim [--dry-run] |
Strip historical base64 screenshots (>7d) and expired subagent logs (>1d) |
hub web |
Open the local MixHub web workspace (http://127.0.0.1:8765) |
Running Tests
python3 -m unittest discover -s tests -v
Metadata
Release files for mixhub-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mixhub_cli-0.1.0.tar.gz | 174.5 kB | Without provenance | Details for mixhub_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mixhub_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mixhub_cli-0.1.0-py3-none-any.whl |
Total release size: 329.4 kB
Release files / mixhub_cli-0.1.0.tar.gz
| Download URL | mixhub_cli-0.1.0.tar.gz |
|---|---|
| Size | 174.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78778014f7ed23c943aba8e2cf58f3bc8df4e10d8de87c6ae1864b2e0a870dd4
|
|
BLAKE2b-256 checksum How to use checksums |
9310f38dba5265c39c18ae1cefdd0494ad9e497082c7cc05bf0c5b0471e59f64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mixhub_cli-0.1.0-py3-none-any.whl
| Download URL | mixhub_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 154.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9603f2afe9b19e5d6612f2dcfdf3fcd96974b3d15fd694606bfcf2782e07462f
|
|
BLAKE2b-256 checksum How to use checksums |
eac79e1749743874ac3eb5ff262a887188bac7cc6cb24a6aac59cf876f2ffb03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for mixhub-cli 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.