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

✍️ OpenClawRadar📅 Published: April 29, 2026🔗 Source
Galadriel: Open-Source Warm-Cache Harness for Persistent Claude Agents
Ad

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).
Ad

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

Ad

👀 See Also

Command Center: AI Coding Env for People Who Care About Quality
Tools

Command Center: AI Coding Env for People Who Care About Quality

Command Center is an agentic coding environment focused on the hard parts of AI-generated code: reviewing, refactoring, and shipping with traditional engineering discipline. Includes walkthroughs, refactoring agents, and snapshot recovery.

OpenClawRadar
ATLAS: Open-Source Test-Time Compute Pipeline for Qwen3-14B Achieves Frontier-Level Coding Performance
Tools

ATLAS: Open-Source Test-Time Compute Pipeline for Qwen3-14B Achieves Frontier-Level Coding Performance

A college student has developed ATLAS, an open-source test-time compute pipeline built around Qwen3-14B that achieves 74.6% pass@1 on LiveCodeBench v5 problems at ~$0.004 per task in electricity costs. The system is slow for complex problems but offers comparable performance to frontier models like GPT-5 (84.6%) and Claude 4.5 Sonnet (71.4%).

OpenClawRadar
Agent Image Skills: Simple Image Hosting for Claude Code Agents
Tools

Agent Image Skills: Simple Image Hosting for Claude Code Agents

A developer built a simple image hosting service at https://images.labnocturne.com to solve the problem of Claude Code agents generating images with nowhere to store them. The service provides instant test keys via curl, auto-deletes files after 7 days, and includes Claude Code MCP skills for upload, file listing, and deletion.

OpenClawRadar
cq: A Local-First Knowledge Sharing System for AI Coding Agents
Tools

cq: A Local-First Knowledge Sharing System for AI Coding Agents

Mozilla.ai's cq is an open-source tool that lets AI coding agents share 'knowledge units' about common gotchas via a local SQLite store, with optional team sharing through a Docker API. It installs as a Claude Code plugin or OpenCode MCP server.

OpenClawRadar