← Catalog

big-gulp-reads

Override pi's built-in read tool with a larger, configurable truncation limit

Package

Install

Install with PiG

pig install npm:big-gulp-reads

Install with Pi

pi install npm:big-gulp-reads
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/big-read.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.2 (README.md). PiG does not review it.

big-gulp-reads

A pi package that replaces the built-in read tool with one whose truncation limit you control. The built-in caps file reads at 50KB / 2000 lines with constants no setting can change; big-gulp-reads raises that to 200KB / 5000 lines by default and lets you change it at any time without restarting.

Install

pi install npm:big-gulp-reads

New sessions pick it up automatically — the extension registers a tool named read that replaces the built-in. The offset/limit parameters, continuation notices, and image attachments all work exactly as before.

Usage

CommandEffect
/big-gulp-readsShow current limits
/big-gulp-reads 400Set the byte cap to 400KB
/big-gulp-reads lines 10000Set the line cap to 10000
/big-gulp-reads resetBack to defaults (200KB / 5000 lines)

Limits persist across sessions in ~/.pi/agent/big-gulp-reads.json and apply to the current session immediately.

Caveats

  • Watch your context window. A full 131k-token context is only ~650KB of prose, so a couple of unbounded reads can consume it — pick a limit that fits your model.
  • Images are not auto-resized. pi does not export its image-resize helper, so image reads are sent as attachments at full size; providers with image dimension caps may reject very large images.