Configuration
codemap reads global settings from %USERPROFILE%/.codemap/codemap.json on Windows, or ~/.codemap/codemap.json on other systems. Repository-level configuration files are not supported.
Create the file
codemap configThis command writes a template with the default values. Options passed with the command are saved to the file.
codemap config --format xml --instruction ./prompts/review-rules.mdKeys
{
"outputPath": "codemap-output.md",
"format": "markdown",
"outputMode": "clipboard",
"copyToClipboard": true,
"usePatch": false,
"includePatterns": ["**/*"],
"excludePatterns": ["bin", "obj"],
"includeFileSummary": true,
"includeDirectoryStructure": true,
"showLineNumbers": false,
"removeComments": false,
"removeEmptyLines": false,
"enableSecurityCheck": false,
"includeGitDiffs": false,
"includeGitLogs": false,
"gitLogCount": 20,
"tokenBudget": null,
"maxFileSizeBytes": null,
"splitOutputBytes": null,
"instructionPath": null,
"headerText": null,
"truncateBase64": false
}Command-line options override the file for a single run.
Precedence
- Command-line options.
- The global configuration file.
- Built-in defaults.