Documentation Index
Fetch the complete documentation index at: https://docs.selftune.dev/llms.txt
Use this file to discover all available pages before exploring further.
Status: Experimental
selftune supports Pi as an experimental tracked platform. Pi can feed session evidence into selftune through extension hooks and batch ingest, and selftune can run judge and optimizer workflows throughpi -p.
Setup
Initialize with the Pi agent type, or letselftune init auto-detect Pi if the runtime is already installed:
Hooks
selftune pi install writes extension hook scripts under ~/.pi/extensions/selftune/ for:
messagetool_calltool_resultsession_shutdown
LLM-backed workflows
Pi can run selftune’s LLM-backed workflows:- Judge and validation calls use
pi -p - Optimizer agents are inlined into the system prompt because Pi does not have a native subagent flag
- selftune runs these calls in ephemeral mode (
--no-session) so validation traffic does not pollute normal Pi session history
What gets tracked
selftune can capture the same core evidence types from Pi sessions as other supported runtimes:- Skill invocations — when a skill is triggered and how it performs
- Execution facts — outcomes, grades, and quality signals
- Improvement signals — low-rated or failed interactions that feed evolution proposals
Syncing data
After using Pi, sync your session data to the selftune cloud:Limitations
- Pi does not expose a native subagent flag, so selftune emulates optimizer agents by inlining their instructions into the system prompt
- This integration is still experimental and less battle-tested than Claude Code