# The Agentic CLI Stack: Superpowers, CLI-Anything, OpenCode & Orca

> NOTICE: All summaries, classifications, and upgrade signals in this file are generated automatically by AI without human editorial review. They are provided "AS IS" without warranty and may contain errors. Verify all changes and security advisories against official upstream GitHub releases before acting. Full legal terms: https://reposen.se/disclaimer

> Explore the 4-layer agentic CLI stack: obra/superpowers skills, CLI-Anything JSON harnesses, OpenCode terminal agents, and Orca parallel Git worktrees.

- **Canonical URL**: https://reposen.se/blog/agentic-cli-stack-superpowers-opencode-orca-cli-anything
- **Raw Markdown URL**: https://reposen.se/blog/agentic-cli-stack-superpowers-opencode-orca-cli-anything/llm.txt
- **Author**: Reposen Automated AI Pipeline
- **Published At**: 2026-12-04
- **Reading Time**: 11 min
- **Keywords**: agent-native CLI, parallel coding agents git worktree, opencode vs claude code, obra superpowers skills, CLI-Anything JSON harness, stablyai orca, anomalyco opencode, Reposen Engineering Blog

---

> **Executive Summary (Quick Answer):** Modern AI software engineering has moved decisively beyond brittle screen-scraping and single-threaded chat sidebars toward a composable **4-layer Agentic CLI Stack**. Verified Reposen telemetry shows four open-source projects leading this convergence with **787,853 combined GitHub stars (+1,181 stars in 24 hours)**: [obra/superpowers](https://reposen.se/repo/obra/superpowers) enforces disciplined engineering workflows (`SKILL.md` gates, TDD, and worktree isolation), [HKUDS/CLI-Anything](https://reposen.se/repo/HKUDS/cli-anything-hub) converts legacy desktop GUI applications into deterministic JSON CLI harnesses, [anomalyco/opencode](https://reposen.se/repo/anomalyco/opencode-ai) separates read-only Plan Mode from full-access Build Mode inside a provider-agnostic terminal TUI, and [stablyai/orca](https://reposen.se/repo/stablyai/orca) orchestrates parallel coding agents across isolated Git worktrees without branch collisions.

---

### 💡 Key Takeaways (TL;DR)

* **Methodology Beats Ad-Hoc Prompting:** [obra/superpowers](https://reposen.se/repo/obra/superpowers) (`v7.0.2`, **332,246 stars**, +498/24h) turns reactive coding agents into disciplined engineers through context-activated Markdown skills enforcing Socratic brainstorming, strict Test-Driven Development (TDD), and isolated Git worktree execution.
* **Deterministic JSON CLIs Replace Fragile Pixel Clicking:** [HKUDS/CLI-Anything](https://reposen.se/repo/HKUDS/cli-anything-hub) (`v0.4.0`, **70,532 stars**, +106/24h) wraps real desktop backends (Blender via `bpy`, GIMP via Script-Fu, LibreOffice, Audacity) in structured `--json` CLI harnesses and stateful REPLs, cutting token burn and multimodal latency dramatically.
* **Safe Dual-Mode Terminal Execution:** [anomalyco/opencode](https://reposen.se/repo/anomalyco/opencode-ai) (`vscode-v1.0.1`, **230,880 stars**, +346/24h) brings provider-agnostic coding intelligence into the terminal with explicit **Plan Mode** (read-only analysis) and **Build Mode** (full file and bash execution) plus native worktree runners.
* **Parallel Agent Control Planes Eliminate Branch Collisions:** [stablyai/orca](https://reposen.se/repo/stablyai/orca) (`v1.4.288`, **154,195 stars**, +231/24h) serves as an open-source Agent Development Environment (ADE) that automatically provisions dedicated `git worktree` checkouts and terminal panes so Claude Code, Codex, and OpenCode execute side by side without stepping on each other's files.
* **Complementary to Browser & Protocol Standards:** The CLI stack pairs naturally with standardized agent tool protocols covered in our [Production MCP Ecosystem Guide](https://reposen.se/blog/mcp-ecosystem-production-ai-agents-2026) while offloading visual web tasks only where needed (see our [Playwright & Browser-Use Web Agents Guide](https://reposen.se/blog/browser-use-playwright-production-web-agents)).

---

## 1. Why the Industry Is Converging on Agent-Native CLIs

First-generation autonomous agents tried to imitate human mouse clicks and screenshots across graphical interfaces, or ran single-agent chat loops directly inside a shared Git working directory. In real production engineering teams, both patterns break down quickly:

1. **Multimodal GUI Fragility:** Vision-driven GUI automation burns thousands of image tokens per step, breaks whenever a button shifts by ten pixels, and lacks transactional undo semantics. Command-line interfaces built around [POSIX Shell Command Language semantics](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html) and [RFC 8259 JSON](https://datatracker.ietf.org/doc/html/rfc8259) outputs give language models deterministic arguments, explicit exit codes, and compact structured state.
2. **Unstructured "Vibe Coding" Drift:** Without enforceable workflow gates, coding agents skip specification review, write untested code, and mix unrelated refactors into dirty working trees.
3. **The Single-Checkout Bottleneck:** Running two coding agents simultaneously against the same repository directory immediately causes file clobbering, conflicting lockfiles, and corrupted Git index states.

The 4-layer Agentic CLI Stack solves each bottleneck cleanly at its own architectural boundary.

```diagram
{
  "layout": "pipeline",
  "title": "The 4-Layer Agentic CLI Stack Architecture",
  "caption": "How Superpowers methodology skills, CLI-Anything JSON harnesses, OpenCode terminal agents, and Orca Git worktree control planes compose end to end.",
  "steps": [
    {
      "kind": "input",
      "badge": "LAYER 1 · SKILLS",
      "title": "obra/superpowers (v7.0.2)",
      "body": "Loads Markdown SKILL.md gates that enforce Socratic brainstorming, written design sign-off, strict red-green TDD, and systematic code review."
    },
    {
      "kind": "processor",
      "badge": "LAYER 2 · TOOLS",
      "title": "HKUDS/CLI-Anything (v0.4.0)",
      "body": "Exposes desktop software (Blender, GIMP, Audacity, LibreOffice) as agent-native CLI harnesses with --json output and stateful undo/redo REPLs."
    },
    {
      "kind": "processor",
      "badge": "LAYER 3 · AGENT",
      "title": "anomalyco/opencode (vscode-v1.0.1)",
      "body": "Executes plans inside a fast multi-provider TUI separating read-only Plan Mode from full-privilege Build Mode across shell and MCP tools."
    },
    {
      "kind": "output",
      "badge": "LAYER 4 · FLEET",
      "title": "stablyai/orca (v1.4.288)",
      "body": "Orchestrates parallel agents (OpenCode, Claude Code, Codex) in isolated Git worktrees with side-by-side terminal monitoring and diff review."
    }
  ]
}
```

---

## 2. Layer 1: Methodology & Disciplined Skills (`obra/superpowers`)

Raw model intelligence does not guarantee software engineering rigor. [obra/superpowers](https://reposen.se/repo/obra/superpowers), created by Jesse Vincent and tracked on Reposen at **332,246 GitHub stars** (+498 stars/24h, **29,728 forks**), packages senior engineering discipline into modular, context-activated `SKILL.md` workflow specifications.

Instead of letting an agent jump straight into modifying files on a vague prompt, Superpowers introduces hard process gates:

* **Collaborative Brainstorming & Design Sign-Off:** In `v7.0.2` (2026-11-03), Superpowers tuned its brainstorming questioning flow and resolved harness bootstrap edge cases. Before any code is written, the agent asks targeted clarifying questions, writes a concise design specification, and waits for human approval.
* **Strict Test-Driven Development (TDD):** Superpowers enforces a mandatory failing-test-first cycle. If an agent attempts to write production implementation code before a failing test exists, the skill instructs the workflow to discard the shortcut and restore red-green discipline.
* **Automatic Worktree & Review Hygiene:** Feature execution is routed into clean Git worktrees followed by structured self-review checklists, keeping the primary branch continuously green.

Because skills are plain version-controlled Markdown instructions rather than opaque proprietary prompts, engineering teams can audit, fork, and enforce identical quality standards across every developer workstation.

---

## 3. Layer 2: Agent-Native Tooling Surfaces (`HKUDS/CLI-Anything`)

Most enterprise and creative software (image editors, 3D renderers, audio suites, spreadsheet processors) was built for human point-and-click GUIs rather than autonomous agents. [HKUDS/CLI-Anything](https://reposen.se/repo/HKUDS/cli-anything-hub), tracked on Reposen at **70,532 GitHub stars** (+106/24h, **6,614 forks**), bridges this gap by generating real, stateful command-line harnesses directly from application source code and native scripting APIs.

In release `v0.4.0`, CLI-Anything added **CLI-Matrix multi-installs**, **30 new application harnesses**, and security hardening across its `cli-anything-hub` (`cli-hub`) package manager. Rather than mocking behavior, each harness drives real underlying software backends (such as Blender's headless Python `bpy` runtime or GIMP's Script-Fu engine) behind consistent `--json` flags and stateful undo/redo REPL sessions:

```bash
# Install the CLI-Anything package hub via PyPI
pip install cli-anything-hub
cli-hub --version

# Discover and install agent-native application harnesses
cli-hub search diagram
cli-hub install drawio

# Run preflight checks or inspect project state with structured JSON output
cli-hub matrix preflight video-creation --summary --json
cli-anything-anygen --json project info -p project.json
```

When paired with the [Model Context Protocol (MCP) specification](https://modelcontextprotocol.io/specification), CLI-Anything harnesses give coding agents composable, pipeable, machine-verifiable tool surfaces that cost a fraction of screenshot-based computer-use loops.

---

## 4. Layer 3: Terminal Execution Agents (`anomalyco/opencode`)

Once methodology skills and structured CLI tools are in place, developers need a fast, inspectable, provider-agnostic execution agent that lives natively in the terminal. [anomalyco/opencode](https://reposen.se/repo/anomalyco/opencode-ai), tracked on Reposen at **230,880 GitHub stars** (+346/24h, **31,541 forks**), has emerged as the premier open-source Terminal User Interface (TUI) coding agent.

### Plan Mode vs. Build Mode Separation

One of OpenCode's most important production safety features is its explicit separation of agent permission modes (cycled effortlessly inside the TUI via `Tab` or `Shift+Tab`):

* **Plan Mode (Read-Only Analysis):** Restricts destructive file writes and arbitrary shell execution while allowing the agent to explore codebases, trace call graphs, query documentation, and draft an architecture plan safely.
* **Build Mode (Full Execution):** Grants write, patch, and test-runner permissions once the human developer reviews and approves the execution plan.

Release `vscode-v1.0.1` (2026-12-02) further refined TUI ergonomics by fixing live reloading of textarea keybindings. Getting started with OpenCode via npm takes two commands:

```bash
# Install OpenCode globally via npm
npm install -g opencode-ai
opencode --version

# Launch interactive TUI inside a target repository (use /connect to bind any LLM provider)
cd your-project-directory
opencode

# Or execute an isolated task directly inside a dedicated Git worktree
opencode run -w "Refactor authentication token refresh and add regression tests"
```

Because OpenCode stays decoupled from any single commercial model vendor, engineering organizations can route architectural planning to frontier reasoning models while executing routine test iterations on fast, low-cost models or local weights.

---

## 5. Layer 4: Parallel Worktree Control Planes (`stablyai/orca`)

Single-agent velocity hits a hard ceiling whenever an engineer waits five minutes for one agent to finish compiling, running tests, and iterating on a pull request. Running three agents simultaneously in the same directory, however, causes catastrophic file overwrites.

[stablyai/orca](https://reposen.se/repo/stablyai/orca), tracked on Reposen at **154,195 GitHub stars** (+231/24h, **9,896 forks**, latest `v1.4.288` on 2026-12-03), solves multi-agent concurrency by building an open-source desktop Agent Development Environment (ADE) directly on top of native [Git Worktree isolation](https://git-scm.com/docs/git-worktree).

```diagram
{
  "layout": "pipeline",
  "title": "Parallel Agent Execution via Git Worktrees (Orca Control Plane)",
  "caption": "How Orca isolates concurrent OpenCode, Claude Code, and Codex sessions into separate Git worktrees sharing one .git object store.",
  "steps": [
    {
      "kind": "input",
      "badge": "BASE REPO",
      "title": "Shared .git Object Store (main)",
      "body": "Single local repository holding commit history and shared objects without duplicating gigabytes of Git clone storage."
    },
    {
      "kind": "processor",
      "badge": "WORKTREE FAN-OUT",
      "title": "Orca Provisions Isolated Checkouts",
      "body": "Spawns independent directories and branches (feat/auth, fix/billing, docs/api) via git worktree add so files never collide."
    },
    {
      "kind": "action",
      "badge": "PARALLEL FLEET",
      "title": "Concurrent CLI Agents + Test Suites",
      "body": "Runs OpenCode, Claude Code, and Codex side by side in separate terminal panes, each executing its own build and unit tests."
    },
    {
      "kind": "output",
      "badge": "UNIFIED REVIEW",
      "title": "Side-by-Side Diffs & Clean Merge",
      "body": "Developer inspects diffs per worktree inside Orca, approves passing branches, and merges cleanly into main before pruning worktrees."
    }
  ]
}
```

Under the hood, native `git worktree` shares one `.git` object database while giving each agent its own working tree, `HEAD`, staging index, and independent branch:

```bash
# What Orca automates per parallel agent task under the hood:
git worktree add ../repo-wt-auth -b feat/oauth-refresh
git worktree add ../repo-wt-billing -b fix/invoice-tax-rounding
git worktree add ../repo-wt-perf -b perf/streaming-query-cache

# Inspect all active isolated agent checkouts
git worktree list

# Clean up once a branch is reviewed and merged
git worktree remove ../repo-wt-auth
```

By promoting `git worktree` from a manual terminal chore into a first-class visual control plane, Orca turns a solo engineer into a fleet coordinator capable of fanning out independent tasks, comparing competing implementations across different agents, and landing verified diffs cleanly.

---

## 6. Architectural Comparison: GUI Automation vs. The 4-Layer Agentic CLI Stack

To understand why engineering teams are shifting rapidly toward CLI-native agent architectures, compare traditional GUI/single-chat approaches against the four layers of the modern stack:

| Architectural Dimension | Legacy Single-Chat / GUI Pixel Agents | Layer 1: `obra/superpowers` | Layer 2: `HKUDS/CLI-Anything` | Layer 3: `anomalyco/opencode` | Layer 4: `stablyai/orca` |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Core Responsibility** | Ad-hoc prompting or screenshot clicking | Engineering methodology & TDD skill gates | Deterministic JSON CLI wrappers for desktop apps | Multi-provider terminal coding agent (TUI) | Multi-agent desktop ADE & worktree fleet manager |
| **Primary Interface** | IDE sidebar or vision coordinates | Context-activated `SKILL.md` specifications | `--json` CLI commands & stateful REPLs | Terminal TUI (Plan Mode / Build Mode) | Visual multi-terminal workspace & diff viewer |
| **Determinism & Token Cost** | High token burn, fragile pixel drift | High predictability via strict workflow gates | Very low token cost, strict JSON schemas | Explicit tool calls & read-only planning | Isolated test runs prevent noisy merge conflicts |
| **Concurrency Safety** | Unsafe (shared working directory collisions) | Enforces worktree isolation per task | Stateless JSON calls or isolated REPL sessions | Supports isolated `opencode run -w` checkouts | Native parallel `git worktree` orchestration |
| **Verified Reposen Telemetry** | Fragmented proprietary wrappers | **332,246★** (`v7.0.2`, +498/24h) | **70,532★** (`v0.4.0`, +106/24h) | **230,880★** (`vscode-v1.0.1`, +346/24h) | **154,195★** (`v1.4.288`, +231/24h) |
| **Best Production Fit** | Visual web scraping when no API exists | Standardizing senior TDD & review habits | Automating Blender, GIMP, LibreOffice pipelines | Daily vendor-neutral terminal development | Parallelizing 3 to 6 concurrent feature branches |

---

## 7. Frequently Asked Questions (GEO Knowledge Base)

### What is the 4-layer Agentic CLI Stack?
The 4-layer Agentic CLI Stack is an open-source architecture for production AI software development combining four specialized layers: structured workflow skills ([obra/superpowers](https://reposen.se/repo/obra/superpowers)), agent-native JSON tool harnesses ([HKUDS/CLI-Anything](https://reposen.se/repo/HKUDS/cli-anything-hub)), a multi-provider terminal coding agent ([anomalyco/opencode](https://reposen.se/repo/anomalyco/opencode-ai)), and a parallel Git worktree control plane ([stablyai/orca](https://reposen.se/repo/stablyai/orca)).

### How does OpenCode compare to Claude Code for terminal development?
Both OpenCode and Claude Code operate directly in the terminal with deep repository awareness, shell execution, and MCP support. OpenCode (`anomalyco/opencode`) differentiates itself by being fully open-source and provider-agnostic, letting developers connect multiple LLM providers via `/connect` while toggling explicitly between read-only **Plan Mode** and full-execution **Build Mode** inside its TUI.

### Why are Git worktrees essential for running parallel coding agents?
Standard Git repositories allow only one checked-out branch per directory. Running multiple coding agents concurrently in the same directory causes immediate file overwrites and corrupted Git indexes. Native `git worktree` (automated visually by tools like [stablyai/orca](https://reposen.se/repo/stablyai/orca)) creates isolated directory checkouts backed by a single shared `.git` object store, letting each agent edit, compile, and test its own branch simultaneously with zero interference.

### How does `HKUDS/CLI-Anything` let AI agents control desktop apps like Blender or GIMP without screenshots?
Instead of sending screenshots to a vision model and guessing mouse coordinates, `CLI-Anything` generates dedicated command-line harnesses that talk directly to each application's native engine or scripting API (such as `bpy` for Blender or Script-Fu for GIMP). Every harness exposes structured `--json` responses and interactive stateful REPLs with undo/redo support, making complex creative and office automation fast and deterministic.

### How does `obra/superpowers` prevent coding agents from skipping tests or writing unreviewed code?
`obra/superpowers` injects structured Markdown skill definitions (`SKILL.md`) that act as mandatory workflow gates. Before editing production files, the agent must complete collaborative brainstorming, secure design sign-off, create an isolated Git worktree, and follow strict Test-Driven Development (writing a failing test before implementing production logic).

---

## 8. Next Steps: Adopting the Stack Incrementally

You do not need to overhaul your entire engineering workflow overnight to capture the productivity gains of the agentic CLI stack:

1. **Start with Safe Terminal Planning:** Install [anomalyco/opencode](https://reposen.se/repo/anomalyco/opencode-ai) (`npm install -g opencode-ai`) and run complex codebase audits in read-only **Plan Mode** before switching to **Build Mode**.
2. **Codify Team Engineering Discipline:** Adopt modular `SKILL.md` workflow gates inspired by [obra/superpowers](https://reposen.se/repo/obra/superpowers) so every coding agent follows identical TDD, verification, and PR review rules.
3. **Replace Fragile GUI Scripts with JSON Harnesses:** Evaluate [HKUDS/CLI-Anything](https://reposen.se/repo/HKUDS/cli-anything-hub) (`pip install cli-anything-hub`) wherever agents interact with document, diagram, audio, or media generation tools.
4. **Scale Concurrency Safely:** Introduce [stablyai/orca](https://reposen.se/repo/stablyai/orca) to fan out independent bug fixes and feature tasks across isolated Git worktrees while monitoring real-time releases across all four packages on Reposen.
