# Send Total Recall to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "total-recall",
    "name": "Total Recall",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/gavdalf/total-recall",
    "canonicalUrl": "https://clawhub.ai/gavdalf/total-recall",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/total-recall",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=total-recall",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "CODE_OF_CONDUCT.md",
      "CONTRIBUTING.md",
      "INSTALL-AGENT.md",
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "total-recall",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T05:10:49.353Z",
      "expiresAt": "2026-05-11T05:10:49.353Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=total-recall",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=total-recall",
        "contentDisposition": "attachment; filename=\"total-recall-1.5.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "total-recall"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/total-recall"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/total-recall",
    "downloadUrl": "https://openagent3.xyz/downloads/total-recall",
    "agentUrl": "https://openagent3.xyz/skills/total-recall/agent",
    "manifestUrl": "https://openagent3.xyz/skills/total-recall/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/total-recall/agent.md"
  }
}
```
## Documentation

### Total Recall — Autonomous Agent Memory

The only memory skill that watches on its own.

No database. No vectors. No manual saves. Just an LLM observer that compresses your conversations into prioritised notes, consolidates when they grow, and recovers anything missed. Five layers of redundancy, zero maintenance. ~$0.10/month.

While other memory skills ask you to remember to remember, this one just pays attention.

### Architecture

Layer 1: Observer (cron, every 15-30 min)
    ↓ compresses recent messages → observations.md
Layer 2: Reflector (auto-triggered when observations > 8000 words)
    ↓ consolidates, removes superseded info → 40-60% reduction
Layer 3: Session Recovery (runs on every /new or /reset)
    ↓ catches any session the Observer missed
Layer 4: Reactive Watcher (inotify daemon, Linux only)
    ↓ triggers Observer after 40+ new JSONL writes, 5-min cooldown
Layer 5: Pre-compaction hook (memoryFlush)
    ↓ emergency capture before OpenClaw compacts context

### What It Does

Observer reads recent session transcripts (JSONL), sends them to an LLM, and appends compressed observations to observations.md with priority levels (high, medium, low)
Reflector kicks in when observations grow too large, consolidating related items and dropping stale low-priority entries
Session Recovery runs at session start, checks if the previous session was captured, and does an emergency observation if not
Reactive Watcher watches the session directory with inotify so high-activity periods get captured faster than the cron interval
Pre-compaction hook fires when OpenClaw is about to compact context, ensuring nothing is lost

### 1. Install the skill

clawdhub install total-recall

### 2. Set your API key

Add to your .env or OpenClaw config:

OPENROUTER_API_KEY=sk-or-v1-xxxxx

### 3. Run the setup script

bash skills/total-recall/scripts/setup.sh

This will:

Create the memory directory structure (memory/, logs/, backups)
On Linux with inotify + systemd: install the reactive watcher service
Print cron job and agent configuration instructions for you to add manually

### 4. Configure your agent to load observations

Add to your agent's workspace context (e.g., MEMORY.md or system prompt):

At session startup, read \`memory/observations.md\` for cross-session context.

Or use OpenClaw's memoryFlush.systemPrompt to inject a startup instruction.

### Platform Support

PlatformObserver + Reflector + RecoveryReactive WatcherLinux (Debian/Ubuntu/etc.)Full supportWith inotify-toolsmacOSFull supportNot available (cron-only)

All core scripts use portable bash. stat, date, and md5 commands are handled cross-platform via _compat.sh.

### Configuration

All scripts read from environment variables with sensible defaults:

VariableDefaultDescriptionOPENROUTER_API_KEY(required)OpenRouter API key for LLM callsMEMORY_DIR$OPENCLAW_WORKSPACE/memoryWhere observations.md livesSESSIONS_DIR~/.openclaw/agents/main/sessionsOpenClaw session transcriptsOBSERVER_MODELdeepseek/deepseek-v3.2Primary model for compressionOBSERVER_FALLBACK_MODELgoogle/gemini-2.5-flashFallback if primary failsOBSERVER_LOOKBACK_MIN15Minutes to look back (daytime)OBSERVER_MORNING_LOOKBACK_MIN480Minutes to look back (before 8am)OBSERVER_LINE_THRESHOLD40Lines before reactive trigger (Linux)OBSERVER_COOLDOWN_SECS300Cooldown between reactive triggers (Linux)REFLECTOR_WORD_THRESHOLD8000Words before reflector runsOPENCLAW_WORKSPACE~/your-workspaceWorkspace root

### LLM Provider Configuration

Total Recall uses any OpenAI-compatible chat completion API. Switch providers by setting environment variables:

VariableDefaultDescriptionLLM_BASE_URLhttps://openrouter.ai/api/v1API endpointLLM_API_KEYfalls back to OPENROUTER_API_KEYAPI keyLLM_MODELdeepseek/deepseek-v3.2Model to use

### Provider examples

# OpenRouter (default)
export OPENROUTER_API_KEY="your-key"

# Ollama (local)
export LLM_BASE_URL="http://localhost:11434/v1"
export LLM_API_KEY="ollama"
export LLM_MODEL="llama3.1:8b"

# Groq
export LLM_BASE_URL="https://api.groq.com/openai/v1"
export LLM_API_KEY="your-groq-key"
export LLM_MODEL="llama-3.3-70b-versatile"

### Files Created

memory/
  observations.md          # The main observation log (loaded at startup)
  observation-backups/     # Reflector backups (last 10 kept)
  .observer-last-run       # Timestamp of last observer run
  .observer-last-hash      # Dedup hash of last processed messages
logs/
  observer.log
  reflector.log
  session-recovery.log
  observer-watcher.log

### Cron Jobs

The setup script creates these OpenClaw cron jobs:

JobScheduleDescriptionmemory-observerEvery 15 minCompress recent conversationmemory-reflectorHourlyConsolidate if observations are large

### Reactive Watcher (Linux only)

The reactive watcher uses inotifywait to detect session activity and trigger the observer faster than cron alone. Requires Linux with inotify-tools installed.

# Install inotify-tools (Debian/Ubuntu)
sudo apt install inotify-tools

# Check watcher status
systemctl --user status total-recall-watcher

# View logs
journalctl --user -u total-recall-watcher -f

### Cost

Using DeepSeek v3.2 via OpenRouter:

~$0.03-0.10/month for typical usage (observer + reflector)
~15-30 cron runs/day, each processing a few hundred tokens

### Observer

Finds recently modified session JSONL files
Filters out subagent/cron sessions
Extracts user + assistant messages from the lookback window
Deduplicates using MD5 hash comparison
Sends to LLM with the observer prompt (priority-based compression)
Appends result to observations.md
If observations exceed the word threshold, triggers reflector

### Reflector

Backs up current observations
Sends entire log to LLM with consolidation instructions
Validates output is shorter than input (sanity check)
Replaces observations with consolidated version
Cleans old backups (keeps last 10)

### Session Recovery

Runs at every /new or /reset
Hashes recent lines of the last session file
Compares against stored hash from last observer run
If mismatch: runs observer in recovery mode (4-hour lookback)
Fallback: raw message extraction if observer fails

### Reactive Watcher

Uses inotifywait to monitor session directory
Counts JSONL writes to main session files only
After 40+ lines: triggers observer (with 5-min cooldown)
Resets counter when cron/external observer runs are detected

### Customizing the Prompts

The observer and reflector system prompts are in prompts/:

prompts/observer-system.txt — controls how conversations are compressed
prompts/reflector-system.txt — controls how observations are consolidated

Edit these to match your agent's personality and priorities.

### Dream Cycle

The Dream Cycle is an optional nightly agent that runs after hours to consolidate observations.md. It archives stale items and adds semantic hooks so nothing useful is actually lost. Context stays lean; everything remains findable.

### What It Does

Classifies every observation by impact (critical / high / medium / low / minimal) and age
Archives items that have passed their relevance threshold
Adds a semantic hook for each archived item (specific keywords + archive reference)
Validates the result and rolls back automatically if something goes wrong

### Features

Multi-Hook Retrieval — 4-5 alternative search phrasings per archived item. Searches using different words than the original still find the memory.

Confidence Scoring — every observation gets a confidence score (0.0-1.0) and source type (explicit, implicit, inference, weak, uncertain). High-confidence items are preserved longer; low-confidence items are archived sooner.

Memory Type System — 7 types with per-type TTLs: event (14d), fact (90d), preference (180d), goal (365d), habit (365d), rule (never), context (30d). Embedded as invisible HTML metadata comments in observations.md.

Observation Chunking — clusters of 3+ related observations are compressed into single summary entries. Source observations are archived; a chunk hook replaces them. Achieves up to 75% token reduction.

Importance Decay — per-type daily decay applied to importance scores before each archival decision. Items that decay below the archive threshold are queued for removal. Rates: event (-0.5/day), fact (-0.1/day), preference (-0.02/day), rule/habit/goal (no decay).

Pattern Promotion — scans recent dream logs for recurring themes (3+ occurrences across 3+ separate days). Writes promotion proposals to memory/dream-staging/ for human review. Use staging-review.sh to list, show, approve, or reject proposals. The context type is never promoted automatically.

### Setup

Run bash skills/total-recall/scripts/setup.sh — creates Dream Cycle directories automatically.


Add the nightly cron job:
# Dream Cycle — nightly at 3am
0 3 * * * OPENCLAW_WORKSPACE=~/your-workspace bash ~/your-workspace/skills/total-recall/scripts/dream-cycle.sh preflight



Configure your cron agent using prompts/dream-cycle-prompt.md as the system prompt. Recommended models: Claude Sonnet for the Dreamer (analysis + decisions), DeepSeek v3.2 for the Observer (cheap, fast).


Start with READ_ONLY_MODE=true for the first few nights. Check memory/dream-logs/ after each run to verify what it would have archived.


Switch to READ_ONLY_MODE=false once satisfied.

### Configuration

VariableDefaultDescriptionDREAM_TOKEN_TARGET8000Token target for observations.md after consolidationREAD_ONLY_MODEfalseSet true for dry-run analysis without writes

### Files

FileDescriptionscripts/dream-cycle.shShell helper: preflight, archive, update-observations, write-log, write-metrics, validate, rollbackprompts/dream-cycle-prompt.mdAgent prompt for the nightly Dream Cycle rundream-cycle/README.mdDream Cycle quick referenceschemas/observation-format.mdExtended observation metadata format

### Directories Created

memory/
  archive/
    observations/        # Archived items (one .md file per night)
    chunks/              # Chunked observation groups
  dream-logs/            # Nightly run reports
  dream-staging/         # Pattern promotion proposals awaiting human review
  .dream-backups/        # Pre-run safety backups
research/
  dream-cycle-metrics/
    daily/               # JSON metrics per night

### Troubleshooting

Observer not running?

Check logs/observer.log for errors
Verify OPENROUTER_API_KEY is set and valid
Confirm cron is active: crontab -l

Observations not being loaded at session start?

Ensure your agent's startup instructions include reading memory/observations.md
Check MEMORY_DIR points to the right location

Reactive watcher not triggering (Linux)?

Run systemctl --user status total-recall-watcher
Check inotify-tools is installed: which inotifywait
View watcher logs: journalctl --user -u total-recall-watcher -f

Dream Cycle archiving too aggressively?

Enable READ_ONLY_MODE=true and review dream logs before going live
Adjust DREAM_TOKEN_TARGET upward to archive less per run

Dream Cycle not archiving enough?

Lower DREAM_TOKEN_TARGET to trigger more aggressive consolidation

### Inspired By

This system is inspired by how human memory works during sleep — the hippocampus (observer) captures experiences, and during sleep consolidation (reflector), important memories are strengthened while noise is discarded.

Read more: Your AI Has an Attention Problem

"Get your ass to Mars." — Well, get your agent's memory to work.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: gavdalf
- Version: 1.5.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T05:10:49.353Z
- Expires at: 2026-05-11T05:10:49.353Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/total-recall)
- [Send to Agent page](https://openagent3.xyz/skills/total-recall/agent)
- [JSON manifest](https://openagent3.xyz/skills/total-recall/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/total-recall/agent.md)
- [Download page](https://openagent3.xyz/downloads/total-recall)