Ask OpenClaw about your coding sessions and project notes — powered by the
resume CLI and cached via Redis.
In the OpenClaw dashboard or any connected channel, say:
resume show or resume notes in your project directoryresume calls your LLM (Anthropic/Ollama) to generate a plain-English briefingYou → OpenClaw → resume-context skill
↓
Redis GET (cache hit → instant)
↓ (cache miss)
resume show / resume notes
↓
LLM briefing generation
↓
Redis SET (5 min TTL)
↓
Response back to you
resume showresume notesExtract project name from the message (e.g. "for resume" → "resume").
Search in order:
~/Documents/Projects/~/~/projects/~/code/find ~ -maxdepth 4 -type d -name "<project_name>" 2>/dev/null | grep -v node_modules | grep -v ".git" | head -5
Prefer the match that contains a .resume/ subdirectory. If no project named,
find the most recently active session:
ls -t ~/.resume/projects/ 2>/dev/null | head -3
REDIS_URL="$REDIS_URL" node {baseDir}/resume-mcp.js show <project_path>
REDIS_URL="$REDIS_URL" node {baseDir}/resume-mcp.js notes <project_path>
The bridge returns JSON with an output field — return it as-is.
If cached: true, add "(answered from cache)".
If empty: "No session data found. Is resume running in that project?"
cargo install --git https://github.com/nickleodoen/resume
Then set up the shell hook so resume captures your commands:
resume init --install-hook
# Open a new terminal (or source ~/.zshrc / ~/.bashrc)
Start a session in your project:
cd ~/your-project && resume
Add to your shell profile (~/.zshrc or ~/.bashrc):
export ANTHROPIC_API_KEY=sk-ant-...
resume uses this to generate plain-English briefings via Claude.
Sign up at Redis Cloud → New Subscription → Free Tier.
Copy the connection string from the database dashboard — it looks like:
redis://default:password@host:port
Required to run the bridge script (resume-mcp.js).
| Variable | Required | Default | Description |
|---|---|---|---|
| --- | --- | --- | --- |
REDIS_URL | ✅ | — | Redis connection string |
RESUME_CACHE_TTL | ❌ | 300 | Cache TTL in seconds |
RESUME_BIN | ❌ | ~/.cargo/bin/resume | Path to resume binary |
# Via ClawHub
openclaw skills install resume-context
# Manual
cp -r resume-context ~/.openclaw/skills/
cd ~/.openclaw/skills/resume-context && npm install
Add to ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"resume-context": {
"enabled": true,
"env": {
"REDIS_URL": "redis://your-redis-url:6379"
}
}
}
}
}
共 1 个版本