feat: add codebase-doc mode for project documentation generation #6171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a new custom mode called Codebase Documentation Generator as requested in #6169.
What it does
The codebase-doc mode helps users generate comprehensive project documentation by:
Implementation Details
Testing
Example Usage
When in codebase-doc mode, users can simply ask:
The mode will then use the available tools to analyze the project and generate comprehensive documentation.
Closes #6169
Important
Introduces
codebase-docmode for generating project documentation using existing tools, with configuration and tests added to ensure functionality.codebase-docmode inmodes.tsfor generatingPROJECT_DOC.mdby analyzing project structure, environment, and dependencies.list_files,read_file, andwrite_to_filefor analysis and documentation.codebase-docmode configuration inmodes.tswith specific instructions and workflow.codebase-docmode inmodes.spec.tsto verify tool permissions and mode configuration.codebase-docmode allows read, edit, and browser tools but not command or mcp tools.This description was created by
for 8fc5f80. You can customize this summary. It will automatically update as commits are pushed.