AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning
This commit is contained in:
14
scripts/checkpoint-memory.sh
Executable file
14
scripts/checkpoint-memory.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# Memory Checkpoint - Called by agent to persist critical context
|
||||
# Usage: checkpoint-memory.sh "Context description"
|
||||
|
||||
MEMORY_DIR="$HOME/.openclaw/workspace/memory"
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
TIME=$(date +%H:%M)
|
||||
|
||||
echo "" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
echo "## Checkpoint: $TIME" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
echo "" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
echo "$1" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
echo "" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
echo "---" >> "$MEMORY_DIR/${TODAY}-checkpoints.md"
|
||||
Reference in New Issue
Block a user