killeros
TUI, goals, and workflow automation for the Pi coding agent
Package details
Install killeros from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:killeros- Package
killeros- Version
2.1.24- Published
- Sep 5, 2026
- Downloads
- 6,865/mo · 1,422/wk
- Author
- killeros
- License
- MIT
- Types
- extension, theme
- Size
- 331.9 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"themes": [
"./themes/killeros.json"
],
"extensions": [
"./Killeros.ts"
]
}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. New goals pause after 20 turns;/goal resumegrants another 20./init: generates a rootAGENTS.mdfrom repository evidence, preserving compatible existing rules./variants: pick a reasoning level supported by the active model./codex-fast: toggles thepriorityservice 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
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,
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.1.24. Add -l to install only for the current project. Restart Pi after installing.
Commands
/init Generate root AGENTS.md from repository evidence
/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
/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, /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.
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. 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.
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