Skip to content

Latest commit

 

History

History
106 lines (78 loc) · 6.47 KB

File metadata and controls

106 lines (78 loc) · 6.47 KB
sidebar_position 5
title CLI Runners
description Execute spec tasks via external CLI tools like Claude Code, GitHub Copilot CLI, OpenAI Codex CLI, Google Gemini CLI, or Kimi CLI. DevoxxGenie manages the task lifecycle while your preferred tool does the implementation.
keywords
devoxxgenie
cli runners
claude code
copilot
codex
gemini
kimi
cli tools
spec-driven development
sdd
agent loop
image /img/devoxxgenie-social-card.jpg

CLI Runners

Instead of using the built-in LLM provider, you can execute spec tasks via external CLI tools — such as Claude Code, GitHub Copilot CLI, OpenAI Codex CLI, Google Gemini CLI, or Kimi CLI. This lets you leverage the tool you already use and trust, while DevoxxGenie manages the task lifecycle.

CLI Runners integrate with both Spec-driven Development (single task execution) and the Agent Loop (batch task execution).

How It Works

Each CLI tool is launched as an external process with your task prompt piped in. A Backlog MCP config is auto-generated and passed to the CLI so it can read and update tasks using the same backlog tools as the built-in agent. The output streams live into an IntelliJ Run tool window console.

┌──────────────────┐     ┌──────────────────────┐     ┌──────────────────┐
│  DevoxxGenie     │────▶│  CLI Process          │────▶│  Backlog MCP     │
│  (Task Runner)   │     │  (Claude/Copilot/...) │     │  (task updates)  │
└──────────────────┘     └──────────────────────┘     └──────────────────┘
        │                          │                          │
  Launches process         Implements the task         Sets status to Done,
  with prompt + MCP        using its own tools         checks off criteria
  config via stdin                                     via MCP tools

Supported CLI Tools

CLI Tool Prompt Delivery MCP Support Default Args
Claude Code stdin (-p flag) Auto-generated --mcp-config -p --dangerously-skip-permissions --model opus --allowedTools Backlog.md
GitHub Copilot stdin Auto-generated --additional-mcp-config (with @ prefix) --allow-all
OpenAI Codex Trailing argument Not supported exec --model gpt-5.3-codex --full-auto
Google Gemini stdin Auto-generated --mcp-config (none)
Kimi --prompt flag Auto-generated --mcp-config-file --yolo
Custom stdin Configurable (user-defined)

:::note Codex CLI does not support MCP, so it cannot update task status directly. The task runner detects completion via the spec file watcher and terminates the Codex process automatically. :::

Setup

  1. Open Settings > Tools > DevoxxGenie > Spec Driven Dev
  2. Scroll to the CLI Runners section
  3. Click + to add a new CLI tool
  4. Select the Type from the dropdown — all fields are pre-filled with sensible defaults
  5. Adjust the Executable path if your CLI is installed in a different location
  6. Optionally add Env vars (e.g., ANTHROPIC_API_KEY=sk-...) for tools that need API keys when launched from IntelliJ
  7. Click Test Connection to verify the tool is installed and authenticated
  8. Click OK, then Apply

You can configure multiple CLI tools — for example, Claude for complex tasks and Codex for quick fixes. Switch between them in the toolbar.

CLI Runners configuration list in Settings

Selecting the Execution Mode

The DevoxxGenie Specs toolbar contains an execution mode dropdown:

  • LLM Provider — uses the built-in LLM agent (default)
  • CLI: Claude / CLI: Copilot / CLI: Kimi / etc. — uses the configured external CLI tool

The selection is persisted across IDE restarts. When you click Run Selected or Run All To Do, tasks are executed using whichever mode is selected.

Selecting a CLI runner from the execution mode dropdown

Configuration Reference

Field Description
Type Preset type (Claude, Copilot, Codex, Gemini, Kimi, Custom). Selecting a type auto-fills the other fields.
Executable path Absolute path to the CLI binary (e.g., /opt/homebrew/bin/claude)
Extra args Command-line arguments passed to the CLI. These are split on whitespace — no shell quoting needed.
Env vars Optional environment variables as KEY=VALUE, KEY2=VALUE2. Useful for API keys not inherited from the shell.
MCP config flag Read-only. The CLI flag used to pass the auto-generated Backlog MCP config file. Set automatically per tool type.
Enabled Toggle to enable/disable a tool without deleting its configuration

Console Output

When a CLI tool runs, its stdout and stderr stream into the Run tool window in IntelliJ. Each task execution shows:

  • A header with the task ID, title, and CLI tool name
  • The full output from the CLI tool
  • An exit summary with exit code and elapsed time

Adding a Custom CLI Tool

If your CLI tool is not in the preset list:

  1. Select Custom as the Type
  2. Enter the executable path and arguments manually
  3. Set the MCP config flag if your tool supports an MCP config file (leave empty if not)
  4. The prompt is piped via stdin by default — ensure your tool reads from stdin in non-interactive mode

Troubleshooting

Issue Cause Solution
CLI tool fails immediately Authentication error or wrong path Check the executable path and env vars in Settings → Spec Driven Dev → CLI Runners, use Test Connection to verify
CLI process doesn't exit Some CLI tools (e.g., Codex) don't self-exit after completing The runner detects task completion via the file watcher and terminates the process automatically
No output in console Process started but no stdout Check that the executable path is correct and the tool is authenticated. Try running the command manually in a terminal
MCP tools not available CLI tool doesn't receive the Backlog MCP config Verify the tool type is set correctly — MCP config is auto-generated per tool type. Codex does not support MCP