Skip to content

About

Collection of extensions for PI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

pi-workflow

Portable pi config: extensions, subagents, prompts, and settings. Clone on any machine, run ./install.sh, and you have the same pi workflow.

Quick start

git clone git@github.com:scaabel/pi-workflow.git ~/Projects/pi-workflow
cd ~/Projects/pi-workflow
./install.sh

That's it — the script is idempotent, safe to re-run.

What it does

install.sh symlinks four paths into ~/.pi/agent/ and installs the pi packages listed in settings.json:

Repo path Symlinked to What's in it
extensions/ ~/.pi/agent/extensions custom extensions (ask-user, learning, pi-workflow plan-mode, subagent, dashboard, web-search)
agents/ ~/.pi/agent/agents subagent definitions (assessor, planner, reviewer, scout, web-scout, worker)
prompts/ ~/.pi/agent/prompts prompt templates (implement, implement-and-review, scout-and-plan)
settings.json ~/.pi/agent/settings.json theme, model defaults, enabled models, package list

Because the config is symlinked into this repo, editing your workflow and committing it is one place — same as the dotfiles repo.

Synced vs. not synced

Synced here: extensions, agents, prompts, settings.json.

Not synced (machine-local):

  • ~/.pi/agent/auth.json — credentials; re-authenticate with /login or API keys.
  • ~/.pi/agent/workflow-overrides.json — workflow role-model + thinking-level overrides.
  • ~/.pi/agent/sessions/ — session history.
  • ~/.pi/agent/models-store.json — regenerable model catalog.
  • ~/.pi/agent/npm/, ~/.pi/agent/git/ — installed packages, re-derived from settings.json.
  • ~/.pi/plans/ — plan artifacts, one folder per project.
  • ~/.pi/learning/ — learning-layer state (optional; copy manually if you want continuity).

Knowledge repo

The workflow reads/writes a separate git-backed pi-knowledge repository (PI_KNOWLEDGE_DIR, or settings.json knowledgeDir, default ~/.local/share/pi/knowledge). Run /knowledge setup to scaffold it, then git clone/git init and add your remote manually.

Layout:

  • plans/{active,completed,abandoned}/ — implementation intent.
  • projects/<project>/features/<feature>/ — feature.md, implementation.md, learnings.md.
  • learning/{concepts,patterns,debugging,architecture,tools}/ — reusable concepts.
  • decisions/ — ADR-style decisions.
  • _index/ — generated indexes (/knowledge index).

Every artifact has an id + type and a relationships: list; the graph is validated by /knowledge check and committed via /knowledge review / /knowledge commit. No automatic commits or pushes.

Re-authenticating

auth.json is never synced. On a new machine, start pi and run /login (subscription providers) or set API keys via environment variables.

About

Collection of extensions for PI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages