Configuration

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 config

This 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.md

Keys

{
  "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

  1. Command-line options.
  2. The global configuration file.
  3. Built-in defaults.