- Home
- Skills
- Agents & Orchestration
- cli-agent-handoff
Cli Agent Handoff
by Brian
Delegate and run parallel coding tasks across multiple agent CLIs with automated logging and review.
$7
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
| Property | Value |
|---|---|
| Sub-Agent | Codex |
| Task File | task-auth-tests.md |
| Workspace | . |
| Log Path | /tmp/agent-handoff/codex_20231027_1430.log |
| Status | Running (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
- Wait for the background process to complete (I will notify you when the PID exits).
- Run
git diff --statto verify that only the__tests__directory was modified. - Execute
npm test src/authto 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
- Scope the task by identifying independent files or modules that do not overlap with other active work.
- Draft the brief using the provided task template, including the goal, specific file paths, and success criteria.
- Trigger the runner by executing the
delegate.shscript with your preferred agent and task file. - Review and verify the changes using
git diffand 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.