Cli Agent Handoff

    by Brian

    1

    Delegate and run parallel coding tasks across multiple agent CLIs with automated logging and review.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    cli-agent-handoff

    Example session with this skill installed

    Delegate the creation of unit tests for the user-auth module to Codex. I have prepared the task brief in task-auth-tests.md.

    • Read your context and instructions
    • Compiled the cli-agent-handoff

    I have initiated the handoff to Codex to handle the unit tests for the user-auth module. The process is running headless in the background.

    Handoff Execution Summary

    PropertyValue
    Sub-AgentCodex
    Task Filetask-auth-tests.md
    Workspace.
    Log Path/tmp/agent-handoff/codex_20231027_1430.log
    StatusRunning (PID: 48291)

    The task brief includes instructions to create src/auth/__tests__/login.test.ts and src/auth/__tests__/session.test.ts. Codex has been instructed not to commit changes directly.

    Next steps

    1. Wait for the background process to complete (I will notify you when the PID exits).
    2. Run git diff --stat to verify that only the __tests__ directory was modified.
    3. Execute npm test src/auth to confirm the generated tests pass against the existing implementation.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Managing multiple coding tasks across different files often leads to context bloat and slow execution in a single agent session. This skill enables you to offload self-contained modules, test suites, or migrations to independent agent CLIs for parallel execution.

    What it does

    • Task delegation offloads specific coding jobs to secondary agents like Codex, Claude Code, or OpenCode.
    • Parallel execution runs multiple background agents simultaneously to handle independent features or layers.
    • Headless orchestration executes agents via scripts without manual supervision of the sub-process.
    • Automatic logging captures full agent output and session logs for later review and debugging.
    • Environment isolation ensures sub-agents start with a clean slate, avoiding context pollution from the main session.

    How it works

    1. Scope the task by identifying independent files or modules that do not overlap with other active work.
    2. Draft the brief using the provided task template, including the goal, specific file paths, and success criteria.
    3. Trigger the runner by executing the delegate.sh script with your preferred agent and task file.
    4. Review and verify the changes using git diff and local test runs before merging the sub-agent's work into your main thread.

    Frameworks & tools

    This tool relies on a bash environment and pre-installed agent CLIs including Codex, Claude Code, or OpenCode. It uses standard git for change tracking and shell redirection for log management.

    Why this beats prompting it yourself

    Manual handoffs often result in missing context or agents hallucinating file paths they can't see. This skill provides a structured template and a standardized execution script that enforces isolation, ensuring sub-agents don't edit shared config files or clash during parallel runs.

    Use cases

    • Parallel dev building an API backend and a UI frontend simultaneously in different directories.
    • Test generation offloading the creation of a unit test suite for a newly completed module.
    • Independent reviews getting a "second opinion" or code audit from a different model.
    • Refactoring delegating a self-contained migration of a legacy utility to a new pattern.

    Known limitations

    Does not support agents editing the same file concurrently. Claude Code is limited to file edits unless specific environment variables are set to allow command execution.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 14 days ago

    Software
    Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed14 days ago

    What's inside

    Frequently Asked Questions

    This skill prevents 'context bloat' and slow execution by delegating independent coding tasks to parallel background processes, allowing you to work on multiple features or test suites at once without your primary agent losing track of the project.

    The skill is designed to work with major agent CLIs including Codex, Claude Code, and OpenCode, provided they are accessible via a bash environment on your machine.

    You will receive the core delegation scripts, structured task templates for drafting agent briefs, and a logging utility to track background agent activity.

    To ensure stability, the system enforces environment isolation and requires users to scope tasks to non-overlapping files, preventing different agents from attempting to write to the same file simultaneously.

    You will need a standard bash environment with Git installed, along with your preferred AI agent CLIs already authenticated and set up in your terminal.

    Yes, because all tasks are executed via the delegation script, every session is automatically logged to a local file, allowing you to review the sub-agent's reasoning and output after the job is complete.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.