Custom extensions for pi.
We built these for our own way of using Pi; we focus on keeping the model's context clean and giving it tools that do one thing well.
Want to contribute? Read CONTRIBUTING.md before opening issues or PRs.
| Package | Description |
|---|---|
binary-file-guard |
Block read from reading binary files |
llms-txt |
Fetch and cache llms.txt from domains that publish it (still rare) |
search-delegator |
Block web tools on the main model and delegate to a searcher subagent |
staan-search |
Staan AI European search tool for pi |
web-fetch |
Fetch web pages and convert HTML to Markdown |
Install each extension with pi install:
pi install npm:@m4ss/pi-binary-file-guard
pi install npm:@m4ss/pi-llms-txt
pi install npm:@m4ss/pi-search-delegator
pi install npm:@m4ss/pi-staan-search
pi install npm:@m4ss/pi-web-fetchThe search-delegator package also requires pi-subagents:
pi install npm:pi-subagentsWe considered publishing a Scaleway LLM Provider package but hope to integrate it into Pi directly instead. For now, configure Scaleway manually in your local ~/.pi/agent/models.json:
{
"providers": {
"scaleway": {
"baseUrl": "https://api.scaleway.ai/$SCW_PROJECT_ID/v1",
"api": "openai-completions",
"apiKey": "$SCW_SECRET_KEY",
"models": [
{
"id": "glm-5.2",
"name": "GLM 5.2",
"reasoning": true,
"contextWindow": 256000,
"maxTokens": 16384,
"cost": {
"input": 1.8,
"output": 5.5,
"cacheRead": 0,
"cacheWrite": 0
},
"compat": {
"thinkingFormat": "zai"
}
}
]
}
}
}Add the models you need from Scaleway's supported models list.
Each package is licensed under MIT. See the LICENSE file in each package.
See CONTRIBUTING.md.