Skip to content

Pi Dcp

Pi extension that trims wasted context before each model call by deduplicating repeated tool results, stripping failed payload args, and letting the model summarize closed spans.

Stars
17
Language
TypeScript
License
AGPL-3.0
Published by
Community
Author
Davidcreador
Last verified
Oct 2026

Davidcreador/pi-dcp

User repository on GitHub

View on GitHub

Cut LLM token spend in long Pi sessions, automatically. Dedup redundant tool calls, strip errored payloads, and let the model summarize closed work-streams — all without ever modifying your session history.

Forks
3
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Cut LLM token spend in long Pi sessions, automatically. Dedup redundant tool calls, strip errored payloads, and let the model summarize closed work-streams — without rewriting original session entries. A faithful port of @tarquinen/opencode-dcp tailored to pi's extension API. License: AGPL-3.0-or-later. Run npm run check for local validation. A long agentic loop in Pi typically wastes tokens on: Repeated lookups — the same grep or read re-issued five turns later.

Quoted from the project's README. Read the full README.

Highlights

  • Deduplicates identical tool calls by keeping the newest result and marking older copies, plus purges failed call args after N turns.
  • Adds a model-callable compress tool with per-id and span modes, plus usage-based and iteration-based nudges.
  • Provides slash commands for session context, lifetime stats, sweep staging, manual mode, and Jev trial controls.
  • Keeps compress, write, edit, todo, task, and skill tools exempt from pruning, with turn-based protection windows.

Watch out

Long-session pruning changes the request view rather than rewriting stored entries, and Jev selection is experimental with no established benefit. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

27GitHub stars
Pi extension that replaces many small tool calls with one typed TypeScript execute_tools call, type-checked before running in a sandbox.
Jev Tools & CLIs#community#jevbest#catalog-import
38GitHub stars
Async supervisory layer for Hermes Agent that locks Definitions of Done, proves mechanical criteria locally, and calls Jev only for unresolved semantic checks under a token budget.
Jev Tools & CLIs#community#jevbest#catalog-import
4GitHub stars
Shell CLI that sends state plus noul, choice, and score questions to Jev in one request and prints probabilities, choices, and rubric positions for pipes and scripts.
Jev Tools & CLIs#community#jevbest#catalog-import
1GitHub stars
A local React and Express editor that scores an X draft across six dimensions, from hook strength to a slop penalty, by asking Jev several narrow rubric questions in one structured call, with a deterministic fallback when no key is set.
Jev Tools & CLIs#community#jevbest#catalog-import
4GitHub stars
A bring-your-own-key tool that pastes a public note.com article URL and returns Jev's whole-article writing-quality judgment plus eight detail signals as an AI Slop Score. Cloudflare Pages deploy, MIT licensed, explicitly not an authorship detector.
Jev Tools & CLIs#community#jevbest#catalog-import
197GitHub stars
A Chinese-first desktop workbench for local models whose JEV page runs typed noul, choice and score questions against a local engine or a cloud key, alongside a gateway, RAG knowledge base and shared memory.
Jev Tools & CLIs#community#jevbest

From the Jev guides

Original write-ups on what this entry is for.

The request shape barely changes across surfaces; the surrounding contract does. When to call the API directly and when a gateway, a Worker binding, or a router entry earns its extra hop.
Jev Tools & CLIs#gateway#vercel#cloudflare
Read article
Taking a decision checkpoint out of Python: what the GGUF and browser WebGPU exports preserve, what they change, and the parity evidence the model cards publish.
Jev Tools & CLIs#open-models#local#onnx
Read article
Jev labels a record that already exists. Code moves, flags, or holds it. How the document, mail, and transfer tools keep the action out of the model.
Jev Tools & CLIs#classification#email#security
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai