killeros

TUI, goals, and workflow automation for the Pi coding agent

Packages

Package details

extensiontheme

Install killeros from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:killeros
Package
killeros
Version
2.0.22
Published
Aug 29, 2026
Downloads
7,140/mo · 1,259/wk
Author
killeros
License
MIT
Types
extension, theme
Size
276.2 KB
Dependencies
0 dependencies · 4 peers
Pi manifest JSON
{
  "extensions": [
    "./Killeros.ts"
  ],
  "themes": [
    "./themes/killeros.json"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

KillerOS

A TypeScript extension for the Pi coding agent that replaces the stock TUI and adds long-running goals, reasoning controls, and workflow commands.

What you get

  • A custom TUI: startup card with version, model, provider, working directory, and Git branch; a dark theme with coral accents; a multiline editor with slash-command completion; a footer that tracks model, context, and goal state; settled task receipts with duration and token usage.
  • /goal: set an objective and Pi keeps working toward it across turns, compaction, reloads, and branch navigation. Pause, resume, edit, or clear it anytime.
  • /init: generates a root AGENTS.md from repository evidence, preserving compatible existing rules.
  • /variants: pick a reasoning level supported by the active model.
  • /codex-fast: toggles the priority service tier on Codex requests.
  • /handoff: starts a fresh linked session carrying visible continuation context.
  • Automatic context compaction when remaining tokens drop below 15% of the window (configurable).
  • A question tool with single-select and multi-select modes.
  • Lifecycle hooks (tool_call, tool_result, agent_settled) from .pi/killeros-hooks.json, plus AGENTS.local.md loading for trusted projects.
  • Optional completion sounds for settled requests.

Requirements

  • Node.js 22.19.0+
  • Pi 0.84.3 or later within the 0.x release line
  • An interactive TUI session for the custom header, editor, footer, question, and /init

Install

pi install npm:killeros

Or from GitHub:

pi install git:github.com/KyrosHendrix/pi-KillerOS

Pin a release by appending its tag, for example @v2.0.22. Add -l to install only for the current project. Restart Pi after installing.

Commands

/init                     Generate root AGENTS.md from repository evidence
/goal                     Open goal status, or set an objective with /goal <objective>
/goal edit|pause|resume|clear
/variants                 Reasoning-level selector (/variants high sets directly)
/codex-fast               Toggle Codex fast mode
/notification             Configure the completion sound
/handoff [focus]          Fresh session with continuation context
/clear                    New session after confirmation
/exit                     Quit Pi gracefully

Behavior by mode

Mode What works
TUI Everything
RPC Goals, proactive compaction; no TUI components, /goal edit, /init, sounds, title indicator
Print/JSON No interactive questions, /goal, /init, or proactive compaction

Configuration

The packaged killeros theme activates on TUI start. Compaction triggers by default at 15% tokens remaining, stored in global killeros.json:

{
  "autoCompaction": {
    "enabled": true,
    "percentRemaining": 15
  },
  "handoffMaxTokens": 8192
}

handoffMaxTokens caps the /handoff summary output at 8192 tokens by default; raise it when long sessions truncate the summary.

Completion sounds are off by default; change with /notification in TUI mode. The tab-title indicator requires a Nerd Font.

Development

Strict TypeScript throughout. Tests run on Node's built-in test runner:

npm ci && npm run check && npm test

Releases go through CI on main; do not push version tags manually.

Security

Pi extensions run with your user permissions. Review the source before installing globally. Hook commands run only for projects Pi marks as trusted; check .pi/killeros-hooks.json before enabling project trust. KillerOS accepts that configuration only as a regular, non-linked file no larger than 64 KiB in the project's real .pi directory.

License

MIT © 2026 KyrosHendrix