notebook p.0 running 01 / 11
Pi Durable, told by one small character

The Life of Pi Durable

An agent that keeps a notebook. It writes every step down before it moves on, so crashes, restarts and long waits never make it forget.

Scroll to follow Pi

What each prop means

In the storyIn Pi Durable
The golden notebookSQLite storage, with checkpoints throughout each task
Slip stamped #job-42requestId: retries find the original submission instead of admitting it again
Storm, then the ghostProcess crash, then Harness.open on the same file
"Not safe to repeat"A tool without replay: "safe"
Little mint helpersSubagents: conversations owned by a task
Sleeping through day and nightA task with status: "waiting", answer kept with api.memo
Hammer vanishesLive config or extension swap, such as readOnly
Two Pisfork(entryId)
The parrotA cheap judge model screening events (Jev)

From delegated task to teammate

Give Pi a responsibility: keep incoming work moving, and bring you the decisions it cannot own.

A scoped handoff

Delegate a task

  1. Hand off a bounded taskA human gives one clear slice of work.
  2. Subagent works and reportsThe result returns to the parent conversation.
  3. Choose the next handoffAnother focused task can go to a subagent.
An ongoing responsibility

Work like a teammate

  1. Agree a role and its limitsPeople set the responsibility, signals and permissions.
  2. A configured signal arrivesPi resumes the saved case and works it forward.
  3. Report or pass back a decisionPeople keep the calls outside the assigned remit.

Like a reliable teammate on your side of the court: follows the agreed play, moves work forward, and passes the ball back when it is your call.

A durable, proactive role can still use subagents for scoped jobs; the two patterns work together.

Choose an example to trace the work.

  1. 01 · Incoming signal

    Check the signal

    Drop repeats and irrelevant updates.

  2. 02 · Durable case

    Reopen the case

    Recover context and unfinished work.

  3. 03 · Gather evidence

    Investigate

    Run checks and independent reviews.

  4. 04 · Classify

    Choose next step

    Fix, ask or suggest.

  5. 05 · Bounded action

    Act within limits

    Make a bounded change, then verify.

  6. 06 · Outcome

    Report or wait

    Share the outcome. Wait for new information.

After restart:reload the saved case and recheck what still needs doing.

Signals are checked before work begins; saved cases continue with fresh evidence, bounded actions or a human decision.

DurableSaved state and recovery after interruption.
ProactiveConfigured signals wake or resume the role.

Possible extensions: support inbox · incident queue · review queue. Each needs configured inputs, tools and permissions.

Illustrative workflow inspired by an in-progress PR role agent; broader queues are potential extensions.

Get my Pi Durable agents skill ↗