A monorepo of benchmarked, context-efficient tools I've built for Pi Coding Agent & Herdr Multiplexer
All extensions need Pi Coding Agent >=1.0.0. Each one lists how many tokens it adds to every model request.
Minimal terminal UI for Pi Coding Agent, with split sidebars, media previews and near-native performance.
(0 tokens overhead)
pi install npm:pi-slateScrolling a 3,000-message session with every Slate surface on, both at rest and while the agent is streaming a reply and running a tool:
| Pi Coding Agent | With Slate | |
|---|---|---|
| Frames painted for 800 scroll events, at rest | 307 | 305 |
| Frames painted for 800 scroll events, agent working | 388 | 387 |
| 95th-percentile frame, agent working | 10.2 ms | 8.4 ms |
| Slowest frame, at rest | 9 ms | 14 ms |
| CPU time, agent working | 3.10 s | 3.21 s |
| CPU time over 5 s idle | 0.00 s | 0.03 s |
Tiny subagent harness with over 80% less token overhead, built to stay token-efficient with newer LLMs.
(1,123 tokens overhead)
pi install npm:@gagansd/pi-subagentsBenchmarked with the most popular subagent package, pi-subagents, on five multi-step workflows published by Anthropic
pi-subagents |
@gagansd/pi-subagents |
||
|---|---|---|---|
| Package size | 11.6 MB | 103 KB | 99% smaller |
| Tokens per run, Kimi-K3 | 639k | 331k | 48% fewer |
| Tokens per run, Grok-4.6 | 979k | 256k | 74% fewer |
Method, scripts and scoring: pi-subagents benchmarks.
Cited web and code search that works without API keys, with optional result ranking.
(383 tokens overhead)
pi install npm:@gagansd/pi-web-searchCompared with the most popular web access package, npm:pi-web-access, on the same searches and pages:
pi-web-access |
@gagansd/pi-web-search |
||
|---|---|---|---|
| Tool definition and prompt | 1,124 tokens | 383 tokens | 66% smaller |
| Typical search result | 1,470 tokens | 1,014 tokens | 31% smaller |
| Pages read, of 102 | 91 | 97 (95 locally) | 6 more pages |
pi-web-search 0.5.0, November 2026.
An interactive TUI tool that lets the agent ask you before it decides.
(519 tokens overhead)
pi install npm:@gagansd/pi-askPermission gate for Pi Coding Agent: command/path rules, optional thresholded safety review, local approvals, and protected-path blocks using SystemOne models and deterministic rules.
(0 tokens overhead)
pi install npm:@gagansd/pi-automodeSee where your tokens go across Pi Coding Agent, Codex, Claude Code and OpenCode: model rankings, usage trends and an activity heatmap. Everything stays on your machine, with no account.
To install, give this to your coding agent (needs Herdr and Node.js >=22.15):
Install Herdr Insights by following
https://github.com/GaganSD/coding-agent-toolkit/blob/main/herdr-insights/INSTALL.md
- Minimal by design: small tools, small schemas, and as little of the agent's context window as possible.
- Keyless by default: web and code search work without API keys, and Insights reads local session files without an account.
- Native integration: Best-effort internal package use to avoid supply-chain risk. Use Pi and Herdr's own tools where possible to avoid redundancy.


