Use this guide to keep a real copy of the repo on your computer that tracks the same GitHub repository the team (and Cloud Agents) push to.
Canonical remote: https://github.com/Born2tweak/KinematicIQ.git
(GitHub may redirect from older born2tweak/kinematiciq URLs — both point to the same repo.)
- Git for Windows (includes Git Bash)
- Node.js 18+ LTS
- Cursor or VS Code
- Install Git and Node.js if you do not have them.
- In File Explorer, go to your clone (or download the repo as ZIP from GitHub and extract).
- Double-click
scripts\Setup-KinematicIQ.bat- Clones/updates
%USERPROFILE%\KinematicIQ - Runs
npm install - Starts the dev server in a new window
- Clones/updates
- Optional: double-click
scripts\Start-AutoSync.batto auto-pull from GitHub every 2 minutes.
Open PowerShell (not CMD) and paste:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
git clone https://github.com/Born2tweak/KinematicIQ.git $env:USERPROFILE\KinematicIQ
cd $env:USERPROFILE\KinematicIQ
git remote set-url origin https://github.com/Born2tweak/KinematicIQ.git
git pull origin master
.\scripts\setup-local-machine.ps1Or run setup only if you already cloned:
cd $env:USERPROFILE\KinematicIQ
.\scripts\setup-local-machine.ps1cd $env:USERPROFILE\KinematicIQ\web
npm run devcd $env:USERPROFILE\KinematicIQ
.\scripts\watch-and-pull.ps1Manual pull anytime:
.\scripts\sync-repo.ps1cursor $env:USERPROFILE\KinematicIQOr File → Open Folder → C:\Users\YOUR_NAME\KinematicIQ
- Program:
powershell.exe - Arguments:
-NoProfile -ExecutionPolicy Bypass -File "C:\Users\YOU\KinematicIQ\scripts\sync-repo.ps1" -Quiet
git clone https://github.com/Born2tweak/KinematicIQ.git
cd KinematicIQSSH (if you use GitHub SSH keys):
git clone git@github.com:Born2tweak/KinematicIQ.git
cd KinematicIQgit remote -vYou should see origin → Born2tweak/KinematicIQ (HTTPS or SSH). If origin is wrong:
git remote set-url origin https://github.com/Born2tweak/KinematicIQ.gitcd web
npm install
npm run devFrom the repo root:
chmod +x scripts/sync-repo.sh
./scripts/sync-repo.shThis fetches from origin and rebases your current branch onto origin/<same-branch>.
Switch branches when you need agent or feature work:
git fetch origin
git checkout master
./scripts/sync-repo.sh
# Example: operating system doc branch
git checkout cursor/project-operating-system-a6c8
./scripts/sync-repo.shIn a second terminal tab, leave this running:
chmod +x scripts/watch-and-pull.sh
./scripts/watch-and-pull.shDefault: checks every 120 seconds. Change interval:
SYNC_INTERVAL_SEC=60 ./scripts/watch-and-pull.shStop with Ctrl+C.
- Open the cloned
KinematicIQfolder in Cursor (not a copy without.git). - Enable Git: Autofetch in settings (
git.autofetch:true). - Use Source Control → Pull or enable Git: Auto Repository Refresh.
This fetches often; you still pull (or use the sync script) to update files.
Save as ~/Library/LaunchAgents/com.kinematiciq.sync.plist (edit YOUR_USER and path):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.kinematiciq.sync</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>cd /Users/YOUR_USER/KinematicIQ && ./scripts/sync-repo.sh --quiet</string>
</array>
<key>StartInterval</key>
<integer>300</integer>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>Load:
launchctl load ~/Library/LaunchAgents/com.kinematiciq.sync.plistSee Windows (start here) above for PowerShell task settings.
| Environment | What it is |
|---|---|
GitHub (origin) |
Source of truth — all pushes land here |
| Cloud Agent workspace | Temporary clone; commits and pushes to GitHub |
| Your laptop | Your local clone — must git pull (or use scripts above) to see agent changes |
Cloud Agents cannot push files directly to your laptop. Flow:
Agent commits → git push → GitHub → your machine pulls (manual or auto-sync)
After an agent finishes a PR or push, run ./scripts/sync-repo.sh on the branch you care about.
| Problem | Fix |
|---|---|
permission denied on scripts |
chmod +x scripts/*.sh |
| Pull blocked by local edits | Commit, stash (git stash), or discard changes |
| Wrong repo / empty project | Re-clone from Born2tweak/KinematicIQ URL above |
| Branch missing locally | git fetch origin && git checkout <branch-name> |
Only see old code on master |
Feature work may be on cursor/* branches — fetch and checkout |
# Clone once
git clone https://github.com/Born2tweak/KinematicIQ.git && cd KinematicIQ
# Pull latest on current branch
./scripts/sync-repo.sh
# Auto-pull every 2 minutes while coding
./scripts/watch-and-pull.sh
# Web dev server
cd web && npm run dev