My personal pi setup. This repo is a distributable source tree, not the live agent directory.
agent/— files installed into~/.pi/agentagent/extensions/pi-obsidian-brain— symlink to the Brain-backed pi memory extensionscripts/install.sh— linksagent/*into~/.pi/agentscripts/update.sh— updates this repo, npm dependencies, and pi packages
- Agents in
agent/agents/ - Prompt templates in
agent/prompts/ - Skills in
agent/skills/- repo-owned skills live here as normal directories
- shared skills are symlinks to
~/.agents/skillsto avoid duplicate pi skill warnings
- Theme files in
agent/themes/ - Bash permission preferences in
agent/settings.json - Brain-backed memory extension symlink in
agent/extensions/pi-obsidian-brain - Public pi packages:
git:github.com/obra/superpowersnpm:pi-lensnpm:@tintinweb/pi-subagentsnpm:pi-web-accessnpm:@juicesharp/rpiv-todonpm:pi-mcporter
Pi loads skills from both ~/.pi/agent/skills and ~/.agents/skills. If the same skill exists as a real directory in both places, pi will report a skill conflict and keeps the ~/.pi/agent copy.
To avoid stale duplicate copies, this repo keeps these shared skills as symlinks to ~/.agents/skills:
agents-sdkcloudflarecloudflare-email-servicedurable-objectssandbox-sdkweb-perfworkers-best-practiceswrangler
Install or sync those shared skills into ~/.agents/skills before using this setup. Repo-owned skills, such as fetching-maven-sources, remain vendored directly in agent/skills.
auth.json- Session history
- API keys or provider credentials
- A default provider or model
- Node.js and npm
- git
- pi installed from https://pi.dev
Clone this repo somewhere outside ~/.pi/agent:
git clone git@github.com:cmptr/pi-oh-my.git ~/Code/pi-oh-my
cd ~/Code/pi-oh-myInstall the agent config into ~/.pi/agent:
./scripts/install.shConfigure the Brain-backed memory extension in ~/Code/pi-obsidian-brain/config.json, then start pi:
piThen authenticate with /login or configure API keys, and choose your preferred model in pi.
Inside pi, check Brain memory health:
/brain status
From the repo:
./scripts/update.shThis runs git pull --ff-only, refreshes local npm dependencies if needed, and runs pi update. pi update updates pi packages, including git:github.com/obra/superpowers.
If the Brain memory extension changed, restart pi or run /reload.
git pull --ff-only
npm --prefix agent install
pi update