Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

providers-pi.md

67 lines3.8 KB

1# Pi
2​
3T3 Code can use your existing Pi coding agent installation while keeping Pi's models, auth,
4extensions, skills, context files, and native session history.
5​
6## Set Up Pi
7​
81. Install Pi on the machine running the T3 Code server. Pi 1.0 is recommended; 0.80.5 is the
9 oldest version T3 Code supports.
102. Run Pi once in a terminal and finish the provider login or API-key setup you normally use.
113. Open T3 Code Settings, enable Pi, and refresh the provider.
12​
13If `pi` is not on the server's `PATH`, set Pi's binary path to the executable. Provider environment
14variables and launch arguments are also available for installations that need a custom agent
15directory, endpoint, or model configuration. `--provider` must be paired with `--model`. T3 Code
16rejects launch arguments that change Pi's execution mode or select a session because T3 owns those
17parts of the process lifecycle.
18​
19## What Carries Over
20​
21T3 Code discovers the models reported by Pi and exposes their supported thinking levels. The
22thinking picker marks Pi's current configured level as the default without overriding it. Threads
23use Pi's native session files for resume, rollback, and forks within the same Pi instance. Forks
24preserve the native conversation through the selected turn in the destination workspace.
25Switching providers uses portable conversation context. Extension
26dialogs appear in the T3 Code composer, and the composer context meter follows Pi's own usage
27reporting while a response streams and after it settles.
28​
29Pi skills appear in the composer's `$` menu. This includes user skills and project skills that Pi
30loads for the current workspace; selecting one uses Pi's native skill expansion.
31​
32Pi loads its normal user and project extensions. Blocking `select`, `confirm`, `input`, and `editor`
33dialogs work in T3 Code. Notifications appear in the work log. Pi terminal decoration such as
34titles, status lines, and widgets does not have a T3 Code equivalent.
35​
36## Permission Modes
37​
38T3 Code applies the composer permission mode through Pi's blocking tool hook:
39​
40- **Supervised** asks before commands, file changes, and extension tools. Read-only tools continue.
41- **Auto-accept edits** allows Pi's edit and write tools, but asks before commands and extension
42 tools.
43- **Full access** allows tools without T3 Code approval prompts.
44​
45The **Auto** option is not shown for Pi because Pi does not expose an AI approval reviewer.
46Threads that already stored Auto before Pi support was added behave and display as Supervised.
47​
48Changing the mode restarts the Pi provider session and resumes the same native conversation. The
49policy covers Pi tool calls; it is not an operating-system sandbox, and code that a trusted Pi
50extension runs outside a tool call remains governed by Pi's own extension trust model.
51​
52T3 Code's `delegate_task` tool creates durable child threads in the shared subagent UI. If the user
53installs Pi's example `subagent` extension, T3 Code also shows its task progress and results in that
54UI. Pi runs those children without a session, so they cannot be opened or resumed as T3 Code
55threads.
56​
57## Troubleshooting
58​
59- If Pi is unavailable, confirm that the configured binary runs on the server machine, then refresh
60 the provider in Settings.
61- If no models appear, open Pi directly and confirm its authentication and model configuration.
62- If discovery cannot complete, T3 Code keeps Pi available with the `Pi default` model. Start a
63 thread to let the interactive Pi session handle any startup prompt.
64- If a project extension is missing, approve the project in Pi, then start a fresh provider session.
65- If a project skill is missing from the `$` menu, approve the project in Pi and refresh the provider.
66- The context meter appears once Pi reports usage for the thread. Some model providers only
67 report usage when a response completes, so the meter can wait for the first reply.