pi-delegate
Skill0 starsChanged 48 days agoMITView on GitHub
Run Pi Coding Agent or Oh My Pi (OMP) as a bounded headless delegate. Use when the user asks to delegate to Pi/OMP, test a Pi setup through a real model, or obtain a Pi-backed second opinion. Do not use for interactive sessions or unrelated CLIs.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- letya999/pi-delegateword for word, first seen Oct 15, 2026
- amElnagdy/delegate-skillstheir own version, first seen Jul 29, 2026
Other versions2 projects use a version of this.
Word for word · 1
- letya999/pi-delegate★ 0100% same
Edited · 0
None found.
Wrote their own version · 1
- amElnagdy/delegate-skills★ 2.6ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run Pi or OMP once in non-interactive print mode and return the captured result.
- Very specific: line 15
Keep normal tool approval by default.
- Distinctive: line 24
Always use a finite timeout.
- Distinctive: line 26
Treat the delegate response as evidence, not proof.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pi Delegate
Run Pi or OMP once in non-interactive print mode and return the captured result.
Workflow
- Resolve the project directory and confirm it exists.
- Choose the runtime named by the user. Use
--runtime pifor ordinary Pi; use--runtime omponly for OMP. - Use
scripts/delegate_pi.py. Pass--profileonly for an existing OMP profile. For Pi,--agent-dirselects the complete Pi config/auth directory; use it for an experiment target only when that directory is already authenticated. The wrapper never copies credentials between the normal Pi home and a target. - Keep normal tool approval by default. Add
--auto-approveonly for an authorized task in a trusted directory. For an observer that may write only its separate state YAML, use a Pi--toolsallowlist such asread,grep,find,ls,write; use--no-toolsonly when no inspection is needed. - Report the response, exit status, runtime, and output directory. If files may have changed, inspect the diff and verify independently.
Invariants
- Authentication comes from the selected Pi/OMP installation or profile. Never read, print, copy, or pass OAuth tokens and API keys.
- Invoke the executable directly, never through a shell. The wrapper uses
OMP_BINorPI_BINfor an explicit executable and otherwise checks PATH plus the usual Bun bin directory. - Pi receives its working directory through the subprocess cwd and uses Pi-native flags (
--no-session,--approve); OMP receives its own--cwd,--max-time, and approval flags. - Pi-only
--extension,--skill, and--prompt-templatepass explicit provider-managed resources into a new context while keeping authentication in the selected normal Pi profile. This is useful when a provider target is not itself authenticated. - Always use a finite timeout. A timeout terminates the process tree and returns exit code 124.
- The wrapper writes stdout, stderr, and
result.json, then prints one JSON manifest. A zero exit with an empty response is a failure. - Treat the delegate response as evidence, not proof. For setup experiments, require filesystem/provider evidence plus install and rollback results.
Example
py scripts/delegate_pi.py --runtime pi --cwd C:\work\project --timeout 3m --task "Report the active experiment marker."Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

