pi-rtk 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A token reduction plugin for pi-coding-agent that intelligently filters tool output to reduce token consumption by 60-90% while preserving essential information.
|
|
4
4
|
|
|
5
|
-
Based on the RTK (Rust Token Killer) specification from [RTK
|
|
5
|
+
Based on the RTK (Rust Token Killer) specification from [RTK](https://github.com/rtk-ai/rtk).
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -17,35 +17,28 @@ Based on the RTK (Rust Token Killer) specification from [RTK.md](RTK.md).
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Recommended: install the package via the pi package manager.
|
|
21
|
+
|
|
22
|
+
### Using pi install (recommended)
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
|
-
|
|
24
|
-
cd ~/.pi/agent/extensions
|
|
25
|
-
npm install pi-rtk
|
|
25
|
+
pi install npm:pi-rtk
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Or add the package to your pi agent config to load automatically. Edit ~/.pi/agent/settings.json and include:
|
|
29
|
+
|
|
29
30
|
```json
|
|
30
31
|
{
|
|
31
|
-
"
|
|
32
|
+
"packages": [
|
|
33
|
+
"npm:pi-rtk"
|
|
34
|
+
]
|
|
32
35
|
}
|
|
33
36
|
```
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
If you need to install manually (older pi versions), you can clone into the extensions directory:
|
|
36
39
|
|
|
37
40
|
```bash
|
|
38
|
-
# Clone and point pi at the directory
|
|
39
41
|
git clone https://github.com/mcowger/pi-rtk ~/.pi/agent/extensions/pi-rtk
|
|
40
|
-
|
|
41
|
-
# Or load directly via flag
|
|
42
|
-
pi --extension ~/.pi/agent/extensions/pi-rtk
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Load for a single session
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
pi --extension /path/to/pi-rtk
|
|
49
42
|
```
|
|
50
43
|
|
|
51
44
|
## Configuration
|
package/package.json
CHANGED