The CI extension bootstraps a dedicated branch-scoped Sprite, runs one shell command there, and retains the environment by default so failures can be inspected rather than disappearing with a transient CI runner.
/sprite-ci [command]
With no argument, the command comes from ci.command, defaulting to npm test. The model-facing sprite_ci tool accepts optional command and name fields; the slash command generates the Sprite name automatically.
CI:
- Generates
<namePrefix>-<project>-<branch>unless the tool supplies a name. - Runs the same process as bootstrap against that Sprite.
- Executes the CI command in the bootstrapped remote workspace.
- Creates an additional diagnostic checkpoint when the command fails.
- Applies the configured cleanup policy.
The CI Sprite is an explicit target. Running CI does not select it and does not redirect concurrent reads, writes, shell commands, status rendering, or checkpoint hooks away from the user's current Sprite.
{
"ci": {
"command": "npm test",
"namePrefix": "pi-ci",
"cleanup": "never"
}
}Cleanup modes:
never(default): retain every CI Sprite.on-success: destroy successful environments and retain failures.always: destroy the environment after any completed run.
Use never or on-success when post-failure inspection matters. A failure checkpoint is deleted with the Sprite when cleanup is always.
/sprite-ci
/sprite-ci npm run test:integration
/sprite-use pi-ci-my-project-feature-x /workspace/my-project
Name components are normalized to lowercase letters, digits, and hyphens and truncated to fit Sprite naming limits. CI operates from Git state cloned by bootstrap; it does not transfer uncommitted local changes.