rezero
Re:ZERO-style implementation loop for pi coding agent: Subaru implements, seven witches review, Return by Death retries.
Package details
$ pi install npm:rezero- Package
rezero- Version
0.2.12- Published
- Jun 8, 2026
- Downloads
- 124/mo · 124/wk
- Author
- juunini
- License
- MIT
- Types
- extension, skill, prompt
- Size
- 428.9 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
],
"skills": [
"./skills/rezero",
"./skills/rezero-init",
"./skills/rezero-plan",
"./skills/rezero-rem",
"./skills/rezero-subaru",
"./skills/rezero-witches"
],
"prompts": [
"./prompts/rezero.md"
],
"image": "./docs/images/rezero.webp"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
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
- We give Subaru a trial.
- Subaru makes an effort to overcome the trial.
- 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. - 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 HEADandgit clean -fdare run to perform Return by Death. - Subaru repeats the process above until he overcomes the trial. The
.rezero/memory/subaru-deaths.mdand.rezero/memory/rem.mdfiles are deleted. - 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. - Subaru sets out on the journey above again to save Rem.
- If Subaru overcomes the given trial and succeeds in saving Rem, he finally gets to rest after a long time.
Concept
Return by Death

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

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.
| Witch | Focus | Example tools |
|---|---|---|
| Echidna | Completeness, edge cases, coverage | self-hosted SonarQube, coverage, Stryker |
| Typhon | Contracts, specifications, public interfaces | typecheck, linter, Spectral, Pact |
| Minerva | User harm, regressions, runtime failures | tests, Playwright, Lighthouse CI, k6 |
| Daphne | Dependency/resource consumption | OSV-Scanner, Knip, source-map-explorer, hyperfine |
| Carmilla | Deception in UI/docs/names/proofs | screenshots, axe, lychee |
| Sekhmet | Maintainability, dead code, duplication | self-hosted SonarQube, Knip, jscpd |
| Satella | Integration, security, policy, consistency | CodeQL, Gitleaks, Trivy, CI |
Verdict: pass, warning, fail.
Rem (Spoiler Warning)

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.