repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/the-system/README.md

Raw

The System

Task branches and The System skills for Pi.

Install / load

Loaded through the root pi-ext package.

Commands / tools / settings

Commands:

Tools:

Hooks:

Renderers:

Settings: none.

E2E

Run root mise run e2e first to install browsers and execute every extension suite. After that bootstrap, run mise run e2e here, or mise //extensions/the-system:e2e from the repository root, to test the mockup browser feedback round trip in Chromium and Firefox.

Behavior

Task prompts are stored as session entries. push-task updates task status and notifies the UI after storing a task. The extension uses Pi session-tree navigation to isolate work and return results. Finishing a task attaches the last assistant response as a task-result entry. Aborting a task abandons the branch and leaves the task pending. Discarding a task removes the pending task without starting a branch. /auto waits for idle, starts pending tasks, finishes current tasks, and stops when there is no task work left. If /auto starts with no pending tasks, it notifies that there is nothing to run. mockup serves content from memory on 127.0.0.1 and stores no project files. It rejects full HTML documents in options[].html with an agent-facing fix message. It returns action, selected, notes, and annotations. It also ships skills from extensions/the-system/skills through Pi package resources.

Markdown source
File outline
# The System

Task branches and The System skills for Pi.

## Install / load

Loaded through the root [pi-ext package](../../README.md).

## Commands / tools / settings

Commands:

- `/start-task` starts the active pending task in a fresh branch.
- `/discard-task` drops the active pending task.
- `/finish-task` returns from a task branch with the last assistant result.
- `/abort-task` abandons the current task branch without a summary.
- `/auto` runs pending task branches until no task work remains.

Tools:

- `push-task` stores a focused task prompt for isolated execution.
  - `prompt`: task prompt to store.
  - `inherit_context`: marks the task as inheriting context.
- `mockup` opens HTML-fragment mockup options in a browser and blocks until browser feedback returns.
  - `title`: browser page title.
  - `question`: visual question for the human.
  - `options`: one to four `{ id, label, description?, html }` fragments.
  - `multi`: allow multiple selected options.

Hooks:

- `session_start`, `turn_end`, and `session_tree` update task status.
- `session_shutdown` stops `/auto`.

Renderers:

- `task-result` renders a finished task result entry.

Settings: none.

## E2E

Run root `mise run e2e` first to install browsers and execute every extension suite.
After that bootstrap, run `mise run e2e` here, or `mise //extensions/the-system:e2e` from the repository root, to test the mockup browser feedback round trip in Chromium and Firefox.

## Behavior

Task prompts are stored as session entries.
`push-task` updates task status and notifies the UI after storing a task.
The extension uses Pi session-tree navigation to isolate work and return
results.
Finishing a task attaches the last assistant response as a `task-result` entry.
Aborting a task abandons the branch and leaves the task pending.
Discarding a task removes the pending task without starting a branch.
`/auto` waits for idle, starts pending tasks, finishes current tasks, and stops
when there is no task work left.
If `/auto` starts with no pending tasks, it notifies that there is nothing to
run.
`mockup` serves content from memory on `127.0.0.1` and stores no project files.
It rejects full HTML documents in `options[].html` with an agent-facing fix message.
It returns `action`, `selected`, `notes`, and `annotations`.
It also ships skills from `extensions/the-system/skills` through Pi package resources.