mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(coding-agent): set AI_AGENT environment variable (#7493)
This commit is contained in:
parent
cbaca60389
commit
4f4762f06d
3 changed files with 3 additions and 0 deletions
|
|
@ -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`) |
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { main } from "./main.ts";
|
|||
|
||||
process.title = APP_NAME;
|
||||
process.env.PI_CODING_AGENT = "true";
|
||||
process.env.AI_AGENT = "pi";
|
||||
process.emitWarning = (() => {}) as typeof process.emitWarning;
|
||||
|
||||
// Configure undici's global dispatcher before provider SDKs issue requests.
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { main } from "./main.ts";
|
|||
|
||||
process.title = `${APP_NAME}-rpc`;
|
||||
process.env.PI_CODING_AGENT = "true";
|
||||
process.env.AI_AGENT = "pi";
|
||||
process.emitWarning = (() => {}) as typeof process.emitWarning;
|
||||
|
||||
configureHttpDispatcher();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue