Skip to content

Instantly share code, notes, and snippets.

View joe-rlo's full-sized avatar

Joe joe-rlo

View GitHub Profile
@joe-rlo
joe-rlo / README.md
Last active March 14, 2026 04:10
Memory Guardian - OpenClaw plugin for persistent agent memory

Memory Guardian Plugin for OpenClaw

Fixes the "my bot keeps forgetting stuff" problem through active enforcement, not passive suggestions.

The Problem

  • AGENTS.md says "read your notes" but agents ignore it under attention pressure
  • Sessions get compacted/reset and context is lost
  • Multiple sessions (Telegram topics, Discord channels) don't share state
  • Agents forget to checkpoint after doing work
@joe-rlo
joe-rlo / frequentUser.js
Created December 21, 2023 04:13
Calculate whether someone has collected 5+ ShardDogs on separate days
function isFrequentUser(nftData) {
const uniqueDays = new Set();
nftData.forEach(nft => {
const date = convertTimestampToDate(nft.minted_timestamp);
uniqueDays.add(date);
});
return uniqueDays.size >= 5;
}
@joe-rlo
joe-rlo / shardnetBackup.sh
Created September 7, 2022 18:34
Stakewars Shardnet Data Backup & Restore Scripts
#!/bin/bash
DATE=$(date +%Y-%m-%d-%H-%M)
DATADIR= data
BACKUPDIR=<WORK_DIR>/backups/near_${DATE}
mkdir $BACKUPDIR
sudo systemctl stop neard