Stop letting your documentation rot. Auto-Doc is an intelligent AI agent for VS Code that watches your Git commits and automatically synchronizes your documentation with your code changes using Google's powerful Gemini models.
🚀 The Value Proposition
Keeping documentation in sync with a fast-moving codebase is a manual, error-prone chore. Auto-Doc automates this by:
Instant Updates: Triggers the moment you commit code, ensuring your docs never lag behind.
Context-Aware Generation: Uses your commit messages, changed code, and global context files (like your README) to generate meaningful updates.
Reasoning Depth: Leverages Gemini's "Thinking" capabilities to understand why changes were made, not just what changed.
Total Control: You decide which files map to which docs and whether updates happen automatically or only when you say so.
🛠️ Key Features
Smart Mappings: Use powerful glob patterns powered by minimatch to link source directories to specific documentation files.
Brace Expansion: src/**/*.{ts,js} matches both .ts and .js.
Extended Glob Matching: +(errors|utils)/*.ts matches files in errors or utils.
"Globstar" ** Matching: src/**/*.ts matches all .ts recursively.
Git-Triggered Workflow:
always: Seamless background updates.
ask: A quick confirmation prompt after every commit.
manual: Only when you run the sync command.
Deep Context: Include "Global Context" files that are always fed to the AI to maintain consistent terminology and style.
Custom Templates: Fully customize the AI's logic by overriding the internal Handlebars templates for prompts and doc skeletons.
Enterprise Ready: Supports both individual Gemini API Keys and Google Cloud Vertex AI (via Application Default Credentials).
📖 Getting Started
1. Initialization
Open your project and run the Auto-Doc: Initialize command from the Command Palette (Cmd/Ctrl+Shift+P).
This creates a .autodoc folder with default templates you can customize later.
2. Configuration
Add your mappings to your settings.json or via the VS Code Settings UI. For a full breakdown of all configuration options, including Vertex AI and Multi-Root Workspace setups, see our Detailed Configuration Guide.