|
1 | 1 | # LightHeart OpenClaw |
2 | 2 |
|
3 | | -**Your agents never crash from context overflow again.** |
| 3 | +**Keep your AI agents running. No matter what they do to themselves.** |
4 | 4 |
|
5 | | -An open source toolkit for [OpenClaw](https://openclaw.io) agents. Session lifecycle management, API cost monitoring, local model tool-calling fixes, golden configs, and everything else you need to run OpenClaw agents that don't fall over. |
| 5 | +An open source operations toolkit for persistent LLM agents. Built for [OpenClaw](https://openclaw.io) but many components work with any agent framework or service stack. |
| 6 | + |
| 7 | +| Component | What it does | Requires OpenClaw? | Platform | |
| 8 | +|-----------|-------------|-------------------|----------| |
| 9 | +| [Session Watchdog](#session-watchdog) | Auto-cleans bloated sessions before context overflow | Yes | Linux, Windows | |
| 10 | +| [vLLM Tool Call Proxy](#vllm-tool-call-proxy-v4) | Makes local model tool calling work | Yes | Linux | |
| 11 | +| [Token Spy](#token-spy--api-cost--usage-monitor) | API cost monitoring with real-time dashboard | No (any OpenAI/Anthropic client) | Linux | |
| 12 | +| [Guardian](#guardian) | Self-healing process watchdog with backup restore | No (any Linux services) | Linux (root) | |
| 13 | +| [Memory Shepherd](#memory-shepherd) | Periodic memory reset to prevent agent drift | No (any markdown-based agent memory) | Linux | |
| 14 | +| [Golden Configs](#golden-configs) | Working config templates for OpenClaw + vLLM | Yes | Any | |
| 15 | +| [Workspace Templates](#workspace-templates) | Agent personality/identity starter files | Yes | Any | |
6 | 16 |
|
7 | 17 | --- |
8 | 18 |
|
@@ -32,12 +42,12 @@ Starter personality files (`SOUL.md`, `IDENTITY.md`, `TOOLS.md`, `MEMORY.md`) th |
32 | 42 | ### Memory Shepherd |
33 | 43 | Periodic memory reset for persistent LLM agents. Agents accumulate scratch notes in `MEMORY.md` during operation — Memory Shepherd archives those notes and restores the file to a curated baseline on a schedule. Keeps agents on-mission by preventing context drift, memory bloat, and self-modification of instructions. |
34 | 44 |
|
35 | | -Defines a `---` separator convention: everything above is operator-controlled identity (rules, capabilities, pointers), everything below is agent scratch space that gets archived and cleared. |
| 45 | +Defines a `---` separator convention: everything above is operator-controlled identity (rules, capabilities, pointers), everything below is agent scratch space that gets archived and cleared. See [memory-shepherd/README.md](memory-shepherd/README.md) for full documentation. |
36 | 46 |
|
37 | 47 | ### Guardian |
38 | 48 | Self-healing process watchdog for LLM infrastructure. Runs as a root systemd service that agents cannot kill or modify. Monitors processes, systemd services, Docker containers, and file integrity — automatically restoring from known-good backups when things break. |
39 | 49 |
|
40 | | -Supports tiered health checks (port listening, HTTP endpoints, custom commands, JSON validation), a recovery cascade (soft restart → backup restore → restart), generational backups with immutable flags, and restart delegation chains. Everything is config-driven via an INI file. |
| 50 | +Supports tiered health checks (port listening, HTTP endpoints, custom commands, JSON validation), a recovery cascade (soft restart → backup restore → restart), generational backups with immutable flags, and restart delegation chains. Everything is config-driven via an INI file. See [guardian/README.md](guardian/README.md) for full documentation. |
41 | 51 |
|
42 | 52 | ### Architecture Docs |
43 | 53 | Deep-dive documentation on how OpenClaw talks to vLLM, why the proxy exists, how session files work, and the five failure points that kill local setups. |
@@ -100,6 +110,29 @@ export VLLM_API_KEY=vllm-local |
100 | 110 | openclaw agent --local --agent main -m 'What is 2+2?' |
101 | 111 | ``` |
102 | 112 |
|
| 113 | +### Option 4: Guardian (Process Watchdog) |
| 114 | + |
| 115 | +Works with any Linux service stack — not OpenClaw-specific. See [guardian/README.md](guardian/README.md) for full docs. |
| 116 | + |
| 117 | +```bash |
| 118 | +cd guardian |
| 119 | +cp guardian.conf.example guardian.conf |
| 120 | +nano guardian.conf # Define your monitored resources |
| 121 | +nano guardian.service # Add your paths to ReadWritePaths |
| 122 | +sudo ./install.sh # Installs to systemd as root service |
| 123 | +``` |
| 124 | + |
| 125 | +### Option 5: Memory Shepherd (Memory Reset) |
| 126 | + |
| 127 | +Works with any agent that uses markdown memory files. See [memory-shepherd/README.md](memory-shepherd/README.md) for full docs. |
| 128 | + |
| 129 | +```bash |
| 130 | +cd memory-shepherd |
| 131 | +cp memory-shepherd.conf.example memory-shepherd.conf |
| 132 | +nano memory-shepherd.conf # Define your agents and baselines |
| 133 | +sudo ./install.sh # Installs as systemd timer |
| 134 | +``` |
| 135 | + |
103 | 136 | --- |
104 | 137 |
|
105 | 138 | ## Configuration |
|
0 commit comments