This SDK provides the Pi Coding Agent for AI-assisted coding within a workshop. The agent is sandboxed in the workshop container. Credentials are persisted between workshop updates.
A minimal workshop:
# workshop.yaml
name: pi-env
base: [email protected]
sdks:
- name: pi
channel: latest/stable
actions:
pi: pi "$@"
pi-prompt: pi -p "$@"This creates a basic Pi environment. The agent is sandboxed by the workshop.
- No prerequisite SDKs are required.
- Place your project files in your project directory. No special layout is required; Pi works with any codebase.
- On launch, the SDK puts
pion thePATH, installsfdandripgrepfor pi's search tools, and adds a hint about the workshop environment to~/.pi/agent/AGENTS.md. An existingAGENTS.mdis kept; the hint is appended once.
Once the workshop is ready:
workshop shell
piThis opens an interactive Pi session inside the workshop. You can ask pi to read files, write code, run commands, and navigate your project.
-
Interface:
mount -
Workshop target:
/home/workshop/.pi -
Purpose: Preserves Pi coding agent's credentials and settings between workshop updates. You can also use
workshop remountto control its contents on the host. To mount your existing~/.pisettings into the workshop, stop the workshop first, remount, then start it again. The workshop hint is then appended to your host~/.pi/agent/AGENTS.mdas well:workshop stop <workshop-name> workshop remount <workshop-name>/pi:pi-config ~/.pi workshop start <workshop-name>
This SDK doesn't define any slots.
- Workshop forum: Workshop Discourse
- Please review our Code of Conduct before participating.
All contributions, including code, documentation updates, and issue reports, are welcome!
- Open issues or pull requests on the official repository.
Copyright 2026 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 (LGPLv2.1) as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Pi Coding Agent is subject to MIT license.