{"repo":"MasuRii/pi-rtk-optimizer","free":true,"listed":false,"github":"https://github.com/MasuRii/pi-rtk-optimizer","clone":"git clone https://github.com/MasuRii/pi-rtk-optimizer.git","description":"Pi extension that optimizes RTK command rewriting and tool output compaction for the coding agent.","language":"TypeScript","stars":241,"topics":["pi-coding-agent","pi-extension","rtk","token-optimization","tui","command-rewrite","output-compaction","coding-agent","hack","pi"],"license":"MIT","category":"cli-tools","readme_excerpt":"pi-rtk-optimizer RTK command rewriting and tool output compaction extension for the Pi coding agent. pi-rtk-optimizer automatically rewrites bash tool commands to their rtk equivalents and compacts noisy tool output ( bash , read , grep ) to reduce context window usage while preserving actionable information for the AI agent. Features Command Rewriting - Automatic rewriting or suggestion-only mode for common development workflows - Delegates bash command rewrite decisions to the installed rtk rewrite command, keeping RTK as the source of truth for supported commands, shell parsing, bypasses, and compound-command behavior - Runtime guard when rtk binary is unavailable (raw commands run unchanged and repeated missing-binary rewrite probes are avoided) - /rtk show and /rtk verify surface the resolved rtk executable path when the host can resolve it - Pi-specific shell safety fixups for rewritten commands on Windows Output Compaction Pipeline Multi-stage pipeline to reduce token consumption: Stage Description ------- ------------- ANSI Stripping Removes terminal color/formatting codes Test Aggregation Summarizes test runner output (pass/fail counts) Build Filtering Extracts errors/warnings from build output Git Compaction Condenses git status , git log , git diff output Linter Aggregation Summarizes linting tool output Search Grouping Groups grep / rg results by file Source Code Filtering none , minimal , or aggressive comment/whitespace removal with userscript metadata preservat","default_branch":null,"files":null,"tree":[],"storefront":"/r/MasuRii","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MasuRii/pi-rtk-optimizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}