saveCodebase
Export a codebase to a file in XML, Markdown, or plain text formats. Includes directory structure, file summaries, line numbers, and customizable patterns for inclusion or exclusion.
Instructions
Save the codebase to a file using RepoMix
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cwd | No | Current working directory of the codebase (defaults to current dir) | |
format | No | Output format (xml, markdown, or plain) | xml |
ignorePatterns | No | Ignore patterns (using glob patterns, comma-separated) | |
includeDirectoryStructure | No | Include directory structure | |
includeFileSummary | No | Include summary of each file | |
includePatterns | No | Include patterns (using glob patterns, comma-separated) | |
outputFile | No | Output file path | repomix-output.txt |
removeComments | No | Remove comments from the code | |
removeEmptyLines | No | Remove empty lines from the code | |
showLineNumbers | No | Show line numbers |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cwd": {
"description": "Current working directory of the codebase (defaults to current dir)",
"type": "string"
},
"format": {
"default": "xml",
"description": "Output format (xml, markdown, or plain)",
"enum": [
"xml",
"markdown",
"plain"
],
"type": "string"
},
"ignorePatterns": {
"description": "Ignore patterns (using glob patterns, comma-separated)",
"type": "string"
},
"includeDirectoryStructure": {
"default": true,
"description": "Include directory structure",
"type": "boolean"
},
"includeFileSummary": {
"default": true,
"description": "Include summary of each file",
"type": "boolean"
},
"includePatterns": {
"description": "Include patterns (using glob patterns, comma-separated)",
"type": "string"
},
"outputFile": {
"default": "repomix-output.txt",
"description": "Output file path",
"type": "string"
},
"removeComments": {
"default": false,
"description": "Remove comments from the code",
"type": "boolean"
},
"removeEmptyLines": {
"default": false,
"description": "Remove empty lines from the code",
"type": "boolean"
},
"showLineNumbers": {
"default": true,
"description": "Show line numbers",
"type": "boolean"
}
},
"type": "object"
}