Specializing Pi

Wed Mar 11 2026

I’ve written about specializing Codex and Claude Code in the past. Here is how to do something similar for Pi!

I made a small profile extension so I can launch somewhat contained agents with pi --profile <name>.1

A Pi profile in this case is just a small YAML file with some keys like model, thinking level, system prompt, and an allowlist of skills.

model: openai-codex/gpt-5.4
thinking: medium
system: You are SAM, a pragmatic assistant. Concise and useful.
skills:
  - todoist-cli
  - agent-browser

When Pi starts, the extension loads that profile, switches to the configured model, replaces the system prompt for the turn, limits which /skill:* commands are allowed, and keeps sessions isolated per profile.

That gives me tiny task-specific agents without having to fork Pi or maintain a bunch of wrappers. For loosely defined chores, having sam (an assistant with access to my task list, email, …), juror, or other little personas has been surprisingly useful.

Footnotes

  1. Install it by copying the extension file to ~/.pi/agent/extensions/ (or .pi/extensions/ for a project-local setup) and then reloading Pi with /reload.

← Back to home