Typer-based CLI for tmux-backed Codex orchestration sessions
Project description
tmux-orche
Modern tmux-backed Codex orchestration for persistent CLI sessions.
tmux-orche turns a one-off orch.py script into an installable Python CLI with a clean command surface, XDG-based configuration, and a reusable tmux + tmux-bridge backend for long-lived Codex orchestration sessions.
Features
- Installable
orchecommand built with Typer + Rich - Persistent tmux sessions instead of one-shot subprocess execution
- Fire-and-forget prompt submission with later inspection via the same session
- XDG-compliant config and state paths
- Compatible with the existing tmux +
tmux-bridgeorchestration model
Installation
Install with pip
From PyPI:
pip install tmux-orche
From a local checkout:
pip install .
Install with uv
As a tool:
uv tool install tmux-orche
From a local checkout:
uv tool install .
If you prefer a project environment instead of a global tool install:
uv pip install .
Install from source
git clone https://github.com/parkgogogo/orche
cd orche
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install .
After installation, the orche command should be available on your PATH.
Quick Start
Create or reuse a persistent Codex session:
orche session-new --cwd /path/to/repo --agent codex
Create a named session and bind a Discord channel for notifications:
orche session-new \
--cwd /path/to/repo \
--agent codex \
--name repo-codex-main \
--discord-channel-id 123456789012345678
Send a prompt into an existing session:
orche prompt --session repo-codex-main --prompt "analyze the test failures"
Check session status:
orche status --session repo-codex-main
Read the latest terminal output:
orche read --session repo-codex-main --lines 80
Type text without pressing Enter:
orche type --session repo-codex-main --text "focus on database queries first"
Send keys:
orche keys --session repo-codex-main --key Enter
orche keys --session repo-codex-main --key Escape --key Enter
Interrupt the running task:
orche cancel --session repo-codex-main
Close the session window:
orche close --session repo-codex-main
Commands
| Command | Description | Key Options |
|---|---|---|
orche backend |
Print the active backend type. | None |
orche session-new |
Create or reuse a persistent Codex session. | --cwd, --agent, --name, --discord-channel-id |
orche prompt |
Send a fire-and-forget prompt to an existing session. | --session, --prompt |
orche status |
Show resolved pane, cwd, running state, and session metadata. | --session |
orche read |
Read recent pane output through tmux-bridge. |
--session, --lines |
orche type |
Type text into the session without submitting it. | --session, --text |
orche keys |
Send one or more key presses to the session. | --session, --key |
orche cancel |
Send Ctrl-C to the active session. |
--session |
orche close |
Kill the tmux window and remove local session metadata. | --session |
For built-in help:
orche --help
orche session-new --help
orche prompt --help
Configuration
tmux-orche follows the XDG Base Directory convention.
Config file:
~/.config/orche/config.json
State directory:
~/.local/share/orche/
Typical state files include:
meta/<session>.jsonfor per-session metadatahistory/<session>.jsonlfor local action historylocks/<session>.lockfor session coordinationlogs/orche.logfor runtime event logging
The runtime config file stores fields such as:
- active
session - resolved
discord_session codex_turn_complete_channel_id- current
cwd,agent, andpane_id
Requirements
orche depends on these external tools being installed and available:
tmuxtmux-bridgecodexCLI
Python requirements:
- Python
3.9+
The backend expects:
- tmux can create and manage persistent windows
tmux-bridgecan resolve, read, type, and send keys to panescodexcan be launched inside tmux with--no-alt-screen
Backend Model
The workflow is intentionally simple:
session-newcreates or reuses a named tmux-backed Codex session.promptsubmits work into that existing session and returns immediately.statusandreadinspect the live session later.type,keys,cancel, andcloselet you continue steering the same session.
This keeps the orchestration stateful without forcing the CLI itself to stay attached.
License
MIT
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 tmux_orche-0.0.1.tar.gz.
File metadata
- Download URL: tmux_orche-0.0.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c876b169ebbd534d833774b4ae914c6cf62500346226725170cbcc27e9d5f52e
|
|
| MD5 |
df6d542f0638505dd3a5b6fa72fda5bf
|
|
| BLAKE2b-256 |
5a6fba2e5dd9cc97020d1f719535db7681810f0d731e61b100387a258d65d79b
|
Provenance
The following attestation bundles were made for tmux_orche-0.0.1.tar.gz:
Publisher:
publish.yml on parkgogogo/orche
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tmux_orche-0.0.1.tar.gz -
Subject digest:
c876b169ebbd534d833774b4ae914c6cf62500346226725170cbcc27e9d5f52e - Sigstore transparency entry: 1204517112
- Sigstore integration time:
-
Permalink:
parkgogogo/orche@9e5dad5f829f12b4837b345f7544cb0914918006 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/parkgogogo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e5dad5f829f12b4837b345f7544cb0914918006 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tmux_orche-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tmux_orche-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeacf7000502c5cfb230fac688b95d68fa48c4d1467b88ce254df7eb7af181c5
|
|
| MD5 |
44c139ecc0ce30c5753fcd65755664c5
|
|
| BLAKE2b-256 |
778741eeb884f60174ce35630cf0688d9625db74733703503fd0a6375bed9b95
|
Provenance
The following attestation bundles were made for tmux_orche-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on parkgogogo/orche
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tmux_orche-0.0.1-py3-none-any.whl -
Subject digest:
eeacf7000502c5cfb230fac688b95d68fa48c4d1467b88ce254df7eb7af181c5 - Sigstore transparency entry: 1204517115
- Sigstore integration time:
-
Permalink:
parkgogogo/orche@9e5dad5f829f12b4837b345f7544cb0914918006 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/parkgogogo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e5dad5f829f12b4837b345f7544cb0914918006 -
Trigger Event:
push
-
Statement type: