Skip to content

Latest commit

 

History

History
142 lines (107 loc) · 3.5 KB

File metadata and controls

142 lines (107 loc) · 3.5 KB

Context Continuity Engine - Quick Start

Installation Complete ✅

All dependencies installed successfully (~2.5 GB including PyTorch and CUDA libraries).

Test Results

Basic Functionality Test: ✅ PASSED

All 5 components tested successfully:

  • ✅ ActivityDatabase (SQLite storage)
  • ✅ EmbeddingStore (ChromaDB + SentenceTransformers)
  • ✅ TemporalGraph (NetworkX)
  • ✅ ContextPredictor (ML-based predictions)
  • ✅ PrivacyFilter (Blacklist filtering)

Quick Commands

1. View Statistics

./context_cli.py stats

2. Start the Daemon

./context_daemon.py

Note: First run will download the embedding model (~90MB). This is a one-time download.

3. Monitor Activity

# In another terminal
./context_cli.py recent --hours 1

4. Search Contexts

./context_cli.py search "working on Python project"

5. View Tracked Contexts

./context_cli.py contexts

What Gets Tracked

  • Window Focus: Which application windows you're using
  • File Access: Files you open/edit (in monitored directories)
  • Duration: How long you spend in each window

Privacy Protection

Default Blacklists:

  • Apps: keepassxc, bitwarden
  • URLs: *://*/login*, *://*/password*
  • Directories: ~/.ssh, ~/.gnupg, ~/Private
  • File types: .key, .pem, .gpg

Edit config/default_config.yaml to customize.

Project Tracking

This project is tracked with the Outcome Backcasting MCP:

cd ~/Documents/PythonScripts/OutcomeBackcasting
./run_backcast.sh
# Load: context_continuity_engine.json

Status: 100% Complete (10/10 steps)

System Requirements

  • Python 3.8+
  • OpenSUSE Linux (X11 required for window tracking)
  • ~2.5 GB disk space (dependencies)
  • ~100 MB for local data storage

Architecture

ContextContinuityEngine/
├── context_daemon.py       # Main daemon
├── context_cli.py          # CLI interface
├── context_engine/
│   ├── storage/           # SQLite database
│   ├── vector_db/         # ChromaDB embeddings
│   ├── graph/             # Temporal graph
│   ├── prediction/        # Context predictor
│   ├── privacy/           # Privacy filter
│   └── monitors/          # Activity monitors
├── config/
│   └── default_config.yaml
└── data/                  # Generated at runtime
    ├── activity.db
    ├── embeddings/
    └── temporal_graph.pkl

Next Steps

  1. Customize Privacy Settings: Edit config/default_config.yaml
  2. Create Systemd Service: Auto-start on boot
  3. Test Live Tracking: Start daemon and use your computer normally
  4. Build Browser Extension: Better URL tracking
  5. Enable API Server: Cross-device sync

Troubleshooting

Daemon won't start

  • Check X11 is running: echo $DISPLAY
  • Verify python-xlib installed: pip list | grep xlib

No activities tracked

  • Check privacy blacklists in config
  • Verify daemon is running: ps aux | grep context_daemon

Embeddings slow

  • First run downloads model (~90MB)
  • Subsequent runs use cached model

Performance

Resource Usage (Typical):

  • CPU: 1-2% (idle), 5-10% (active tracking)
  • RAM: 200-300 MB
  • Disk I/O: Minimal (periodic saves every 5 minutes)

Tracking Overhead:

  • Window focus: <1ms per event
  • File access: <5ms per event
  • Embedding generation: ~10-50ms per activity

Support

Issues? Check:

  • Logs: logs/context_engine.log
  • Database: ./context_cli.py stats
  • Config: config/default_config.yaml