external-ai

Delegate coding, review, and research tasks to external AI CLIs.

1|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/devbasex/ai-plugins --skill external-ai-devbasex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: external-ai
Source: https://github.com/devbasex/ai-plugins/tree/main/plugins/ndf/skills/external-ai
Command: npx skills add https://github.com/devbasex/ai-plugins --skill external-ai-devbasex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Getting an independent second opinion or offloading long-running investigations is hard when a single AI agent holds all the context. This Skill lets you launch the codex, agy, kiro-cli, or claude CLI as a separate background process, so reviews and deep codebase investigations run outside the main agent's reasoning bias. ## Core Features & Use Cases - Multi-CLI delegation: Unified workflow for launching Codex, agy, Kiro CLI, and headless Claude, with per-CLI reference files covering installation, flags, completion detection, and output recovery. - Reliable result collection: Three-stage fallback recovery (output file, stdout, stderr) plus prompt templates that force the external AI to write results to a file, handling known issues like Codex dropping its final message or Kiro's unusable exit codes. - Use Case: You want an independent review of a design doc before merging a PR. Write a review prompt to a temp file, launch codex exec in the background, wait for the tokens used sentinel, and collect a 400-line Japanese review from the output file. ## Quick Start Ask the agent to delegate a review of a specific file to codex or agy using the external-ai skill, for example: review the design document at an absolute path with codex and collect the result.

Frequently Asked Questions about external-ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate a code review to an external AI CLI?▼

Write the review prompt to a temp file with absolute paths and an explicit output file instruction, then launch the CLI (codex exec, agy -p, kiro-cli chat, or claude -p) in the background with stdout and stderr redirected. Wait for the CLI-specific completion signal and collect results from the output file first.

Which AI CLI should I use for code review, codex or agy?▼

Use Codex for line-by-line verification and long deep investigations, since it excels at exact code cross-referencing but has heavier setup. Use agy for quick independent reviews, cross-cutting investigation, and long-form generation, as it finishes in tens of seconds to five minutes.

Why is the codex CLI output empty after completion?▼

Codex can end a session without returning a final assistant message, leaving stdout empty even though the tokens-used sentinel appears in stderr. Instruct it in the prompt to write results to a file via apply_patch, and lower reasoning effort to medium.

Can I trust kiro-cli exit codes to detect failures?▼

No. kiro-cli returns exit code 0 even when tool approvals fail or executed shell commands fail; only missing auth or empty input returns 1. Detect completion by checking the result file exists and scanning ANSI-stripped stderr for rejection warnings.

When should I not delegate tasks to an external AI?▼

Avoid delegation for tasks under two minutes, interactive design discussions, simple questions answerable via web search, and code containing confidential information, since prompts are sent to external APIs and incur per-token API costs.