New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@agent-rewind/gateway

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agent-rewind/gateway

Local byte-exact record/replay LLM proxy for AI coding agents: zero-cost replay after a rewind, prompt-cache preservation, deterministic tool-output pruning, and verifiable token-savings accounting.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
7
-58.82%
Maintainers
1
Weekly downloads
 
Created
Source

@agent-rewind/gateway

The token-saving LLM proxy of Agent Rewind — local, byte-exact record/replay for AI coding agents, plus prompt-cache preservation, deterministic pruning, and verifiable savings accounting.

Provides:

  • Byte-exact record/replay (canonicalizeRequest, createReplayer, createMemoryRecordStore) — a request's replay key is a SHA-256 over a deny-list projection, so a byte-equivalent request after a rewind is served from record at zero upstream cost, while a semantically different request is never served a stale answer (false-miss over false-hit, by design).
  • Prompt-cache preservation (planCacheBreakpoints) — inject one cache breakpoint on the static prefix when the agent set none; credit only what it actually caused.
  • Deterministic, lossless pruning (pruneToolOutputs) — collapse duplicate tool_result blocks, replay-safe by construction.
  • Honest metering & gainshare surface (avoidedCostMicros, billableSavedTokens, analyzeTraffic
    • attestAnalysis, reconcileAgainstProviderBill) — priced from the provider's own usage, floored, never over-crediting; reports fold into a verifiable hash chain.
npm install @agent-rewind/gateway

Requires Node ≥ 20. Licence: FSL-1.1-ALv2. See the monorepo for architecture and the full product breakdown.

Keywords

llm

FAQs

Package last updated on 19 Aug 2026

Related posts