Instructions and headers
Instruction file
--instruction <path> prepends the contents of a text file to the output. Use it for standing guidance that an AI tool should read before the code.
codemap --instruction ./prompts/review-rules.mdThe instruction appears before the file tree in every format. Trailing whitespace is trimmed.
Header text
--header-text <text> adds a short line at the top of the output.
codemap --header-text "Billing service snapshot, March release"Base64 truncation
Long base64 runs, such as embedded images, add many tokens and little meaning. --truncate-base64 replaces each long run with [base64 data truncated].
codemap --truncate-base64
codemap --no-truncate-base64 # keep base64 for this runSaving defaults
All three options can be stored in the configuration file. See Configuration.
| Option | Config key |
|---|---|
--instruction | instructionPath |
--header-text | headerText |
--truncate-base64 | truncateBase64 |