move pi-llm-performance to monorepo, update README and add deno.json

This commit is contained in:
2026-04-28 10:06:03 +01:00
parent 0cf13ed54e
commit a38c76c65e
8 changed files with 328 additions and 8 deletions
+12 -8
View File
@@ -1,22 +1,26 @@
# pi-llm-performance
LLM performance metrics extension
LLM performance metrics extension — captures and displays TTFT, prefill, and generation speeds from pi agent turns.
## How to install
## Development
Add to your global pi settings:
This package lives in the `pi-extensions` monorepo.
```bash
pi install /Users/willem/dev/spikes/llm/custom-coding-agent/packages/pi-llm-performance
pnpm install # workspace setup
deno test # run tests
```
Or add manually to `~/.pi/agent/settings.json`:
## Usage
```
Add to your pi settings (`~/.pi/agent/settings.json`):
```json
{
"packages": [
"/Users/willem/dev/spikes/llm/custom-coding-agent/packages/pi-llm-performance",
...
"../dev/spikes/llm/monotonic-pi-extensions/packages/pi-llm-performance"
]
}
```
Then reload pi:
+8
View File
@@ -0,0 +1,8 @@
{
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.0"
},
"tasks": {
"test": "deno test src/"
}
}
+5
View File
@@ -14,5 +14,10 @@
"@std/internal@1.0.12": {
"integrity": "972a634fd5bc34b242024402972cd5143eac68d8dffaca5eaa4dba30ce17b027"
}
},
"workspace": {
"dependencies": [
"jsr:@std/assert@1"
]
}
}