diff --git a/OpenClaw/MEMORY Index.md b/OpenClaw/MEMORY Index.md index 746d534..b570ca7 100644 --- a/OpenClaw/MEMORY Index.md +++ b/OpenClaw/MEMORY Index.md @@ -16,10 +16,10 @@ | Project | Status | Detail File | Trigger Words | |---------|--------|-------------|---------------| | **Home Assistant** | πŸ”„ In Progress | `memory/projects/home-assistant.md` | "home assistant", "HA", "mqtt", "sensor" | -| **Mission Control Python** | βœ… Live | `memory/projects/mission-control-python.md` | "dashboard", "mission control", "python", "flask" | +| **Mission Control Python** | πŸ”„ Consolidating | `memory/projects/mission-control-dashboard-tlc.md` | "dashboard", "mission control", "TLC" | | **Proton Mail Bridge** | βœ… Functional | `memory/projects/proton-mail-bridge.md` | "proton", "email", "imap", "smtp", "mail" | | **Coding Workflow** | βœ… Active | `memory/projects/coding-workflow.md` | "coding", "git", "repo", "workflow" | -| **Memory System** | βœ… **Supermonkey** | `memory/projects/memory-system.md` | "memory", "database", "backup", "sqlite", "vector", "embeddings" | +| **Supermonkey Memory System** | βœ… Active | `memory/projects/supermonkey-memory-system.md` | "memory", "database", "sqlite", "vector", "embeddings" | | **Discord Voice Bot** | βœ… Complete | `memory/projects/discord-voice-bot.md` | "voice bot", "glados", "TTS", "STT" | | **Daily Notes Automation** | βœ… Active | `Obsidian/Daily Notes/` | "daily notes", "evening", "template" | | **Workspace Git Backup** | βœ… Active | `gitea.lasuca.com/admin/openclaw-workspace` | "backup", "git", "gitea" | @@ -28,7 +28,7 @@ | **Obsidian + Dataview** | βœ… Complete | `Dataview Query Examples` | "dataview", "obsidian", "query" | | **News Brief System** | ⚠️ Rethink | `cron job` | "news", "brief", "morning" | | **Discord Reminder System** | βœ… Live | `#schedule` + OpenClaw cron | "remind", "reminder", "schedule" | -| **UniFi Network Monitoring** | πŸ”„ In Progress | `skills/unifi/` | "unifi", "network", "clients", "devices" | +| **UniFi Network Monitoring** | 🟑 Parked | `skills/unifi/` | "unifi", "network", "clients", "devices" | ## Platform Decisions (Sticky) diff --git a/OpenClaw/Sync History 2026-03-04.md b/OpenClaw/Sync History 2026-03-04.md new file mode 100644 index 0000000..2236c8e --- /dev/null +++ b/OpenClaw/Sync History 2026-03-04.md @@ -0,0 +1,10 @@ +ο»Ώ# OpenClaw Sync - 2026-03-04 + +## Files Synced +- Tools Reference.md (from TOOLS.md) +- MEMORY Index.md (from MEMORY.md) + +## Notes +Last updated: 06:00 + +--- diff --git a/Projects/Mission Control Dashboard - TLC.md b/Projects/Mission Control Dashboard - TLC.md new file mode 100644 index 0000000..6171e2f --- /dev/null +++ b/Projects/Mission Control Dashboard - TLC.md @@ -0,0 +1,71 @@ +ο»Ώ# Mission Control Dashboard β€” TLC Project + +**Status:** In Progress β€” Needs Consolidation & Refresh +**Created:** 2026-02-17 (Next.js) / 2026-02-20 (Python) +**Goal:** Combine both dashboards into one unified system + +--- + +## Current State + +We have **TWO** Mission Control dashboards: + +### 1. Next.js Dashboard +| Attribute | Value | +|-----------|-------| +| **Location** | `C:\web\htdocs\mission-control` | +| **URL** | http://localhost:3000 | +| **Tech** | Next.js 14, TypeScript, Tailwind | +| **Status** | Running but needs updates | +| **Features** | Project cards, Kanban boards, Status widgets, Themes | + +### 2. Python/Flask Dashboard +| Attribute | Value | +|-----------|-------| +| **Location** | `C:\web\htdocs\mission-control-py` | +| **URL** | http://localhost:5050 | +| **Tech** | Python/Flask, MySQL, HA API | +| **Status** | Running but needs updates | +| **Features** | Admin CRUD, Weather, Gateway status, Projects | + +--- + +## The Problem + +Two dashboards doing similar things. Need to decide on architecture. + +--- + +## Features to Preserve + +### From Next.js: +- Project cards, Kanban boards +- Drag-and-drop tasks +- Real-time status widgets +- 4 themes (NASA, Luxury, Cyberpunk, Organic) +- GLaDOS voice control + +### From Python: +- MySQL persistence +- Home Assistant API +- Weather widget +- Admin CRUD +- News tracking + +--- + +## Possible Directions + +**A:** Refactor Next.js (add MySQL, port Python features) +**B:** Enhance Python (add themes, polish UI) +**C:** Start Fresh (new tech stack) +**D:** Hybrid API (Python backend, Next.js frontend) + +--- + +**Notes:** +- Frigate is working (Docker) +- UniFi is parked (auth issues later) +- On hold until direction decided + +*Full doc in git: memory/projects/mission-control-dashboard-tlc.md* diff --git a/Projects/Supermonkey Memory System.md b/Projects/Supermonkey Memory System.md new file mode 100644 index 0000000..8cd9d8c --- /dev/null +++ b/Projects/Supermonkey Memory System.md @@ -0,0 +1,159 @@ +ο»Ώ# Supermonkey Memory System + +**Status:** Òœ… Production +**Created:** 2026-03-02 +**Location:** `~/.openclaw/memory.db` + +--- + +## Overview + +Local semantic memory search using SQLite + Ollama embeddings. Replaces flaky Supermemory cloud API. + +**Why "Supermonkey"?** +- Works offline (like a monkey with a typewriter) +- No cloud dependency +- Just keeps going + +--- + +## Architecture + +### File-Based Pipeline (Daily) +``` +Memory Files (markdown) + Γ’β€ β€œ +memory_embedding_worker.py + Γ’β€ β€œ +Ollama (nomic-embed-text) Ò†’ 768-dim vectors + Γ’β€ β€œ +SQLite + sqlite-vector extension + Γ’β€ β€œ +Cosine similarity search +``` + +### Real-Time Session Pipeline (Live) +``` +Discord/Chat Messages + Γ’β€ β€œ +OpenClaw Session Transcript (.jsonl) + Γ’β€ β€œ +session_monitor.py (cron every 2 min) + Γ’β€ β€œ +Count messages Ò†’ At 15: summarize Ò†’ embed Ò†’ store + Γ’β€ β€œ +Ollama (nomic-embed-text) + Γ’β€ β€œ +SQLite + sqlite-vector +``` + +**The Innovation:** Read OpenClaw's own session transcripts to auto-capture conversations without manual tracking or hooks! + +--- + +## Components + +| File | Purpose | +|------|---------| +| `memory_vector.py` | Core SQLite-vector wrapper | +| `memory_embedding_worker.py` | Daily memory file processor | +| `session_monitor.py` | Real-time transcript capture | +| `session_snapshotter.py` | Manual session capture | +| `search_memories.py` | CLI search tool | +| `bulk_memory_loader.py` | One-time historical import | + +--- + +## Quick Commands + +```powershell +# Search memories +python tools/search_memories.py "home assistant automation" + +# Check stats +python -c "import sqlite3; db=sqlite3.connect(r'C:\Users\admin\.openclaw\memory.db'); c=db.cursor(); c.execute('SELECT COUNT(*) FROM memory_embeddings'); print('Total:', c.fetchone()[0]); c.execute('SELECT COUNT(*) FROM memory_embeddings WHERE source_type=\'auto_session\''); print('Auto snapshots:', c.fetchone()[0]); db.close()" + +# Run daily worker manually +python tools/memory_embedding_worker.py --date 2026-03-03 + +# Run session monitor manually +python tools/session_monitor.py +``` + +--- + +## Current Stats + +| Metric | Value | +|--------|-------| +| Total embeddings | ~1,623 | +| Daily notes processed | 818 | +| Project files | 332 | +| MEMORY.md sections | 33 | +| Manual session snapshots | 2 | +| **Auto session snapshots** | **27** | +| Tracked sessions | 245 | +| Active sessions | 243 | +| Database size | ~5 MB | + +--- + +## Database Schema + +### memory_embeddings +| Column | Type | Description | +|--------|------|-------------| +| id | INTEGER | Primary key | +| source_type | TEXT | daily, memory_md, project, auto_session | +| source_path | TEXT | File path + section | +| content_text | TEXT | First 500 chars | +| embedding | BLOB | 768-dim vector | +| created_at | TIMESTAMP | Auto-set | + +### session_tracking +| Column | Type | Description | +|--------|------|-------------| +| session_id | TEXT | OpenClaw UUID | +| transcript_path | TEXT | Path to .jsonl | +| last_message_index | INTEGER | Checkpoint | +| messages_since_snapshot | INTEGER | Counter | +| is_active | BOOLEAN | Active? | + +--- + +## Cron Schedule + +| Job | Schedule | Purpose | +|-----|----------|---------| +| Memory Embeddings Daily | 3:00 AM | Process yesterday's memory files | +| Session Monitor | Every 2 min | Auto-snapshot live conversations | + +--- + +## Troubleshooting + +**Ollama not running:** +```powershell +ollama serve +``` + +**Database locked:** +Close DB Browser for SQLite + +**Unicode errors in cron:** +All emojis replaced with ASCII-safe markers + +--- + +## Future Enhancements + +- [ ] Keyword filtering alongside vector search +- [ ] Date range queries +- [ ] Source type filtering +- [ ] Embedding quality scoring + +--- + +**Credit:** Corey's genius idea to read session.json files 💑 +**System:** Operational and self-managing +