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

Tendr Skill Adds CLI-Based Long-Term Memory with Hierarchy to Reduce Token Usage
A new OpenClaw skill separates reasoning from execution for long-term memory operations, using a CLI tool to handle structural changes deterministically. It supports wikilinks and explicit semantic hierarchy across files to reduce token consumption and prevent error accumulation.

Memex: Open-Source Memory Plugin for Claude Cowork
Memex is an open-source plugin that gives Claude Cowork persistent memory across sessions using a tiered context loading system. After running /memex:init once, Claude briefs itself in about 20 seconds per session and picks up where you left off.

Warp Terminal Goes Open Source with Agentic Dev Environment
Warp is now open-source, rebranding as an agentic development environment with a built-in coding agent and support for bringing your own CLI agents like Claude Code, Codex, and Gemini CLI.

Open Source Browser Tool for Testing MCP Servers Without Installation
An open source web tool called MCP Playground lets developers test MCP servers directly in their browser using WebContainers, a WASM Node.js runtime. It can run npm-based MCP servers locally without backend installation and connect to remote servers via URL.