Cli Agent
Invoke CLI coding agents (claude, opencode, amp, gemini, codex) with typed inputs and capture structured outputs — tokens, cost, duration, retries, and exit code. Supports slash command resolution and JSON response parsing.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| defaultModel | string | |
| commandsDir | string | |
| commandSubdirs | array | Additional subdirectories under commandsDir to search for slash commands |
| claudePath | string | |
| opencodePath | string | |
| ampPath | string | |
| geminiPath | string | |
| codexPath | string | |
| idleTimeoutMs | number | |
| wallTimeoutMs | number | |
| maxRetries | number |
| Argument | Type | Description |
|---|---|---|
| prompt | string | The prompt or slash command to execute |
| model? | string | Override the default model (e.g. 'opus', 'sonnet', 'ollama/qwen3.6:35b') |
| cwd? | string | Working directory for the CLI (defaults to Deno.cwd()) |
| tags? | record | Arbitrary key-value tags for grouping/filtering invocations |
| wallTimeoutMs? | number | Override wall timeout in milliseconds |
| Argument | Type | Description |
|---|---|---|
| prompt | string | |
| model? | string | |
| cwd? | string | |
| tags? | record | |
| wallTimeoutMs? | number |
Resources
Added 1, removed 1 models
Restores outputTokensPerSecond (dropped from unpushed 2026.06.03.1 source); supersedes 2026.06.09.1 which added transcripts, listModels, and claude permission bypass
Full transcript persistence (untruncated prompt+output per invocation), listModels method for provider model enumeration, claude provider now passes --dangerously-skip-permissions for unattended runs
Modified 1 models
Add commandSubdirs global arg for configurable slash command search paths.
Initial release: multi-provider CLI agent invoker with structured output tracking.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned