Automatically generate comprehensive docstrings that match your existing format, delivered through PR workflow for complete review control
@coderabbitai generate docstrings
or check the box in your PR walkthrough to trigger generation.
The system scans your changes with ast-grep, identifies functions needing documentation, and generates docstrings that match your codebase’s existing format. Generated docstrings are committed to a new branch and opened as a PR for your review.
This handles the initial documentation grunt work while keeping you in control through the standard PR review process.
Trigger generation
@coderabbitai generate docstrings
in your PR or check Generate Docstrings in the CodeRabbit WalkthroughFunction analysis
Format-aware generation
PR workflow
Customize documentation format using .coderabbit.yaml