DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to script worktrees and agent steps with the Orca CLI

Let an agent create a worktree and drive the Orca UI through the CLI so a setup repeats the same way every time.

Short answer: Install Orca with brew install --cask stablyai/orca/orca on macOS, or download a build for your system; then read the CLI overview in the Orca docs for the commands your version supports; create a worktree with orca worktree create. All steps.

Who it is forA developer who runs the same agent setup across many tasks or repos.

The problemClicking through the same worktree and agent setup for every task is slow and error prone.

The outcomeA repeatable script that creates a worktree and drives Orca for each new task.

What you need first

  • A desktop computer running macOS, Windows, or Linux
  • A git repository to work in
  • At least one CLI coding agent (such as Claude Code, Codex, or OpenCode) that you already have access to with your own subscription

Steps

  1. Install Orca with brew install --cask stablyai/orca/orca on macOS, or download a build for your system
  2. Read the CLI overview in the Orca docs for the commands your version supports
  3. Create a worktree with orca worktree create
  4. Use the snapshot, click and fill commands to read and drive the UI in that worktree
  5. Save the sequence as a script and run it for the next task

Prompt for your agent

Using the stablyai/orca CLI, create a worktree for <task>, take a snapshot of the Orca UI, and save the steps as a script I can rerun. Verify the worktree appears in git worktree list.

Caveat. The README names only a few CLI commands; check the CLI docs for the full set before scripting more.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for stablyai/orca and "Script worktrees and agent steps with the Orca CLI"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer