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

Claude adds memory import feature to migrate from other AI providers
Tools

Claude adds memory import feature to migrate from other AI providers

Claude now allows users to import context and preferences from other AI providers through a copy-paste process. The memory feature is available on all paid plans and helps maintain conversation history when switching platforms.

OpenClawRadar
Ory Lumen: Open Source Local Semantic Search Plugin for Claude Code
Tools

Ory Lumen: Open Source Local Semantic Search Plugin for Claude Code

Ory Lumen is a Claude Code plugin that indexes codebases using Ollama with a code embedding model and SQLite-vec for semantic search, addressing Claude Code's performance issues with large codebases. The tool is free, local-only, and includes a SWE-style benchmark test harness for reproducible results.

OpenClawRadar
Running OpenClaw and Codex CLI Natively on Android via AnyClaw APK
Tools

Running OpenClaw and Codex CLI Natively on Android via AnyClaw APK

A developer has packaged OpenClaw and Codex CLI into an Android APK called AnyClaw, enabling the gateway and Control UI to run locally on ARM64 Android 7.0+ devices without root. The project required building dependencies from source and patching multiple components to handle Android-specific constraints.

OpenClawRadar
Orchino: Local Multi-Agent Orchestration System for Windows with Parallel Browser and UI Automation
Tools

Orchino: Local Multi-Agent Orchestration System for Windows with Parallel Browser and UI Automation

Orchino is a local multi-agent orchestration system for Windows that runs parallel browser and Windows tasks without hijacking the UI. A demo shows 4 agents completing 'Search Sony earbuds on Flipkart and Amazon, email the results, save to Notepad' in 29.5 seconds using true parallel execution.

OpenClawRadar