ZeroDrop is the ultimate silent guardian for your code. It ensures you never drop or lose a single line of work by automatically detecting uncommitted changes, generating intelligent AI-driven commit messages, and managing pessimistic file locking directly in real-time.
✨ Features
🔄 Automated Sync Lifecycle: Runs seamlessly in the background to commit and push changes on window close or editor shutdown.
🤖 Intelligent AI Commits: Automatically generates rich, logic-aware "Conventional Commit" messages using Groq, Gemini, Ollama, Hugging Face, Cohere, xAI, Moonshot, and MiniMax.
🔒 Pessimistic File Locking: Prevents merge conflicts by securely coordinating file ownership among teammates via ZeroDrop Cloud Firestore REST integration.
⚡ Dual Power Toggles: Fully control sync states using Global and Project-specific cyber capsules in the control center.
🔋 Smart Battery Protection: Automatically pushes uncommitted code to safety when your laptop battery level is critically low.
🌐 Interactive Portal Brand Cluster: Navigate directly to the organization portal (Hope3 Services) and the creator portfolio (Siranjeevan) via spring-animated interactive header nodes.
🔧 Fetch & Pull Control: Synchronizes your repository with the remote branch automatically when launching VS Code.
🛡️ Zero Credential Handover: Operates entirely using your local system's existing Git configuration and SSH/HTTPS credentials.
📦 Installation
Open Visual Studio Code or Cursor.
Navigate to the Extensions view (Cmd+Shift+X or Ctrl+Shift+X).
Search for ZeroDrop.
Click Install.
Log in securely using Google OAuth through the premium glassmorphic portal in the sidebar to unlock all features!
⚙️ Configuration Options
ZeroDrop provides extensive customization options directly in the sidebar or via VS Code settings.json:
Setting
Type
Default
Description
zeroDrop.globalEnabled
Boolean
true
Master switch to enable or disable all ZeroDrop functions.
zeroDrop.projectEnabled
Boolean
true
Enable or disable ZeroDrop for the current workspace only.
zeroDrop.enableAutoPush
Boolean
false
Automatically push committed code to your remote branch on shutdown.
zeroDrop.enableAICommitMessage
Boolean
true
Generate professional commit messages using local/cloud AI.
zeroDrop.aiProvider
Enum
"groq"
Choose your AI engine: groq, google, huggingface, cohere, xai, moonshot, minimax, or ollama.
zeroDrop.apiKey
String
""
The API Key for your selected cloud AI provider.
zeroDrop.ollamaModel
String
"llama-3.1-8b-instant"
Model parameters for local or cloud AI generation.
zeroDrop.preferredBranch
String
"main"
Default target branch to push changes to (workspace specific).
zeroDrop.pullFromBranch
String
"main"
Default branch to automatically fetch/pull code from.
zeroDrop.enableBatteryProtection
Boolean
true
Trigger emergency save & push when laptop power is low.
zeroDrop.batteryThreshold
Number
5
Critical battery level percentage that triggers protection (Default: 5%).
zeroDrop.enableAutoInterval
Boolean
false
Auto-save periodically while working.
zeroDrop.intervalMinutes
Number
30
Minutes to wait between periodic background auto-saves.
zeroDrop.fixDefaultCommitsOnStartup
Boolean
true
Replaces placeholder commit messages with AI messages on startup.
🛠️ How It Works
graph TD
A[VS Code Session] -->|Window Close / Timer / Battery Trigger| B{Uncommitted Changes?}
B -->|Yes| C[Generate AI Commit Message]
B -->|No| G[End Session Safely]
C --> D[Run Git Add & Commit]
D --> E{Auto-Push Enabled?}
E -->|Yes| F[Git Push in background]
E -->|No| G[End Session Safely]
F --> G
1. On Editor Close (Shutdown Hook)
Automatic Scan: Scans all active workspace folders.
Change Detection: Checks for modified, deleted, or untracked files via git status --porcelain.
Commit & Backup: Automatically stages changes and commits them. If enableAutoPush is active, it fires a background push (continuing smoothly even after the IDE exits).
2. Startup Fetch & Auto-Fix
Remote Synchronization: Pulls down current changes to prevent diverged branches.
Placeholder Fixes: Detects if your last commit was a default placeholder message and prompts you to swap it for a logic-rich AI generated message!
3. Emergency Low-Battery Push
Monitored dynamically: If battery drops below your chosen threshold (e.g. 5%) and charging is disconnected, ZeroDrop automatically commits and pushes all changes, ensuring your latest progress is safe in the cloud before the laptop shuts down.
💻 CLI Tools
ZeroDrop includes a standalone command-line interface (CLI) to trigger silent backups and commit generation directly from your terminal.
Installation
npm install -g zerodrop
# OR link it locally:
npm link
Terminal Commands
Manual Silent Backup: zerodrop run
Manual Save & Push: zerodrop run --auto-push
Run With AI Commit: zerodrop run --ai
Fix Default Commit: zerodrop fix --ai --apply
🛡️ Privacy & Safety First
🔒 Zero Data Harvesting: We do not collect telemetry, track statistics, or upload code snippets to private databases.
⚡ Local-First Execution: All git actions run using your machine's own local git binary and configuration.
🤖 Private Local AI Support: Choose ollama as your AI provider to run completely free, high-performance LLM commits entirely on your machine.