Nova’s awareness system is powered by a series of scripts that run daily or manually via GitHub Actions. These scripts analyze the codebase, extract meaningful signals, and generate awareness files.
Daily Sync: GitHub Actions + Node.js Scripts
Active Scripts in /scripts/
scanSiteStructure.js— Map folder + page structurecomponentScan.js— Index includes + layout modulesimageAudit.js— Log hero/media/card assetscodeFootprint.js— Count files + lines across codebasejsFunctionMap.js— Map function names in /scriptsgenerateCodeMap.js— NEW: Code Awareness Sensor (JS/CSS/HTML map)unusedCSS.js— Identify potentially unused classesmoodScan.js— Detect site tone and writing styleaiPromptGenerator.js— Create poetic AI prompt of the dayapiMonitor.js— Ping HuggingFace + Meme APIchangelogSnapshot.js— Pull last 10 Git commitsversionTracker.js— Capture commit hash + timestampgenerateNovaBoot.js— Combine all into Nova’s memory file
Outputs → /data/
Each run generates awareness JSON files used in the dashboard and site logic:
nova-session-boot.txt– Nova’s unified memory file (for GPT or local AI)nova-session-boot.html– Human-readable boot logcode-map.json– NEW: Tag + function map across JS/CSS/HTMLapi-monitor.json,ai-prompts.json,mood-scan.json...
Automation Flow
.github/workflows/update-nova-memory.yml
└── node scripts/*.js
├── analyze
├── write to /data/*.json
└── push to Git → triggers Azure deploy
About the Code Awareness Sensor
This system reads all JS, CSS, and HTML across the site and builds:
- Total counts of tags, class names, and functions
- Extracted function/class/tag names across all directories
- Timestamped entries for use in
code-map.json
This output enables Nova to reflect on the evolving codebase, mention new functions, and generate targeted feedback or prompts.
Nova v2.3 | All Modules Operational | Last updated: April 10, 2025