Safety notes
Verified with notes
Routes bash/user shell command output through rtk for lower context cost.
Routes bash/user shell command output through rtk for lower context cost.
Static scan findings
This is a first-pass static screen, not a formal audit. It flags patterns worth reading before install.
MEDIUM · spawn_shell
index.ts
import { execFileSync } from "node:child_process";return localBashOperations.exec(
MEDIUM · token_access
README.md
[Pi](https://github.com/badlogic/pi-mono) coding agent extension that uses [rtk](https://github.com/rtk-ai/rtk) to reduce LLM token usage for shell command execution.
MEDIUM · token_access
package.json
"description": "Pi extension that routes bash commands through rtk (Rust Token Killer) for LLM token savings",
MEDIUM · spawn_shell
.pi/prompts/opsx-onboard.md
# Windows (PowerShell)# Windows (PowerShell)# Windows (PowerShell)
MEDIUM · token_access
.pi/prompts/opsx-bulk-archive.md
- Delta adds "JWT Token Handling" requirement
MEDIUM · spawn_shell
.pi/skills/openspec-onboard/SKILL.md
# Windows (PowerShell)# Windows (PowerShell)# Windows (PowerShell)
MEDIUM · token_access
.pi/skills/openspec-bulk-archive-change/SKILL.md
- Delta adds "JWT Token Handling" requirement
MEDIUM · token_access
openspec/changes/archive/2026-03-15-optimize-user-bash/proposal.md
This change extends optimization to that user-visible path so `pi-rtk` can reduce token usage for shell output intentionally included in LLM context, while preserving the meaning o
MEDIUM · token_access
openspec/specs/shell-optimization/spec.md
Define how `pi-rtk` optimizes shell command execution to reduce LLM token consumption while preserving normal shell behavior when optimization cannot be applied.
Package scripts captured
package.json
{
"format": "prettier --write .",
"format-check": "prettier --check *.ts",
"lint": "eslint .",
"sort-package-json": "npx sort-package-json",
"type-check": "tsc --noEmit"
}