
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
pi-agent-flow
Advanced tools
Flow-state transition for the Pi coding agent.
Isolate context, run specialist agents in parallel, and get structured results back!
Long conversations can get messy—context bloats, tool calls get duplicated, and the real signal gets lost in the noise. Pi Agent Flow solves this by forking each task into a focused, isolated child process with only the context it actually needs.
The parent stays clean; the workers stay focused.
read or grep commands.trace or dispatch parameters to execute reads, writes, edits, or bash commands in one round-trip step without extra model latency.
Install the extension via the Pi CLI:
pi install npm:pi-agent-flow
Then, jump right in and transition tasks in parallel:
pi
{ "flow": [
{ "type": "scout", "intent": "Map auth code", "aim": "Find JWT logic" },
{ "type": "audit", "intent": "Audit auth module", "aim": "Security audit" }
] }
Pro tip: You can also add
{ "packages": ["npm:pi-agent-flow"] }to your~/.pi/agent/settings.jsonfile.
If pi loads npm:pi-agent-flow from ~/.pi/agent/npm, rebuilds do not apply until you sync:
git clone https://github.com/tuanhung303/pi-agent-flow.git
cd pi-agent-flow
npm run verify:pi
verify:pi runs trace/flow UI regression tests and copies dist/ + agents/ into the pi npm install. Use npm run check:dist in CI or before PRs to block legacy -----/max context placeholders in dist/.
Want to learn more? Check out our docs:
scout, build, debug, etc.).Made for faster, smarter coding.
FAQs
Flow-state transition extension for Pi coding agent.
The npm package pi-agent-flow receives a total of 1,050 weekly downloads. As such, pi-agent-flow popularity was classified as popular.
We found that pi-agent-flow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.