repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/neko/README.md

Raw

neko

Tiny animated editor cat for Pi.

Adds a terminal cat reacting to agent and tool activity.

Install / load

Loaded through the root pi-ext package. See root README.

Commands / tools / settings

Commands:

Tools: none.

Hooks:

Settings:

Behavior

On session start, when enabled, neko hides Pi's built-in working row and installs a custom editor component. When disabled or on shutdown, it restores the working row and default editor.

The cat renders one line above the editor. It follows the cursor after a 420ms input debounce, respects editor padding, and clamps itself to terminal width.

Activity state drives sprite/color:

Markdown source
File outline
# neko

Tiny animated editor cat for Pi.

Adds a terminal cat reacting to agent and tool activity.

## Install / load

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

## Commands / tools / settings

Commands:

- `/neko` or `/neko toggle` — toggle enabled state.
- `/neko on` — enable.
- `/neko off` — disable.
- `/neko status` — show current state.

Tools:
none.

Hooks:

- `session_start`
- `agent_start`
- `agent_end`
- `tool_execution_start`
- `tool_execution_end`
- `tool_result`
- `session_before_compact`
- `session_compact`
- `session_shutdown`

Settings:

- `neko.enabled` in Pi agent settings.
  Defaults to enabled unless set to `false`.
- `editorPaddingX` from project `.pi/settings.json` when positive, otherwise
  from Pi agent settings.

## Behavior

On session start, when enabled, neko hides Pi's built-in working row and
installs a custom editor component.
When disabled or on shutdown, it restores the working row and default editor.

The cat renders one line above the editor.
It follows the cursor after a 420ms input debounce, respects editor padding, and
clamps itself to terminal width.

Activity state drives sprite/color:

- normal — idle editor.
- thinking — agent running.
- working — one or more tools running.
- compacting — between `session_before_compact` and `session_compact`, with a
  180s failsafe.
- error — flashes for 2.5s after an error tool result.
- sleeping — normal state after 30s without input.