Handoff

Handoff is an open-source CLI-based agent orchestration harness developed by dazuiba. Distributed as a Python package, it is designed to manage, coordinate, and monitor delegated subagent tasks across automated developer workflows. In daily operations, developers interact with Handoff through its terminal command-line interface (`handoff-cli` / `handoff`). The harness manages asynchronous or background subagent runs, providing structured execution tracking using unique run IDs. It includes operational commands such as `handoff tail` to follow execution output and resume sessions if a delegated task or subagent is interrupted. Handoff differentiates itself by focusing on the session lifecycle and subagent process management rather than just single-turn prompt execution. By maintaining distinct execution states and logging pipelines, it allows developers and automated scripts to delegate execution to subagents (such as Codex-based agents) with error handling and session recovery. Handoff is published as an open-source tool on GitHub and distributed via PyPI.

Tags: cli, code assistant, coding agent, developer tools, OpenSource

Visit Handoff

Key features

  • Subagent orchestration — Coordinates delegation and lifecycle execution across external subagents. - Session resumption — Recovers and resumes interrupted tasks using unique run identifiers (RUN_ID). - CLI log tailing — Includes commands like handoff tail to stream live execution logs and progress from running tasks. - PyPI-native distribution — Packaged as a standard Python CLI tool for streamlined installation and workflow automation. - Dual-language documentation — Maintained with comprehensive English and Chinese documentation and release notes.

Use cases

Use Case: Delegating Background Subagent Tasks A developer triggers a long-running coding task delegated to a subagent CLI process. Handoff manages process execution in the background while recording state transitions and output logs under a managed run identifier.

Use Case: Resuming Interrupted Coding Workflows When a delegated subagent or network connection terminates prematurely before completing execution, the developer uses Handoff's session recovery capabilities to attach to the existing RUN_ID and resume processing without restarting the entire task.

Use Case: Monitoring Agent Logs in the Terminal A developer monitors task progression and stdout/stderr streams in real time across multiple orchestrator tasks by running handoff tail directly within their terminal session.

Who it is for

Handoff is built for software engineers and automation developers orchestrating CLI coding agents and autonomous subagent workflows in the terminal. It is less suited for developers seeking an out-of-the-box conversational GUI editor or a standalone single-agent desktop application.

Install guide

Installation Install Handoff via pip (published on PyPI): bash pip install handoff-cli # or pip install handoff Alternatively, install directly from the source repository: bash git clone https://github.com/dazuiba/handoff.git cd handoff pip install -e .

First Run Verify that the CLI is installed and check available commands: bash handoff --help Configure your environment variables and API keys as required by your target subagents (e.g., standard provider keys).

Example Session Start a task and follow execution progress: bash # Run a delegated agent task handoff run --task "Refactor authentication middleware" # Tail active logs or resume a session by run ID handoff tail <RUN_ID>

Part of CLI Coding Agents

Categories: AI Coding Agents, Code Assistants, Developer Tools

Related CLI agents

  • OpenHands — OpenHands (formerly OpenDevin) is an open-source autonomous AI software development agent and orchestration platform. It provides an extensible runtime environment…
  • Plandex — Plandex is an open-source terminal-based AI coding agent designed to handle complex, multi-file engineering tasks in large codebases. Created by…
  • Continue — Continue is an open-source AI code assistant and agent framework originally developed by the Continue team (continuedev) and recently acquired…
  • Cline — Cline is an open-source autonomous coding agent runtime maintained by Cline Bot Inc. and an active open-source community. Available as…
  • OpenCode — OpenCode is an open-source AI coding agent developed by Anomaly that operates across terminal environments, desktop applications, and IDE extensions.…
  • Vibe Kanban — Vibe Kanban, originally developed by Bloop AI, is an open-source orchestration harness and visual task board designed to manage and…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories