feat: add raw session args/opts for agent passthrough

This commit is contained in:
Nathan Flurry 2026-02-05 11:32:39 -08:00
parent 375d73e4cb
commit 2f26f76d9b
14 changed files with 365 additions and 37 deletions

View file

@ -25,16 +25,32 @@ amp --print --output-format stream-json --dangerously-skip-permissions "prompt"
amp --continue SESSION_ID "follow up"
```
### Key CLI Flags
### Custom Args (CLI Flags)
| Flag | Description |
|------|-------------|
| `--print` | Output mode (non-interactive) |
| `--output-format stream-json` | JSONL streaming output |
| `--dangerously-skip-permissions` | Skip permission prompts |
| `--continue SESSION_ID` | Resume existing session |
| `--model MODEL` | Specify model |
| `--toolbox TOOLBOX` | Toolbox configuration |
#### Core Flags
| Flag | Type | Description |
|------|------|-------------|
| `--print` | bool | Output mode (non-interactive) |
| `--execute` | bool | Alternative output mode (some versions) |
| `--output-format stream-json` | string | JSONL streaming output |
| `--model MODEL` | string | Specify model to use |
| `--continue SESSION_ID` | string | Resume existing session |
#### Permission Flags
| Flag | Type | Description |
|------|------|-------------|
| `--dangerously-skip-permissions` | bool | Skip all permission prompts |
#### Configuration Flags
| Flag | Type | Description |
|------|------|-------------|
| `--toolbox NAME` | string | Toolbox configuration to use |
| `--mcp-config FILE` | path | Path to MCP configuration file |
**Note:** Amp CLI flags vary by version. The daemon uses flag detection (`amp --help`) to determine which flags are supported before invocation.
## Credential Discovery