Note: doc gen

Context

The doc-gen feature generates documentation from source code, including docstrings, README sections, and API references. It uses a three-stage workflow with specialized subagents for planning, writing, and polishing documentation.

Architecture

The doc-gen package implements a multi-stage workflow through mixins and a central orchestrator:

Core workflow:

Stage mixins:

Support mixins:

Utilities:

The workflow operates on codebases at specified paths, analyzing source files to produce comprehensive documentation that covers modules, APIs, and usage examples.

Source files

Tags: docs, documentation, generation