Galadriel: Open-Source Warm-Cache Harness for Persistent Claude Agents

A Reddit user has open-sourced Galadriel, a harness for persistent Claude agents that achieves 87% cost savings and sub-3s latency on 100K token contexts by optimizing prompt caching. The project, released under MIT license, targets the memory and cost issues often called the "Goldfish Problem" in AI coding agents.
Key Features
- 3-Tier Stacked Caching: Separate cache breakpoints for tool definitions, system prompts (
CLAUDE.md), and trailing conversation history. This avoids cache invalidation across different context segments. - Integrated MemPalace: A vector-based persistent memory system that does not break the prompt cache, enabling permanent recall.
- Privacy-first: Designed for private subnets — no middleman, no message caps, just your API key and rules.
- CLAUDE.md Guidelines (Karpathy-style): Built-in rules to prevent agent bloat (unnecessary context expansion).
Benchmarks
According to the author, tested against OpenClaw/Cursor workflows:
- Cost: $10 for every $100 normally spent (87% reduction).
- Latency: 100K token context drops from 11s to <3s (85% improvement).
Who It's For
Developers running persistent Claude agents for tasks like infrastructure management or codebase maintenance who are paying high API costs due to uncached context.
Setup
The harness is currently customized for Discord (the author's personal setup), but the caching logic is generic. Clone the repo and adapt the transport layer for your needs.
GitHub
github.com/avasol/galadriel-public (MIT License)
📖 Read the full source: r/openclaw
👀 See Also

OpenClaw Browser Relay Chrome Extension Alternative to Manual Configs
A Reddit user reports success with a Chrome extension for OpenClaw browser relay after manual configuration attempts caused system crashes and debugging headaches.

Exploring API-to-API Interactions: A Closer Look at Automation
A recent discussion on Reddit delves into the intricacies of API-to-API phone calls, focusing on practical implementation and potential challenges using tools such as Postman and Twilio.

Helix: Open-Source Framework Turns Claude into Personal AI Agent for macOS
Helix is an open-source framework that connects Claude via Claude Code in Terminal to macOS through four MCP server plugins, enabling Claude to control applications, maintain persistent memory, run scheduled tasks, and operate with local voice processing.

TradingView MCP Server Enables Claude to Backtest Trading Strategies
A developer has released an MCP server that allows Claude to backtest six trading strategies using Yahoo Finance data without API keys. Setup involves adding one line to the claude_desktop_config.json file.