Skillware adds prompt_rewriter for deterministic token compression in Claude API agent loops

Skillware has added a prompt_rewriter skill that reduces Claude API costs in agentic loops by compressing prompts before sending them to the LLM. The middleware uses heuristic compression to cut token usage by 50-80% while maintaining deterministic behavior across iterations.
How it works
The tool operates as middleware that sits between your agent and the Claude API. It applies aggressive compression to prompts before they're sent to the LLM, ensuring you only pay for the signal and not the noise. Because the compression is deterministic, agent behavior remains stable across loops.
Compression levels
- Low: Normalizes whitespace
- Medium: Strips conversational fillers (please, ensure, etc.)
- High: Aggressively removes stop-words and non-essential punctuation
The tool addresses the problem of runaway costs in iterative agent loops where massive context windows lead to massive bills. It's open-source and available on GitHub, with the developer looking for more skills, feedback, ideas, and contributions.
📖 Read the full source: r/ClaudeAI
👀 See Also

SynapsCAD: Open-Source Desktop App for OpenSCAD with Claude AI Integration
SynapsCAD is an open-source desktop application that combines an OpenSCAD code editor, real-time 3D viewport, and AI assistant. Built entirely in Rust with Bevy 0.15 and egui, it supports Claude API integration for natural language 3D CAD coding.

Context Mode MCP Server Cuts Claude Code Context Usage by 98%
Context Mode is an MCP server that reduces Claude Code context consumption from 315 KB to 5.4 KB by sandboxing tool outputs. It supports 10 language runtimes and includes a knowledge base with full-text search.

memv MCP Server: Persistent Structured Memory for AI Agents
memv, an open-source Python memory layer for agents, now ships with an MCP server. It provides five tools for persistent, structured memory with per-user isolation and LLM-optional extraction.

AxonFlow Plugin for OpenClaw: Pre-Run Tool Approval & PII Redaction
A self-hosted OpenClaw plugin that checks tool arguments before execution, pauses risky calls for human approval, and redacts PII from outbound messages. Uses OpenClaw lifecycle hooks — no agent code changes needed.