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

PACT: A Programmatic Governance Framework for Claude Code After Agent Failure Patterns
A developer built PACT (Programmatic Agent Constraint Toolkit) after three months of recurring Claude Code failures on a 350+ file mobile app. The framework replaces unenforceable rules with mechanical constraints that physically block violations through pre-tool-use hooks.

Running Multiple Claude Code Sessions in Parallel with Git Worktrees
A developer shares how they use git worktrees to run multiple Claude Code sessions on separate branches without stashing or context switching. Review diffs, merge, and move on.

RCFlow: Open-source orchestrator for Claude Code, Codex, and OpenCode with multi-session management
RCFlow is an AGPL v3 orchestrator for AI coding agents (Claude Code, Codex, OpenCode) providing a unified UI to manage parallel sessions across machines, with worktree support, task planning, artifact tracking, and live telemetry.

oMLX introduces SSD KV caching for Apple Silicon, reducing OpenClaw response times from 30-90 seconds to 5 seconds
oMLX is a new backend that persists KV cache blocks to SSD in safetensors format, preventing cache invalidation when context shifts. This reduces OpenClaw response times from 30-90 seconds down to 5 seconds on subsequent turns.