omp packages

@zharskiy/pinata1.6.0

Extensions for the pi coding agent: background subagents you run, watch and message from the main session (a panel below the editor and an /agents overlay), session limits that hand the main conversation over to a new session before its context fills up,

GitHub Actions Published 2 days ago MIT ~1.5K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pinata

Background agents, session awareness and a calmer terminal for the pi coding agent.

Extensions and skills in one pi package (@zharskiy/pinata), built on one small shared platform.

npm version

Quick start · Sandbox · Development · Contributing and licence

Why

Pi is a lean, extensible coding agent. This package adds what a long working day needs on top of it. The main session delegates work to background agents and keeps its own context for judgement. It hands itself over to a fresh session before its context fills, and it shows what everything costs. The terminal stays quiet and readable while all of that runs.

What it looks like

 ✓ read src/stats.py:5-14
   ↳ 10 lines

 ✗ 3 agents · 4m 2s · 35 calls · 64.7k tokens · $0.25
   ↳ ✓ scout  Map the auth module · model-a:low
       1m 5s · 4 calls · 12.3k tokens · $0.04
     ✗ worker  Fix the login redirect · model-a:low
       tests failed twice · 2m 10s · 31 calls · 52.4k tokens · $0.21

 ── ⠹ Pondering · 12s (esc to interrupt) ─────────────────────────────

 my-project on main · session-name                    model-name · thinking high
 context 13.0k of 163k · cache 73%                         851.3k tokens · $0.34
 shift+tab to cycle thinking · ← to list agents

Tool rows from transcript, an agent batch from subagents, the working line from working-indicator and the status block from footer.

Quick start

pi install npm:@zharskiy/pinata                    # the whole package, without the sandbox; pi update --extensions updates it
pi install ./pinata                                # from a local checkout; add -l for the current project only
pi -e ./pinata/extensions/<name>/index.ts          # one extension for a single run, from a checkout; git pull, then /reload in pi

To run pi in the sandbox with them, install with pinata instead (Sandbox).

The package installs two skills, pinata-self-description and pinata-code-style (the code style the subagents implementer writes by, which pi lists for the main session too), and these extensions:

Agents and tools

  • subagents: background agents you run, watch, message and stop from the main session, optionally in their own git worktree, with MCP tools. A panel below the editor and an /agents overlay.
  • questionnaire: a tool the model uses to ask you a batch of multiple-choice questions in one inline form.
  • style: /style concise for short, result-first replies from the main session; /style normal turns it off.
  • mcp-import: /mcp-import <claude|cursor|codex> copies MCP servers into pi's mcp.json. A dry run unless you add apply.

Session awareness

  • session-limits: hands the main session over to a new session before its context fills up.
  • spending: the session's total spend in the footer, subagents at every depth included.
  • context: /context shows what fills the context window, per category, with cache hit rates.
  • notifications: one terminal notification when pi waits for your input or a dialog waits unanswered.
  • prune: removes sessions, agent runs and handoff folders untouched for 180 days (days), keeping every session whose chain (sessions linked by parent, either way) holds an open or recent one; /prune shows what each interval would remove and asks before it removes, or sets the automatic interval.
  • model-default: the model and thinking level you last picked (Enter in the selector, /model <name>, cycling, Shift+Tab) become pi's saved defaults, as Ctrl+S does, and a model switch keeps your thinking level.
  • update-notice: under pinata, the company update check's "Update Available" or "Update Required" block and its team changelog, shown once per entry, at session start.

Look and feel

  • footer: a three-line status block: folder, branch, model, thinking level, context, cache, cost and a key-hint row.
  • transcript: tool calls as state rows: a glyph, a title and a one-line outcome you expand with ctrl+o.
  • composer: the input drawn between two full-width rules, with pi's › cursor as the prompt.
  • working-indicator: a rotating verb and the elapsed time next to pi's spinner (Pondering · 12s).
  • command-aliases: friendlier names for built-in commands: /continue, /clear, /exit.

An extension with settings reads ~/.pi/agent/pi-<name>.json, which .pi/pi-<name>.json overrides key by key in a trusted project; its README lists the keys. An invalid value is dropped and reported, and the file's other keys still apply. Settings are read at each session start, so /reload applies a change.

Ask pi how to use or configure any of them, or the sandbox: the pinata-self-description skill points it at these docs, and /skill:pinata-self-description <question> makes it look.

Start pi and try:

Try What you see
/agents The agents menu: view running and finished agents, set up models, create a new agent.
/context What fills the context window, with cache hit rates.
/style concise Short, result-first replies from the main session; subagents are unaffected.
Coming from another tool
  • Skills: nothing to do when they live in .agents/skills. Pi reads ~/.agents/skills and .agents/skills as well as its own ~/.pi/agent/skills and .pi/skills.
  • Agent definitions and instruction files: pi reads AGENTS.md and CLAUDE.md as they are. Rewrite agents by hand: /agents create <name> sets up a new agent (see subagents), then copy the old prompt into its body.
  • MCP servers: /mcp-import claude, /mcp-import cursor or /mcp-import codex (add project for the project's servers) shows what it would copy; add apply to write it, then /reload. OAuth sign-ins do not transfer: sign in again with /mcp.

Sandbox

The package also ships pinata, a host-side command that runs pi in a per-repository Linux container on a Colima VM (macOS). After pinata install, cd repo && pi starts pi with your providers, MCP servers, settings and packages. The container holds placeholders instead of credentials, and its only network exit is a proxy on the host that allows a list of hosts and injects the real credentials there. pi --no-sandbox runs host pi.

npm install -g --legacy-peer-deps @zharskiy/pinata@<version>   # macOS with pi, Homebrew and Node 22.19 or newer
pinata install

Pinata never installs, updates or removes pi itself. Install, update, uninstall and everyday use: the pinata README. Settings: its configuration reference. What it guarantees: its threat model. How releases are made: RELEASING.md.

Development

npm install
npm run check                                     # typecheck, biome, knip, unit tests; no credentials, no network
npm run test                                      # unit tests only
PI_LIVE_MODEL=provider/id:low npm run test:live   # live tests with real agents, local only, costs money
PI_LIVE_MODEL=provider/id:low npm run evals       # prompt-quality evals with real agents, local only, costs money

npm run check is what CI runs. Live tests and evals never run in CI. Rules for coding agents are in AGENTS.md; the evals are described in test/evals/README.md.

How live tests and evals use your credentials

Both need PI_LIVE_MODEL=provider/id[:thinking] set to a model you have pi credentials for (in pi's agent dir, ~/.pi/agent/auth.json, or the dir in PI_CODING_AGENT_DIR). The optional PI_LIVE_CHORE_MODEL puts the chore agents on a second model. Without it, or without credentials, they fail at once with a message saying what is missing.

Each suite links your auth.json (and copies models.json, if present) into a temporary agent dir and points pi at it. Your AGENTS.md, skills, extensions and MCP config stay out. A token pi refreshes during a run goes through the link into the real file, so it is not lost. Everything they create lives in temporary directories, except the evals' results in the gitignored test/evals/.results/.

Contributing and licence

Issues and pull requests are welcome. Run npm run check before you open one. Before changing code, read ARCHITECTURE.md and the changed unit's own ARCHITECTURE.md; the rules for code, docs and commits are in AGENTS.md. Released under the MIT licence.