name: invoking-subagents
description: Spawns subagents with configurable tool access that return just the answers without flooding your context. Use for summarizing extensive git history, comparing across multiple repositories in parallel, or processing large diffs/logs.
compatibility: Requires synu shell plugin and claude CLI tool
license: GPL-3.0-or-later
metadata:
author: Amolith amolith@secluded.site
Invoke with PI_PERMISSION_LEVEL=level pi -p 'prompt'. DO NOT impose a timeout.
Important: Subagents are scoped to their cwd. To invoke a subagent in another folder, cd there && PI_PERMISSION_LEVEL=level pi ....
Use a precise and thorough prompt. You may invoke multiple when appropriate and in parallel if helpful. Once they're running, you may either stop and wait for me to tell you they're finished or continue with other work. Aggressively restrict their permissions:
- minimal: read-only commands such as ls, cat, git status, etc.
- low: + write/edit files
- medium: + npm, git, make, cargo, etc.
- high: everything (though particular dangerous commands are still disallowed)
Example exploring git history in another repo:
cd /path/to/other/repo && PI_PERMISSION_LEVEL=minimal pi -p 'Using only git log and git show, summarise the major user-facing changes in HASH..HASH. Do not provide code snippets or technical details. Consider user-facing changes, like being able to set a port-out PIN or adding a new button or changing font sizes.'"