Skip to content
canonicalPublic

About

Pi coding agent for the terminal.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

59 Commits

Folders and files

Repository files navigation

Pi SDK for Workshop

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.


Reference workshop

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.


Using the SDK

Prerequisites, project layout

  1. No prerequisite SDKs are required.
  2. Place your project files in your project directory. No special layout is required; Pi works with any codebase.
  3. On launch, the SDK puts pi on the PATH, installs fd and ripgrep for pi's search tools, and adds a hint about the workshop environment to ~/.pi/agent/AGENTS.md. An existing AGENTS.md is kept; the hint is appended once.

Start a coding session

Once the workshop is ready:

workshop shell
pi

This opens an interactive Pi session inside the workshop. You can ask pi to read files, write code, run commands, and navigate your project.


Plugs (resources this SDK consumes)

pi-config

  • Interface: mount

  • Workshop target: /home/workshop/.pi

  • Purpose: Preserves Pi coding agent's credentials and settings between workshop updates. You can also use workshop remount to control its contents on the host. To mount your existing ~/.pi settings into the workshop, stop the workshop first, remount, then start it again. The workshop hint is then appended to your host ~/.pi/agent/AGENTS.md as well:

    workshop stop <workshop-name>
    workshop remount <workshop-name>/pi:pi-config ~/.pi
    workshop start <workshop-name>

Slots (resources this SDK provides)

This SDK doesn't define any slots.


Documentation and guidance


Community and support


Contributions

All contributions, including code, documentation updates, and issue reports, are welcome!


License and copyright

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.

About

Pi coding agent for the terminal.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors