From IRC Code-Theft War to a Modern Windows Sentinel
CopyGuard started around 2004 as an mIRC script war: a custom mSL + DLL copy guard that let people read code without taking it — freeze the remote editor, poison the clipboard, auto-respawn on exit, auth-gated quit. Two decades later the same instinct rebuilt it as 2.0 after an idle PC was eating 6–12% CPU for no visible reason: paste blocker, clipboard lock, autostart watchdog, and two processes that refuse to stay dead.
mircmslircclipboardpaste-blocker.netwindows
the 2004 trick
Custom IRC patch — remote editor opened the script, then froze; visible, but no scrolling
DLL controls the clipboard while IRC.exe runs — copy anything, paste nowhere
Auto-respawn on exit via on *:EXIT — killing the client was a dead end
Only a proper, authenticated exit stopped it
the 2026 rebuild
Paste blocker swallows Ctrl+V/Shift+Insert for listed apps via keyboard hook
Clipboard lock caches text in RAM, empties clipboard on focus in, restores on focus out
Persistence sentinel watches every autostart location, alerts and optionally reverts changes
Two processes revive each other — stop.flag + authenticated cgctl is the owner's way out
the twist
Built to find what eats idle CPU — it found itself: DiskSentinel was hammering a failed USN journal read every 5s
Policy fix dropped CopyGuard to 0.4% CPU; the real background eater was ASUS bloatware
Migrated XG's memory from opaque JSONB arrays to native pgvector halfvec(768) columns with HNSW cosine indexes. Integrated PyRIT as an allowlist-gated pentest_scan MCP tool with a verified mock-sandbox harness. Found a pre-existing _log NameError that silently broke every memory write.
pgvectorhalfvechnswragpyritmcppostgres
headlines
jsonb → halfvec is only possible through text — safe migration is dual-write
HTTP target prompt must live in the POST body, not headers
Blocking issue: swarm worker synthesizes "completed" results with zero artifacts
environment
Mac host: user void, workspace /Volumes/Xbyte/Projects/XG/
PostgreSQL 16 via Homebrew, pgvector source-built
Embedder: nomic-embed-text → 768-dim via ollama
built
Migration: scripts/migrate_embeddings.py
PyRIT pentest MCP tool: tools/pentest_scan.py
Mock sandbox harness + regression tests — all green
2026-09-01// CopyGuard
High-CPU Investigation & Remediation
High CPU on a Windows PC was NOT CompatTelRunner. Root cause: CopyGuard's DiskSentinel module failing to read NTFS USN journal, re-querying every 5s. Secondary: WmiPrvSE at 140%+ CPU from broken LineageTracker WMI watcher.
copyguardcpudisk-sentinelusn-journalwmiwindows
root cause
DiskSentinel couldn't read USN journal (error 1784), retried every 5s
When cloud free models go down, XG must keep operating. Built failover to LAN ollama. Benchmarked planner models: qwen2.5:14b is competent, qwen3:8b fails as planner despite correct tool-calling in isolation.
qwen2.5:14bqwen3:8bfailoverollamabenchmarkplanner
findings
qwen2.5:14b — correct task decomposition, drives full swarm to completion
qwen3:8b — tool-calls correctly in isolation but fails as planner
gemma3:12b — ruled out, cannot emit tool calls via ollama
Secondary: qwen2.5:14b defaults to Chinese unless pinned to English
2025-06-09// Pulse
Zero-Budget IAM Command Centre
Full identity and access oversight, built in 3 months with zero budget and zero enterprise tools. No PAM, no CIEM — just Google Sheets, Notion, and Apps Script on cron jobs edited in nvim. Live user DB, internal-vs-external login monitoring, ghost-account tracker, RBAC visibility, calendar sync, a Slack bot that fed dev and HR in real time, and a Notion hub that onboarded new staff on day one.