How stephen-os/sift works
sift is a Windows tray app and CLI for sorting OBS clips into game-specific folders. Users configure watched and fallback folders and register games, then launch the watcher. Its runtime waits for new clips to finish writing, identifies a running game, chooses a destination and filename, and moves the clip; the tray reports activity and supports live settings reload. The README also documents database refresh, start-on-login, and console mode. Edges reflect shown calls or README-described behavior; no other unsampled internals are inferred.
Main entry points: watcher.py Folder watcher · tray.py System tray · cli.py CLI commands · gamedb.py Game database
Components 15
User controls
- CLI commands
src/sift/cli.py
Configuration and identity
- Settings
src/sift/config.py - Game database
src/sift/gamedb.py - Bundled game data
src/sift/data
Clip processing
- Folder watcher
src/sift/watcher.py - Game and destination routing
src/sift/router.py
Tray and notifications
- System tray
src/sift/tray.py - Desktop alerts
src/sift/notify.py - Login startup
src/sift/autostart.py
Other components
- User
- Game data source
- OBS output folder
- Running processes
- Clip destination folders
- Windows registry
Connections 21
- User → CLI commands: runs commands
README.md - CLI commands → Settings: edits settings
src/sift/cli.py - CLI commands → Game database: lists or updates
src/sift/cli.py - CLI commands → Folder watcher: launches console mode
src/sift/cli.py - CLI commands → System tray: launches tray mode
src/sift/cli.py - CLI commands → Desktop alerts: shows fatal errors
src/sift/cli.py - Game database → Bundled game data: loads bundled data
src/sift/gamedb.py - Game database → Game data source: downloads updates
src/sift/gamedb.py - Folder watcher → OBS output folder: watches new clips
src/sift/watcher.py - Folder watcher → Running processes: reads running executables
src/sift/watcher.py - Folder watcher → Game and destination routing: routes stable clips
src/sift/watcher.py - Game and destination routing → Settings: uses game settings
src/sift/router.py - Game and destination routing → Game database: identifies unmatched executables
src/sift/router.py - Folder watcher → Clip destination folders: moves clips
src/sift/watcher.py - System tray → Folder watcher: starts and controls
src/sift/tray.py - System tray → Settings: reloads settings
src/sift/tray.py - System tray → Game database: refreshes database
src/sift/tray.py - Folder watcher → System tray: reports moves and errors
src/sift/watcher.py - System tray → Login startup: toggles login launch
src/sift/tray.py - Login startup → Windows registry: writes startup entry
src/sift/autostart.py - System tray → Desktop alerts: shows fatal errors