Website · Quick Start · How It Works · Pricing
Documentation rots. You know it. Your team knows it. That function you documented last month? The signature changed twice since then. The README? Written when the project had 3 files.
DocSync fixes this by making documentation a first-class citizen of your git workflow.
# Install via ClawHub (free)
clawhub install docsync
# Generate docs for your project
docsync generate .
# Check what's undocumented
docsync drift
# Auto-fix stale docs
docsync auto-fix
# Install git hooks to catch drift on every commit
docsync hooks installYou commit code
│
▼
Pre-commit hook fires
│
▼
DocSync parses staged files (tree-sitter)
│
├─ Extracts: functions, classes, types, exports
├─ Compares against existing docs
│
▼
Drift detected?
├─ No → commit proceeds ✓
└─ Yes → blocks commit, suggests auto-fix
DocSync uses tree-sitter for accurate AST parsing across 40+ languages. When tree-sitter isn't installed, it falls back to regex-based extraction.
Every commit is checked for:
- Undocumented symbols — new functions/classes with no docs (critical)
- Stale signatures — code changed but docs didn't (warning)
- Dead references — deleted code still mentioned in docs (warning)
Uses lefthook for fast, parallel pre-commit hooks. Runs only on staged files — no full-repo scans.
TypeScript, JavaScript, Python, Rust, Go, Java, C, C++, Ruby, PHP, C#, Swift, Kotlin — and any language with a tree-sitter grammar.
| Feature | Free | Pro ($29/user/mo) | Team ($49/user/mo) |
|---|---|---|---|
| Doc generation | ✓ | ✓ | ✓ |
| Drift detection | ✓ | ✓ | |
| Git hooks | ✓ | ✓ | |
| Auto-fix | ✓ | ✓ | |
| Onboarding guides | ✓ | ||
| Architecture docs | ✓ | ||
| Custom templates | ✓ |
Free tier is fully functional for one-shot doc generation. Pro adds the "living docs" workflow.
- 100% local processing — your code never leaves your machine
- Zero telemetry — no analytics, no tracking, no phone-home
- Offline license validation — works in air-gapped environments
Built entirely on open-source tools:
- tree-sitter — Multi-language AST parsing (MIT)
- lefthook — Git hooks manager (MIT)
- difftastic — Structural diff tool (MIT)
PRs welcome! See CONTRIBUTING.md.
MIT — free to use, modify, and distribute.
The DocSync skill scripts are MIT licensed. Premium features (drift detection, hooks, auto-fix) require a license key.