← Catalog

rezero

Re:ZERO-style implementation loop for pi coding agent: Subaru implements, seven witches review, Return by Death retries.

Skill

Install

Install with PiG

pig install npm:rezero

Install with Pi

pi install npm:rezero
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": "./docs/images/rezero.webp",
  "skills": [
    "./skills/rezero",
    "./skills/rezero-init",
    "./skills/rezero-plan",
    "./skills/rezero-rem",
    "./skills/rezero-subaru",
    "./skills/rezero-witches"
  ],
  "prompts": [
    "./prompts/rezero.md"
  ],
  "extensions": [
    "./extensions"
  ]
}

README

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

English | 한국어 | 简体中文 | 日本語 | Español | Português (BR) | Français | Русский | Deutsch

Re:ZERO Loop

Re:ZERO Loop is an agent workflow inspired by Return by Death from Re:ZERO -Starting Life in Another World-.

Installation

Pi

pi install npm:rezero

Claude Code

/plugin marketplace add epsilondelta-ai/rezero
/plugin install rezero@rezero-marketplace

Codex

codex plugin marketplace add epsilondelta-ai/rezero

After that, install rezero from /plugins and start a new session.

Usage

In Pi:

/rezero <task>

In Claude Code:

/rezero:run <task>

In Codex:

$rezero:run <task>

/rezero, /rezero:run, and $rezero:run check the init state (.rezero/tools.md marker + .rezero/memory/ ignore). If it is missing, init runs first automatically.

Return by Death BGM

When Re:ZERO Loop performs Return by Death, the plugin plays assets/bgm.mp3 by default.

Use these commands to disable BGM for the current project:

/rezero bgm false
/rezero bgm off
/rezero:run bgm false
/rezero:run bgm off
$rezero:run bgm false
$rezero:run bgm off

Use these commands to enable it again:

/rezero bgm true
/rezero bgm on
/rezero:run bgm true
/rezero:run bgm on
$rezero:run bgm true
$rezero:run bgm on

These commands write .rezero/memory/config.json:

{
  "bgm": false
}

You can also disable BGM for one run or for your shell profile:

export REZERO_BGM_DISABLE=1

Workflow

  1. We give Subaru a trial.
  2. Subaru makes an effort to overcome the trial.
  3. But, as always, he may fail and Return by Death.
    This is a little awkward, but at this point the Seven Witches judge Subaru's fate.
    Each of the Seven Witches judges Subaru's fate using her own metrics. You can check here what metrics they use.
  4. If Subaru's effort fails and he Returns by Death, the Seven Witches' evaluation is remembered in .rezero/memory/subaru-deaths.md. (That file is included in gitignore, so it is not reset.)
    After that, git reset --hard HEAD and git clean -fd are run to perform Return by Death.
  5. Subaru repeats the process above until he overcomes the trial. The .rezero/memory/subaru-deaths.md and .rezero/memory/rem.md files are deleted.
  6. If the checkpoint is updated after overcoming the trial, but there are items that the witches evaluated as warnings, they are recorded in .rezero/memory/rem.md.
  7. Subaru sets out on the journey above again to save Rem.
  8. If Subaru overcomes the given trial and succeeds in saving Rem, he finally gets to rest after a long time.

Concept

Return by Death

Subaru

git reset --hard HEAD
git clean -fd

This was inspired by Subaru's Return by Death.
The idea was borrowed from the question of whether one can really do things properly while holding messy context on top of already messy code.

Seven Witches

Witches' Tea Party

As a fan of the original work, it does feel a little awkward that the Seven Witches judge Subaru's fate,
but evaluating from multiple perspectives is a pretty good idea, so the concept was borrowed.

WitchFocusExample tools
EchidnaCompleteness, edge cases, coverageself-hosted SonarQube, coverage, Stryker
TyphonContracts, specifications, public interfacestypecheck, linter, Spectral, Pact
MinervaUser harm, regressions, runtime failurestests, Playwright, Lighthouse CI, k6
DaphneDependency/resource consumptionOSV-Scanner, Knip, source-map-explorer, hyperfine
CarmillaDeception in UI/docs/names/proofsscreenshots, axe, lychee
SekhmetMaintainability, dead code, duplicationself-hosted SonarQube, Knip, jscpd
SatellaIntegration, security, policy, consistencyCodeQL, Gitleaks, Trivy, CI

Verdict: pass, warning, fail.

Rem (Spoiler Warning)

Rem

She is the main reason Subaru sets out on his journey in the original work.
He does it to save Rem.

In the original work, even after the White Whale subjugation succeeded and the checkpoint was updated,
Rem had her existence eaten by the Sin Archbishop of Gluttony and could no longer wake up.

Inspired by that point, I thought: even if the checkpoint is updated,
if there are warnings, what if we see them as Rem?

License

This project is distributed under the MIT License.