Skip to content
Back to skills

Cli Duo

ASecurity

Coordinate two AI CLIs on the same repo without conflicts (subordinate worktrees + engineer/judge roles).

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsgobashgit

Works with

  • claude code
  • cursor
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cli-duo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Duo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Duo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cli-duo/badge)](https://www.skillsdirectory.com/skills/david-li0406-cli-duo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-duo
description: Coordinate two AI CLIs on the same repo without conflicts (subordinate worktrees + engineer/judge roles).
metadata:
  version: 0.1.0
  author: mcarls
  category: collaboration
compatibility:
  - codex-cli
  - claude-code
  - cursor
  - gemini-cli
---

# CLI Duo

Orchestrates two AI CLIs working on the same repository. Supports safe subordinate worktrees and engineer/judge review loops.

## When to Use

- Two CLIs need to edit the same repo without clobbering each other's state
- You want a create → judge loop with explicit role swaps
- You need a temporary subordinate worktree for experiments

## Core Concepts

- **CLI Registry**: Store known CLIs with names, commands, and default repos.
- **Sessions**: Pair two registered CLIs in either mode:
  - `subordinate`: Primary stays on the main repo; secondary gets a git worktree sandbox.
  - `engineer-judge`: Assigns engineer/judge roles and lets you swap them per round.

## Commands

```bash
# Register CLIs
duo cli register -n claude -c "claude" -d "Claude Code CLI"
duo cli register -n cursor -c "cursor" -d "Cursor CLI"
duo cli list

# Subordinate mode (creates secondary worktree)
duo pair create -s landing-refactor -p claude -b cursor -m subordinate -r ~/projects/app --confirm
duo pair info -s landing-refactor
duo pair end -s landing-refactor --confirm  # removes worktree + session

# Engineer/Judge mode
duo pair create -s review-loop -p claude -b cursor -m engineer-judge -R 2
duo pair swap -s review-loop  # swap roles after a round
duo pair info -s review-loop
```

## Outputs

- Session summaries include the working directories each CLI should use.
- For subordinate sessions, the secondary path is a git worktree under `~/.local/share/cli-duo/worktrees/<session>/secondary`.

## Cleanup

- `duo pair end -s <session> --confirm` tears down the worktree (if created) and deletes the session.

Files in this skill

  • README.md1.1 KB
  • SKILL.md1.9 KB
  • cli_duo/__init__.py503 B
  • cli_duo/cli.py7.2 KB
  • cli_duo/orchestrator.py9.6 KB
  • pyproject.toml521 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…