Skip to main content

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)

Source distribution for doeff-agents 0.1.2
File Size Uploaded
doeff_agents-0.1.2.tar.gz 64.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for doeff-agents 0.1.2
File Interpreter ABI Platform
doeff_agents-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page