| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Persistent, context-isolated child threads for the Pi coding agent.
pi-sidethread adds one tool, sidethread. It runs self-contained work in a fresh child Pi conversation and returns the result without copying the child's intermediate exploration into the parent context. A returned thread_id can resume that same child conversation later.
From npm after publication:
pi install npm:pi-sidethreadFrom GitHub:
pi install git:github.com/Jawkx/pi-sidethreadTry it for one Pi run without installing:
pi -e git:github.com/Jawkx/pi-sidethreadPi extensions execute with your user's full system access. Review extension source before installing it.
sidethread({
description: string;
prompt: string;
thread_id?: string;
model?: string;
})Model values use Pi's normal syntax, including optional thinking suffixes such as provider/model:high.
{
description: "inspect auth flow",
prompt: "Inspect the auth flow and report the relevant files and data flow. Do not modify files."
}{
description: "inspect caller",
prompt: "Now inspect the caller you mentioned and report what it validates.",
thread_id: "<id from prior result>"
}Use sidethread when work is self-contained, needs several tool calls, or would add substantial intermediate context to the parent conversation. Good examples include codebase reconnaissance, library research, noisy failure investigation, and independent review.
Prefer Pi's direct tools for a simple file read, targeted search, or work that needs only one or two tool calls. The parent should not duplicate work already delegated to a thread.
Child sessions are stored at:
~/.pi/agent/thread-sessions/<parent-session-id>/<thread-id>/
npm install
npm run check
npm test
npm pack --dry-runTest the local package in Pi:
pi -e . --tools sidethread| Back | FazBrowse Home | New Git URL |