Host Compatibility
LightMem2 supports three agent hosts. Each host has a different integration style, but the plugin behavior is consistent across all of them.
Supported Hosts
| Host | Integration | Adapter Location |
|---|---|---|
| OpenClaw | Native plugin slot | components/tokenpilot/adapters/openclaw/ |
| Codex CLI | Local proxy + hooks | components/tokenpilot/adapters/codex/ |
| Claude Code | Local gateway + MCP | components/tokenpilot/adapters/claude-code/ |
Feature Matrix
| Feature | OpenClaw | Codex | Claude Code |
|---|---|---|---|
| Stable Prefix | ✅ | ✅ | ✅ |
| Context Reduction | ✅ | ✅ | ✅ |
| Context Eviction | ✅ | — | — |
| Visual Inspector | ✅ | ✅ | ✅ |
| Session Reports | ✅ | ✅ | ✅ |
| In-session Commands | ✅ (/lightmem2) | — (standalone CLI) | — (standalone CLI) |
| Standalone CLI | ✅ | ✅ | ✅ |
| MCP Recovery Server | ✅ | ✅ | ✅ |
mode conservative | ✅ | ✅ | ✅ |
mode normal | ✅ | ✅ | ✅ |
mode aggressive | ✅ | — | — |
| Auto-start Proxy | ✅ (gateway restart) | ✅ (SessionStart hook) | ✅ (SessionStart hook) |