run

Solid

Execute a single agent headlessly or interactively. Supports plan/edit/auto/skip modes, secrets bundle injection, version pinning, fallback chains, balanced rotation, profile dispatch (Kimi/DeepSeek/etc.), and workflow dispatch by name. Triggers on: 'run claude', 'run codex', 'agents run', 'dispatch an agent', 'headless agent', 'one-off agent task'.

AI & Automation 11 stars 6 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 78/100

Stars 20%
36
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Run Skill Dispatch a single agent for a one-off task. `agents run` is the fundamental command for interactive sessions and headless automation across Claude, Codex, Gemini, Cursor, OpenCode, and OpenClaw. ## Headless vs interactive Explicit flags are definitive; otherwise the mode is inferred from prompt presence: - `--interactive` (`-i`) → always interactive, even with a prompt (the prompt is forwarded as the first message). - `--headless` → always headless, even with no prompt (the prompt is read from stdin). - Neither flag, **prompt provided** → headless. Pipes stdout, no TTY, exits when the agent finishes. - Neither flag, **prompt omitted** → interactive. Launches the agent's TUI with full stdio inheritance. `--interactive` and `--headless` are mutually exclusive — passing both errors out. ```bash # Interactive (TUI) agents run claude # Headless one-shot agents run claude "summarize recent git commits" ``` ## Modes Permission mode controls what the agent can do. | Mode | What it allows | |------|----------------| | `plan` (default) | Read-only — research, audit, analysis. No writes, no shell side-effects. | | `edit` | Read + write files; prompts for shell / risky operations | | `auto` | Harness-native automatic approval: Claude/Copilot use the smart classifier; Droid uses `--auto high`; Kimi uses `--auto` interactively, while headless `-p` already auto-approves and emits no mode flag. | | `skip` | Last-resort bypass of every permission prompt. Direct exec uses...

Details

Author
phnx-labs
Repository
phnx-labs/agents-cli
Created
3 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

headless-cli

Call another local AI CLI headlessly from a Bash call — codex, opencode, agy, or kimi — to delegate a subtask, get a second opinion from a different model, fan out work in parallel, or run a one-shot prompt and capture the result. Use when the user asks to use/ask codex, opencode, agy, kimi, gemini, gpt, deepseek, or k3; wants another model's take or a cross-model check; when delegating coding/analysis to a non-Claude model is useful; or when the user wants an image generated (logo, banner, cover, illustration) — codex can do that headlessly. Contains the exact verified flags plus the gotchas (stdin/sandbox/parallelism) that otherwise cause hung or empty calls.

0 Updated today
oldantique
AI & Automation Listed

sub-agents

Execute external CLI AIs as isolated sub-agents for task delegation, parallel processing, and context separation. Use when delegating complex multi-step tasks, running parallel investigations, needing fresh context without current conversation history, or leveraging specialized agent definitions. Returns structured JSON with agent output, exit code, and execution status.

6 Updated today
blindlove200
AI & Automation Listed

parallel-execution

Claude Code's two force-multipliers — Plan Mode (explore → plan → wait-for-approval → execute) and Agent Teams (parallel subagents via the Task tool) — plus the canonical forge agent roster and delegation-routing rules. Use when decomposing a multi-file feature, running multi-dimensional codebase analysis, orchestrating parallel build/test/validate pipelines, or deciding which subagent to delegate a task to.

5 Updated 2 days ago
nxtg-ai