doeff-agents
Agent session management for coding agents (Claude, Codex, Gemini) in tmux.
Installation
pip install doeff-agents
Quick Start
Python API
from doeff_agents import (
session_scope, monitor_session, send_message,
LaunchConfig, AgentType, SessionStatus
)
from pathlib import Path
config = LaunchConfig(
agent_type=AgentType.CLAUDE,
work_dir=Path("/path/to/project"),
prompt="Read the README and summarize the project",
)
# Context manager ensures cleanup on exit/exception
with session_scope("my-agent-session", config) as session:
while not session.is_terminal:
new_status = monitor_session(session)
if new_status:
print(f"Status changed to: {new_status}")
if session.status == SessionStatus.BLOCKED:
send_message(session, "Continue with the next step")
time.sleep(1)
CLI
# Launch an agent
doeff-agents run --agent claude --work-dir . --prompt "Fix the bug"
# List sessions
doeff-agents ps
# Attach to a session
doeff-agents attach my-session
# Stop a session
doeff-agents stop my-session
# Monitor a session
doeff-agents watch my-session
Features
- Tmux abstraction: Pythonic wrapper around tmux commands
- Adapter pattern: Protocol-based adapters for different agents
- Status monitoring: Detect agent state from pane output
- Session lifecycle: Create, monitor, send, capture, kill
- Async support: Both sync and async APIs
- Context managers: Safe cleanup on exceptions/cancellation
Supported Agents
- Claude Code (
claude) - OpenAI Codex (
codex) - Gemini CLI (
gemini)
License
MIT
Metadata
Release files for doeff-agents 0.1.2
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 |
|---|---|---|---|---|
| doeff_agents-0.1.2.tar.gz | 64.9 kB | Without provenance | Details for doeff_agents-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doeff_agents-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for doeff_agents-0.1.2-py3-none-any.whl |
Total release size: 113.5 kB
Release files / doeff_agents-0.1.2.tar.gz
| Download URL | doeff_agents-0.1.2.tar.gz |
|---|---|
| Size | 64.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c80c0656a40adb5365392f3d16388e8d3272bd213a626098a173115bee548285
|
|
BLAKE2b-256 checksum How to use checksums |
ee145813facdd2644fcb2f3b1ca3e253b638543d244db2653de8d64b57e631e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / doeff_agents-0.1.2-py3-none-any.whl
| Download URL | doeff_agents-0.1.2-py3-none-any.whl |
|---|---|
| Size | 48.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff7f3062997ca53858740e8975782bc4acd65b7aa5d5f89461581382e6305d3a
|
|
BLAKE2b-256 checksum How to use checksums |
0f8dd7f33abfc3aa9518798ca011a9d008f92ad2e982ae1390ec6020077c849e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for doeff-agents 0.1.2
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.