killeros
extensionmaintainedTUI, goals, and workflow automation for the Pi coding agent
by — · v2.1.32 · published 3d ago
$ pi install npm:killerosSignals
Download trend
9.3K downloads · last 12 weeks (weekly)
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 masthead with versions, model, 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. Each turn must recordcontinuewith evidence and one next action,complete, or the existing blocker decision; otherwise the goal pauses. New goals pause after 20 turns;/goal resumegrants another 20./codex-fast: toggles thepriorityservice tier on Codex requests or reports its status./handoff: starts a fresh linked session carrying visible continuation context./auto-compact: reports, enables, disables, or tunes automatic context compaction.- A
questiontool with single-select and multi-select modes. - Lifecycle hooks (
tool_call,tool_result,agent_settled) from.pi/killeros-hooks.json, plusAGENTS.local.mdloading for trusted projects. - Optional completion sounds for settled requests.
Requirements
- Node.js 22.19.0+
- Pi 0.85.0 or later within the 0.x release line
- An interactive TUI session for the custom header, editor, footer, and
question
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.1.32. Add -l to install only for the current project. Restart Pi after installing.
Commands
/goal View the current goal
/goal <objective> Set an objective
/goal pause Stop automatic continuation
/goal resume Resume automatic continuation
/goal clear Remove the current goal
/codex-fast [status] Toggle or report Codex fast mode
/auto-compact [status|on|off|<percent>]
Inspect or change automatic compaction
/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, sounds, title indicator |
| Print/JSON | No interactive questions, /goal, 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
}
Use /auto-compact status to inspect the effective KillerOS preference, /auto-compact on or /auto-compact off to toggle it, and /auto-compact <percent> to set an integer threshold from 0 through 100. A threshold of 0 does not disable Pi's own token reserve.
handoffMaxTokens caps the /handoff summary output at 8192 tokens by default; raise it when long sessions truncate the summary.
State proof in the objective so the agent can verify it with its normal tools:
/goal Reduce p95 checkout latency below 120 ms, verified by the checkout benchmark, while keeping the correctness suite green
A direct quoted file target binds silent file proof:
/goal Fix `killeros/footer.ts`, verified by npm test
KillerOS captures the file baseline at goal start and only completes when the file is created or changed. A normal response never continues a goal by itself: the agent must record continue, complete, or a blocker decision through killeros_goal_update. Repeated continuation reports and unavailable goal tools pause the goal. New goals pause after 20 turns without warning. An explicit /goal resume on an exhausted goal grants another 20 turns; compaction recovery never grants turns. Restored goals keep their persisted limit.
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. The prepublish check rejects ordinary direct npm publish, but --ignore-scripts can bypass it. Configure npm's trusted publisher for release.yml, set package publishing access to "Require two-factor authentication and disallow tokens", and revoke unused publish tokens. npm maintainers can still publish interactively with 2FA, so workflow-only publishing also depends on maintainer policy.
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