A modular runtime for recursive improvement in long-running LLM agents.
Build capabilities once and run them across six agent hosts, without a fork per host.
Featured plugin: TokenPilot — a cache-aware context runtime that reduces long-session token usage and cost.
LightRSI separates improvement capabilities from shared runtime infrastructure and host integration, so each capability can be built once and evaluated consistently.
The same TokenPilot preset binds to every host through a thin adapter. OpenClaw, Codex, and Claude Code route through a local proxy or gateway; OpenCode and pi run in-process.
lightrsi codex surface.Claude CodegatewayAnthropic-compatible gateway routing with observability hooks and real MCP recovery.OpenCodein-processA v1 plugin plus the shared recovery MCP server. No proxy, and never rewrites your config comments.piin-processAn extension with a native recovery tool, since pi has no MCP. No pi-owned file is touched.DeepSeek HarnesspluginA native Cordis plugin with durable session projection and opt-in canonical-surface eviction.Each plugin provides a distinct capability. Install what you need, skip what you don't.
| Plugin | Capability | Status | Hosts |
|---|---|---|---|
| TokenPilot | Cache-aware context management | Stable | OpenClawCodexClaude CodeOpenCodepiDeepSeek Harness |
| Context Cleaner | User-approved task-level context cleaning | Stable | OpenClawCodexClaude CodeDeepSeek Harness |
| Memory Plugin | Long-term memory | Experimental | TBD |
TokenPilot is the first official LightRSI plugin. It reduces token usage and cost in long-running agent sessions through stable-prefix rewriting, context reduction, and lifecycle-aware eviction.
Rewrites developer-level context into a cache-stable form, dramatically improving cache hit rates across turns.
Trims oversized tool output before it pollutes later turns, keeping the context window lean without losing signal.
Limits how much old context is carried forward as sessions grow, preventing unbounded context bloat.
Built-in inspector shows token savings, cache efficiency, and session metrics in real time.
Install LightRSI and TokenPilot in under 5 minutes, on any of the six supported hosts.
Get Started →