# pi · Reusable computation

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [pi](https://ai-agents-review.com/runtime/pi.md)
- Column: [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) (Programmable capabilities)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/pi/reusable-computation

## Rationale

Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)

## Rubric criteria for this column

- 0: Nothing persists between runs except the transcript
- 1: Reuse only as prose instructions (skills or prompts without executable parts) or in-memory state within one session
- 2: Persisted executable artifacts (skills with scripts, saved programs) rediscovered in later sessions, but no way to invoke them as a unit with inputs
- 3: Level 2, plus a supported way to re-run a stored program or workflow as a unit (recipe, scheduled action, saved script by path, granted program)
- 4: Level 3, plus typed parameters and a recorded result or journal per run, **and** scheduled or triggered execution

## Review finding

Partial. Skills (with scripts), prompt templates and extensions persist on disk. [opt: `+codemode`] QuickJS runs model-written JS; scripts are not saved, but `store()` values persist as session-branch entries. [alt: pi-durable] offers journal-replayed code mode. [P95][P96][P97][P101]

## Evidence cited by the mark

- [P95] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/skills.ts#L164-L195 — Skill discovery ~/.pi/agent/skills, .pi/skills, .agents/skills — [S]
- [P97] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/extensions/codemode/tool.ts#L20-L47 — Codemode `store()` writes appended as `codemode-store` session entries — [S]
- [P101] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/durable/src/codemode/codemode.ts#L10-L15 — [alt: pi-durable] replay-safe code mode via journal + deterministic re-execution — [S]

## Evidence also cited by the review finding

- [P96] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/extensions/codemode/index.ts#L34-L46 — Codemode tool registered `defaultActive: false` — [S]

## Grading record

- Grader A (default / best): 2 / 2
- Grader B (default / best): 2 / 2
