feat(coding-agent): set AI_AGENT environment variable (#7493)

This commit is contained in:
Renaud Hartert 2026-08-03 13:45:32 +02:00 • committed by GitHub
parent cbaca60389
commit 4f4762f06d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -663,6 +663,7 @@ pi --thinking high "Solve this complex problem"
| Variable | Description |
|----------|-------------|
| `AI_AGENT` | Set to `pi` by the CLI and RPC entry points so generic tooling can attribute child processes to Pi |
| `PI_CODING_AGENT` | Set to `true` by the CLI and RPC entry points so child processes can detect that they run inside Pi |
| `PI_CODING_AGENT_DIR` | Override config directory (default: `~/.pi/agent`) |
| `PI_CODING_AGENT_SESSION_DIR` | Override session storage directory (overridden by `--session-dir`) |