Simple script to clone vendor repos locally for IDE/agent reference. Repos are gitignored, so they won't bloat your git repository.
Coding agents (like Cursor, Claude, etc.) can search your codebase to answer questions about libraries. By cloning the source code locally, agents can reference the actual implementation instead of guessing.
# Clone/update all repos
./scripts/update-vendor-repos.sh all
# Or update individual repos
./scripts/update-vendor-repos.sh effect
./scripts/update-vendor-repos.sh svelte
./scripts/update-vendor-repos.sh kit- Copy
update-vendor-repos.shto your project'sscripts/directory - Make it executable:
chmod +x scripts/update-vendor-repos.sh - Add to
.gitignore:vendor/ - Run the script to clone repos to
vendor/
- Clones repos to
vendor/{name}/(gitignored) - Updates existing repos if they already exist
- Uses
--depth 1for faster clones - Tracks
mainbranch by default
Edit the script to add/remove repos:
EFFECT_REPO="https://github.com/Effect-TS/effect"
SVELTE_REPO="https://github.com/sveltejs/svelte"
KIT_REPO="https://github.com/sveltejs/kit"MIT