https://github.com/amaiya/patchpal is a Python-native coding agent harness for regulated environments where local models
are applied to private data on comparatively more resource-constrained machines. The latest version includes a practical
implementation of hand-off compaction from NVIDIA's "You Don't Need Long Context"
(https://arxiv.org/pdf/2611.05306v1) among other methods for dealing with small context windows in local models.
These "small window" methods are automatically activated when the context window is
set at or below 64K. The methods can be used with context windows as small as 8192, but 32768 seems to be a sweet spot
for smaller GPUs and models (e.g., A1000 with 6GB VRAM).
The "small window" techniques are straightforward but surprisingly useful and would probably be easy to implement as
Pi.dev extensions. For a closer reproduction of the paper's methods (including single-action compaction) packaged for
Claude Code, see https://github.com/che-shr-cat/short-context-agent by Grigory Sapunov.
wiseprobe•12m ago
These "small window" methods are automatically activated when the context window is set at or below 64K. The methods can be used with context windows as small as 8192, but 32768 seems to be a sweet spot for smaller GPUs and models (e.g., A1000 with 6GB VRAM).
Code: https://github.com/amaiya/patchpal Docs: https://amaiya.github.io/patchpal/
The "small window" techniques are straightforward but surprisingly useful and would probably be easy to implement as Pi.dev extensions. For a closer reproduction of the paper's methods (including single-action compaction) packaged for Claude Code, see https://github.com/che-shr-cat/short-context-agent by Grigory Sapunov.