Files
ivangdavila_memory/troubleshooting.md

4.4 KiB

Troubleshooting

Can't Find Information

Symptoms:

  • "I don't see that in memory"
  • Information exists but not found

Fixes:

Cause Check Fix
Not indexed grep -l "topic" ~/memory/*/INDEX.md Add to relevant INDEX
Wrong category Check other categories Move to correct place
Search too narrow Try different keywords Add keywords to file header
In built-in, not here Check agent's MEMORY.md Sync if needed

Quick search:

# Find across all memory
grep -r "keyword" ~/memory/

# Find in indices only (faster)
grep -r "keyword" ~/memory/*/INDEX.md

Memory Getting Slow

Symptoms:

  • Takes long to find things
  • Category indices are huge

Fixes:

  1. Check index sizes:
wc -l ~/memory/*/INDEX.md
# Any over 100 lines? Split them.
  1. Split large categories:
Before: projects/INDEX.md (150 entries)
After:  projects/active/INDEX.md (30 entries)
        projects/archived/INDEX.md (120 entries)
  1. Archive old content:
# Move old items to archive
mv ~/memory/projects/old.md ~/memory/archive/
# Update both indices

Conflicting with Built-In Memory

Symptoms:

  • Agent confused about which memory to use
  • Duplicate information

Rule: This system (~/memory/) is SEPARATE from built-in.

Fixes:

  1. Never modify built-in memory from this skill
  2. Check locations:
    • Built-in: workspace MEMORY.md, workspace memory/
    • This skill: ~/memory/ (home directory)
  3. If duplicates: Keep detailed version here, summary in built-in

Structure is Messy

Symptoms:

  • Files everywhere
  • Hard to know where things go

Fixes:

  1. Establish clear categories:
ls ~/memory/
# Should show clear category folders, not loose files
  1. No files in root:
~/memory/
├── config.md     # OK (system file)
├── INDEX.md      # OK (root index)
├── projects/     # OK (category)
├── random.md     # BAD - put in a category
  1. Use inbox for unsorted:
mkdir ~/memory/inbox
# Put unclear items there, sort weekly

Sync Not Working

Symptoms:

  • Sync folder empty or outdated
  • Built-in changes not reflected

Fixes:

  1. Check sync is enabled:
cat ~/memory/config.md | grep sync
  1. Manual sync:

    • Read from agent's MEMORY.md
    • Extract relevant sections
    • Write to ~/memory/sync/
    • Update ~/memory/sync/INDEX.md with date
  2. Remember: Sync is manual, not automatic. Re-sync periodically.


Forgot What Categories Exist

Quick check:

# See all categories
cat ~/memory/INDEX.md

# See folder structure
ls ~/memory/

INDEX.md Out of Date

Symptoms:

  • Files exist but not in INDEX
  • INDEX lists files that don't exist

Fix:

# Check for unlisted files
for f in ~/memory/projects/*.md; do
  name=$(basename "$f")
  grep -q "$name" ~/memory/projects/INDEX.md || echo "Not indexed: $name"
done

# Check for dead links
grep -oE '[a-z]+\.md' ~/memory/projects/INDEX.md | while read f; do
  [ ! -f ~/memory/projects/"$f" ] && echo "Missing: $f"
done

Rebuild INDEX if badly broken:

# Generate new index from existing files
ls ~/memory/projects/*.md | while read f; do
  name=$(basename "$f" .md)
  echo "| $name | ? | $(date +%Y-%m-%d) | $name.md |"
done

Not Sure What Goes Where

Decision tree:

Is it about a specific project?
  → projects/

Is it about a person?
  → people/

Is it a decision with reasoning?
  → decisions/

Is it reference/learning material?
  → knowledge/

Is it a list of things you collect?
  → collections/

None of the above?
  → inbox/ (sort later)

Quick Health Check

#!/bin/bash
echo "=== Memory Health Check ==="

# Check root
[ -d ~/memory ] && echo "✓ ~/memory exists" || echo "✗ ~/memory missing"
[ -f ~/memory/INDEX.md ] && echo "✓ Root INDEX.md exists" || echo "✗ Root INDEX.md missing"
[ -f ~/memory/config.md ] && echo "✓ config.md exists" || echo "✗ config.md missing"

# Check categories have indices
echo ""
echo "Category indices:"
for dir in ~/memory/*/; do
  name=$(basename "$dir")
  [ -f "$dir/INDEX.md" ] && echo "  ✓ $name/INDEX.md" || echo "  ✗ $name/INDEX.md missing"
done

# Count total files
total=$(find ~/memory -name "*.md" | wc -l)
echo ""
echo "Total files: $total"

echo "=== Done ==="