← Catalog

@mjasnikovs/pi-nop

Read-only subagents for pi: repo search, web fetch, npm package docs, web search, and a /plan panel.

Extension

Install

Install with PiG

pig install npm:@mjasnikovs/pi-nop

Install with Pi

pi install npm:@mjasnikovs/pi-nop
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/mjasnikovs/pi-nop/master/assets/hero.png",
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.4 (README.md). PiG does not review it.

pi-nop. Your daily driver. Minimal, read-only, guarded. Files, a web page and npm docs go into a guarded subagent. One answer goes back to pi.

pi-nop

Read-only subagents for pi: repo search, web fetch, npm package docs, web search, and a /plan panel.

npm license pi extension types

What it does

When pi reads a big file, a web page or a package's types, all of that text stays in its context. pi-nop hands the reading to a subagent with its own session. Only the answer comes back.

No subagent can edit, write or run commands. Each tool can use its own model, so a small local model can do the reading. Guards stop a run that loops or stalls and start it again. Tested on Gemma 12B and Qwen 3.8.

Install

pi install npm:@mjasnikovs/pi-nop

Needs pi 1.6.0 or later. subagent-docs needs npm on PATH, and tar too outside Windows. Windows 10 1803 and Server 2019 or later ship the tar.exe it uses.

Tools

The main agent calls these on its own. Name a tool in your prompt to make it use one.

ToolWhat it returns
subagentFindings from reading many files, not the files. It uses read, grep, find and ls.
subagent-fetchWhat a query asks for from one web page, not the page.
subagent-docsAn answer from an npm package's types and README, with the latest version. Reads the installed copy, or downloads one.
web-searchUp to 10 results with title, URL and snippet. exa and ddg need no key. brave needs BRAVE_SEARCH_API_KEY.

A page or package has to fit in 75% of the subagent model's context window. A bigger one fails the call. On a small local model, pick a model with a larger window for subagent-fetch and subagent-docs.

Plan

/plan [request] opens a panel with four steps. It needs the interactive UI. Plain /plan reopens the current plan. /plan with text starts a new one and drops the current one.

  1. Goal. The subagent writes one GOAL: line. Type to change it, or accept it.
  2. Questions. It asks one at a time. Pick an option or type your own answer.
  3. Steps. It writes the steps, the files to touch and the test commands. Type a change, or pick "Edit plan" to change it by hand.
  4. Hand over. "Send to main context" sends the plan to the main agent.

After hand over the footer shows plan: files 3/4 · outside 1. That's 3 of 4 plan files written, and 1 file written outside the plan. Run /plan again to see which steps are done.

Config

/nop-config opens the panel. The file is ~/.pi/agent/pi-nop.json.

KeyValuesDefaultMeaning
subagent, subagent-fetch, subagent-docs{model, thinkingLevel}pi's current oneModel per tool. /plan uses the subagent one.
web-search.engineexa, brave, ddgexaSearch engine.
concurrency1 to 4unlimitedSubagents running at once.
staleMinutesoff, 5, 10, 20, 3010Kill a run when the model sends nothing this long.
toolCallMinutesoff, 5, 10, 15, 3015Kill a run when one tool call takes this long.
restarts0 to 32How many times a killed run goes again. Also how often /plan sends a bad answer back.
{
    "subagent": {"model": "llama-server/qwen3.8", "thinkingLevel": "low"},
    "web-search": {"engine": "ddg"},
    "restarts": 1
}

model is provider/id, as pi lists it. thinkingLevel is off, minimal, low, medium, high, xhigh or max. One unknown key or bad value makes pi-nop ignore the whole file, with a warning that names it. The first /nop-config change then saves the old file as pi-nop.json.broken, or .broken-2 and on when older copies are there. A model pi no longer lists falls back to pi's current one, with a warning.

PI_NOP_SEARCH_ENGINE overrides the engine. PI_NOP_SEARCH_ENDPOINT overrides its URL.

Guards

A guard that trips kills the run and starts it again with a note. Past restarts the run fails.

GuardTrips on
loopThe same tool call five times in twenty, or one file re-read five times with no new lines.
staleNo output for staleMinutes. The clock pauses while a tool runs.
tool-callOne tool call past toolCallMinutes.
groundEight tool calls in a row that repeat or fail.
churnTool results past twice the context window.
leakTool call markup in the final answer.
repeatThe same block of lines eight times in a row. One line alone does not count.
circleTwo sentences said eight times each in one thinking block.

Development

bun install
bun run test
npm run lint

License

MIT © Edgars Mjasnikovs