← Catalog

@abelxiaoxing/cadence

Conversation-driven Pi workspace: persistent native and WebUI workflows, explicit plan approval, checks and local delivery.

Package

Install

Install with PiG

pig install npm:@abelxiaoxing/cadence

Install with Pi

pi install npm:@abelxiaoxing/cadence
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.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./src/index.ts"
  ]
}

README

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

Cadence

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

Cadence turns Pi into a conversation-driven engineering workflow: enter /cadence [goal], agree on the result once, and a persistent owner builds, recovers and verifies it. Use it from the terminal or the optional WebUI.

How it works

flowchart TD
    A["/cadence goal"] --> B["Investigate (readonly)"]
    B --> C["Align, then approve once"]
    C --> D["Independent assignments run in parallel worktrees"]
    D --> E["Real checks + automatic Agent review"]
    E -->|"pass"| F["Local merge into your branch"]
    E -->|"fail"| G["Self-revise"]
    G --> D
    F --> H["Curate knowledge (fixed budget)"]
    H -.-> B
flowchart LR
    A["Check fails"] --> B["Repair"] --> C["Re-plan the route"] --> D["Recorded deviation"] --> E["Stop only for outside conditions"]
flowchart LR
    T["Pi terminal"] <-->|"attach / detach"| O[("Persistent owner")]
    W["WebUI<br/>board · branches · steer"] <-->|"attach / detach"| O
    O --> X["Workers in worktrees"] --> Y["Your branch"]
    O -.-> K[".cadence/ knowledge"]

Why Cadence

(blank)(blank)
Work outlives the windowClients only attach and detach; the owner keeps running.
Nothing changes before approvalReadonly investigation, then one readable agreement you confirm.
Results you can trustReal checks and independent review; model prose never counts as a pass.
Finishes on its ownAfter approval it repairs, re-plans or records a deviation, and stops only for conditions outside the repository.
Faster by designIndependent assignments run side by side in their own worktrees.
Many tasks, one folderStart as many tasks as you like in the same checkout; each lands by itself on the branch it started from, merged with the others and with your own changes.
Knowledge compoundsA route table and a fixed budget: workers read what matches their code, new lessons replace stale ones.
WebUI that shows and steersAssignment board, revisions, deviations, branches, thinking, and steer or queue a message mid-reply.
One historyBrowser conversations are the project's Pi sessions; continue in either place.

Cadence is a trusted assistant, not a sandbox: its agents use host tools in the approved checkout or worktree. Use it on code you can review and recover.

Install

Requires Node >=22.19.0 and Pi logged in to a model provider; Cadence reuses Pi's login.

npm install -g @abelxiaoxing/cadence
pi install "$(npm root -g)/@abelxiaoxing/cadence"
cadence server install   # optional WebUI and boot service

cadence server install prints a private link (http://127.0.0.1:17423/?token=…). The token grants access to your workspace: keep the link private.

Use

Browser

  1. Open the ordinary address (for example http://127.0.0.1:17423) and enter your access key. This browser stays signed in for up to a year, including after service restarts, while the token and cookie remain valid. The printed private link still works (cadence token-link --reveal prints it again).
  2. Pick a working folder with the lower-right button.
  3. Send /cadence [goal], then answer the clarifying questions.
  4. Click Implement this plan and follow the board and the Subagents dock. Images can be pasted or dropped (details).

Terminal

Enter /cadence <goal> once in a trusted project's Pi conversation; the mode stays on after a goal completes. exit cadence or 退出 Cadence leaves it and never cancels accepted work. /cadence-history [run-id] is readonly. There is no task or worker limit to set: independent work runs side by side, and shell checks queue by what the machine can take. Details: conversation mode, history.

cadence project open /absolute/project   # one owner, port and history per project

Manage the service

cadence server status
cadence server restart     # after an upgrade or a .env / models.json change
cadence server upgrade     # fetch, install, restart; rolls back if the new version fails
cadence server stop
cadence server uninstall   # before npm uninstall -g
cadence doctor             # leftovers and recent recoveries; --fix for the rest

A crash or power loss needs no cleanup: the next start recovers and says what it did. See service management and remote access.

Development

Pi can also load a local checkout or packed tarball: add its absolute or relative path to Pi's packages, or try pi -e ./cadence. Cadence requires Pi 1.5.0 or a compatible 1.x host; development pins and tested runtimes are not universal compatibility promises.

bun install
bun run verify

Guidance by area is routed from .cadence/project.md and AGENTS.md. verify is the single fast gate; it needs an official Node build and a private temporary directory (verification).

License

MIT. Bundled adaptations, fonts and vendors keep their own licenses: reuse and distribution, third-party notices.