@trevonistrevon/pi-loop
A pi extension for cron/event-based agent re-wake loops and background process monitoring.
Install
pi install npm:@trevonistrevon/pi-loop
Installs from npm into ~/.pi/agent/.
Add -l for project-local (.pi/). Manage with pi list / pi update / pi remove.
What this package can reach
Detected automatically from the source at
version 0.6.6.
This describes access, not safety — you decide whether it's appropriate for what
the package claims to do.
- Behavior — Changes how the agent thinks Modifies the system prompt, injects messages, or rewrites conversation context.
- Extension bus — Talks to other extensions Uses pi.events to emit or listen on a shared channel, so it can coordinate with — or be driven by — other installed extensions.
- Commands — Runs shell commands Spawns processes on your machine.
- Files — Reads files outside your project Touches paths beyond the working directory, such as your home folder.
- New tools — Adds model-callable tools Gives the agent new abilities. Additive and visible, unlike an override.
- UI — Draws its own interface Renders widgets, footers, dialogs or full-screen views.
What it actually did when run
observedLoaded in a sandbox with no network, a read-only filesystem and a recording stand-in for pi's API. This is what it called — not what the source suggests it might.
Tools registered LoopCreateLoopListLoopUpdateLoopDeleteWorkflowCreateWorkflowTransitionMonitorCreateMonitorListMonitorUpdateMonitorStop
Events subscribed agent_endagent_startbefore_agent_startloop:firemonitor:finishedmonitor:startedsession_shutdownsession_startsession_switchtasks:readytasks:rpc:claimtasks:rpc:cleantasks:rpc:createtasks:rpc:heartbeattasks:rpc:pendingtasks:rpc:pending:reply:e4d0e155-9bfb-4e38-9faf-41c12f46463btasks:rpc:pingtasks:rpc:ping:reply:2fc4548d-4430-4d92-a471-9868426d389ctasks:rpc:ping:reply:6f81bdfc-acf8-4e42-b869-31bf9562fd46tasks:rpc:updatetool_execution_endturn_start
APIs called events.emitevents.onhasPendingMessagesregisterCommandregisterToolsessionManager.getSessionIdui.notifyui.setStatus
11 calls the source scan did not predict
on("tasks:rpc:claim") · on("tasks:rpc:clean") · on("tasks:rpc:create") · on("tasks:rpc:heartbeat") · on("tasks:rpc:pending") · on("tasks:rpc:pending:reply:e4d0e155-9bfb-4e38-9faf-41c12f46463b") · on("tasks:rpc:ping") · on("tasks:rpc:ping:reply:2fc4548d-4430-4d92-a471-9868426d389c") · on("tasks:rpc:ping:reply:6f81bdfc-acf8-4e42-b869-31bf9562fd46") · on("tasks:rpc:update") · ui.setStatus
Reached through a value the scan could not follow — passed as an argument, stored on another object, or returned by a helper.
Run against version 0.6.8 on 2026-08-02.
Registration-time behaviour under default settings; other configurations may differ.
Reviews
0 publishedSign in with GitHub to write a review, reply, or vote.
No reviews yet — be the first.
More in Orchestrators
- @kky42/pi-subagents — Claude Code-style subagents for pi.
- pi-agentteam — Multi-agent team orchestration for pi — leader-coordinator pattern with researcher, planne…
- @usirin/pi-loop — Claude Code-style /loop command for pi-coding-agent.
- pi-btw — A pi extension for parallel side conversations with /btw