DevPet VS Code Extension
Your AI coding companion lives in VS Code — earning XP while you code
and protecting you from accidentally pushing secrets to GitHub.
Setup
- Install this extension
- Open Command Palette:
Cmd+Shift+P (Mac) / Ctrl+Shift+P (Windows)
- Run "DevPet: Set API Token"
- Generate a token at devpet.app/settings → API tab
- Paste and press Enter — your companion appears in the status bar!
Features
🐾 Companion Status Bar
- Shows mood emoji + name + level:
✨ Zen Fox Lv.8
- Hover for full stats (GRIND, FOCUS, SHIP, SQUASH, VIBE)
- Click to open dashboard
⚡ XP System
- +5 XP per file save (debounced 30s, max 10/hour)
- +25 XP for coding sessions over 30 minutes
- +75 XP for coding sessions over 2 hours
- Sync GitHub commits manually for big XP gains
🛡️ Security Scanner
- Scans files on save for sensitive content
- Detects: API keys, passwords, tokens, private keys, .env files
- Warns BEFORE you can accidentally push to GitHub
- Offers to add sensitive files to .gitignore automatically
- Install git pre-push hook to BLOCK dangerous pushes entirely
Commands
| Command |
Description |
| DevPet: Open Dashboard |
Opens devpet.app/dashboard |
| DevPet: Sync XP Now |
Syncs GitHub commits for XP |
| DevPet: Set API Token |
Connect your companion |
| DevPet: Show Companion Status |
View companion details |
| DevPet: Scan Project for Sensitive Files |
Full project security scan |
| DevPet: Install Git Pre-Push Security Hook |
Block dangerous pushes at git level |
Security — What Gets Detected
Sensitive filenames: .env, .env.local, .env.production,
id_rsa, *.pem, *.key, credentials.json, service-account.json and more.
Sensitive content patterns:
- API keys (any provider)
- Passwords and secrets
- Database URLs with credentials
- AWS Access Keys (AKIA...)
- Private SSH/SSL keys
- Stripe, Razorpay, Anthropic, OpenAI, GitHub tokens
Settings
| Setting |
Default |
Description |
devpet.apiToken |
"" |
Your DevPet API token |
devpet.apiUrl |
"https://devpet.app" |
Server URL (change for self-hosting) |
devpet.showInStatusBar |
true |
Show companion in status bar |
devpet.securityScanEnabled |
true |
Enable security scanning |
devpet.securityScanOnSave |
true |
Scan on file save |
Building from source
cd vscode-extension
npm install
npm run compile
# Press F5 in VS Code to test
Packaging
npm run package
# Creates devpet-1.0.0.vsix
| |