fix(coding-agent): merge piped stdin into initial prompt closes #2315

This commit is contained in:
Mario Zechner
2026-03-17 22:25:08 +01:00
parent 9fc11921e4
commit bbd8392ef9
4 changed files with 115 additions and 18 deletions

View File

@@ -451,6 +451,12 @@ pi config # Enable/disable package resources
| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
| `--export <in> [out]` | Export session to HTML |
In print mode, pi also reads piped stdin and merges it into the initial prompt:
```bash
cat README.md | pi -p "Summarize this text"
```
### Model Options
| Option | Description |
@@ -525,6 +531,9 @@ pi "List all .ts files in src/"
# Non-interactive
pi -p "Summarize this codebase"
# Non-interactive with piped stdin
cat README.md | pi -p "Summarize this text"
# Different model
pi --provider openai --model gpt-4o "Help me refactor"