Skip to content

About

Agentic Coding Tools built for Pi & Herdr

Topics

Resources

Stars

81 stars

Watchers

1 watching

Forks

Repository files navigation

coding-agent-toolkit: a small laptop showing the prompt /> π_, for Pi and Herdr

A monorepo of benchmarked, context-efficient tools I've built for Pi Coding Agent & Herdr Multiplexer

CI Status Pi >= 1.0.0 License: MIT npm downloads: 11.35k per month (November 2026), all five Pi extensions combined. Live count: https://gagansd.github.io/coding-agent-toolkit/badges/npm-downloads.json


Pi extensions

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-slate

pi-slate mid-session: grouped tool calls, a timed thinking row, callouts, and a live sidebar with context, speed and cache stats

Scrolling 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

Slate benchmarks


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-subagents

Benchmarked 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-search

How pi-web-search works: one search tool queries the web (Exa, Parallel, Brave), code (grep.app, Sourcegraph, Context7, GitHub) and URLs (a direct reader, GitHub pages, Jina Reader), optionally ranks the results with a decision model such as Jev, and returns compact cited results.

Compared 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-ask

pi-ask showing a multi-select question in the terminal


Permission 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-automode

How pi-automode decides: every tool call is checked against local rules. Blocklisted commands and protected paths are blocked; allowlisted commands and workspace edits run. Anything else goes to an optional safety review, which lets safe actions run and asks you about the rest: allow once, always allow, or decline.


Herdr mods

Insights

See 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.

Insights dashboard in Herdr with token totals, model rankings and an activity heatmap

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

Design Principles

  • 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.

MIT © Gagan Devagiri

About

Agentic Coding Tools built for Pi & Herdr

Topics

Resources

Stars

81 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages