Quickstart (Cheat Sheet)
⚡ Quickstart: Daily Operations
Role: Operator / Pilot Objective: Maintain, Update, and Deploy the EN-OS.
Agent Runtime Resolution
Human/operator terminal commands can use the short forms in this guide (npm run ..., python ...) when the local shell resolves them correctly. Agent-critical workflows should use explicit runtimes so Codex sandboxing does not depend on PATH, Windows shims, or user-level npm prefixes.
# Global agent session-open scripts& D:\GitHub\global_agent\venv\Scripts\python.exe D:\GitHub\global_agent\scripts\sprint_board.py --current-iteration& D:\GitHub\global_agent\venv\Scripts\python.exe D:\GitHub\global_agent\scripts\diag.py
# Codex-run portfolio checks& C:\Users\erik\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe scripts\compile_hack_pack.py& C:\Users\erik\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe node_modules\astro\astro.js syncIf a command fails only inside Codex, keep sandboxing on and swap the command to one of the explicit runtimes above. Escalate only for operations that genuinely need user-level access, auth, network, or installs.
1. Start Engine (Dev Server)
The dev server renders content and assets locally at full fidelity.
Command:
npm run devTelemetry:
- Local:
http://localhost:4321 - Content: edit MDX directly under
src/content/projects/<slug>/index.mdx - Network:
http://192.168.x.x:4321
[!WARNING] Ghost Port Anomaly: If you see old code or behavior, check for zombie processes.
Fix: Run
taskkill /F /IM node.exeto kill all stray servers.
2. The Data & Asset Refinery
We work in Pure Hyperspace. No CSVs. No Manual Content files. But we still need to sync assets and timeline data.
Commands:
# Injects NotebookLM Bolus data and mines R2_MASTER for stickiesnpm run content:hydrate
# The "Heavy Lifter" for media (Images & Audio)npm run assets:process
# Mass-updates legacy content to the latest C24 Schemanpm run content:modernizeTriggers (When to Run):
- New Timeline Node: You created a new project MDX file -> Run
content:hydrate. - Asset Drop: You added a new folder to
R2_MASTER-> Runassets:process. - Schema Change: You need to update all MDX files -> Run
content:modernize.
[!TIP] The Pulse: The script outputs build time statistics. Watch for
[SUCCESS]in Green.
3. Asset Management (The Vault)
Source of Truth: D:\GitHub\portfolio-workspace\R2_MASTER
Workflow:
- Edit: Place images in
R2_MASTER/{slug}/bubbles/... - Sync: Run the sync script to update Staging and Production.
# Ensure R2_MASTER assets are processed and moved to R2_MIRRORnpm run assets:process4. Diagnostics (“Doctor”)
If the system behaves erratically:
1. Verify Ports:
Get-Process node, python -ErrorAction SilentlyContinue2. Check Frontmatter & Schema:
npm run predev# ornpm run audit:frontmatter3. Test Build:
npm run build(Pre-flight check before pushing. Catch TypeErrors here.)
5. Deployment
Protocol: Git-Triggered (CD).
- Commit:
git commit -m "feat: upgrade warp drive" - Push:
git push - Monitor: Check Cloudflare Pages dashboard for build status.