opencode tool plugin for pruning previous tool outputs from future model context, avoiding context creep.


License
MIT
Install
npm install nocreep@0.4.0

Documentation

nocreep

nocreep is an opencode tool plugin for pruning previous tool outputs from future model context, avoiding context creep.

It allows the model to strip or prune the last tool call output(s) right after they return, removing them from the context of future generation.

This doesn’t save tokens directly but decreases token creep without any negative performance impact, since the same frontier model decides which outputs to strip and never retroactively removes any outputs later.

Installation

Add nocreep to your opencode config:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["nocreep"]
}

Restart opencode. It will install and load the npm plugin automatically.

nocreep supports OpenCode v1 and v2. The package root remains the v1 entry point; v2 is auto-discovered through nocreep/server and is also exported as nocreep/v2.

Show token savings stats with npx -y nocreep --stats.

References: opencode plugins

License

Copyright (c) 2026 Linus Schlumberger

MIT License, see LICENSE.md.