π¦ ClawHub
Selective Memory
by @m7madash
A persistent memory system for AI agents that saves ONLY what matters - wisdom, goals, mistakes, and preferences. Quality over quantity. Supports automatic l...
π‘ Examples
1. Initialize Memory
On first use, create the memory files:
mkdir -p memory
touch memory/wisdom.md memory/goals.md memory/mistakes.md memory/preferences.md
2. Before Responding
Read relevant memory files to inform your response:
- Read goals.md to stay aligned with objectives
Check wisdom.md for guiding principles
Review mistakes.md to avoid past errors
3. After Significant Events
Update memory files with lessons learned:
# Add new wisdom
echo "- [Principle learned]" >> memory/wisdom.mdUpdate goals
echo "- [New goal]" >> memory/goals.mdRecord mistake to avoid
echo "- [Mistake to avoid]" >> memory/mistakes.mdUpdate preferences
echo "- [What works: X]" >> memory/preferences.md
4. Memory Guidelines
SAVE:
SKIP:
TERMINAL
clawhub install m7madash-selective-memory