Open Settings (Ctrl+, / Cmd+,) and search for Code Context Notes, or edit settings.json directly. All keys are prefixed codeContextNotes..
| Setting | Default | Description |
|---|---|---|
storageDirectory |
".code-notes" |
Directory where notes are stored, relative to the workspace root. |
authorName |
"" |
Override author detection. Empty uses your git username, then system username. |
showCodeLens |
true |
Show CodeLens indicators above code that has notes. |
| Setting | Default | Description |
|---|---|---|
sidebar.sortBy |
"file" |
Sort notes by "file" (path, alphabetical), "date" (most recent first), or "author". |
sidebar.previewLength |
50 |
Max length of note preview text in the sidebar (20–200). |
sidebar.autoExpand |
false |
Automatically expand file nodes (default keeps them collapsed). |
Note: the VS Code settings dropdown for
sidebar.sortBycurrently offers onlyfile;dateandauthorare honored if set insettings.jsondirectly.
See the Trust model guide for what these do. agentWriteMode is mirrored into .code-notes/config.json so the MCP server reads the same policy.
| Setting | Default | Description |
|---|---|---|
agentWriteMode |
"audit" |
How MCP-agent writes are handled: "direct", "audit", or "queue". |
agentAllowList |
[] |
Agent names allowed to write (matches the server's --agent). Empty allows any. Informational, not a security boundary. |
auditLogRetention |
1000 |
Audit-log entries kept before older ones rotate to _audit.log.1. |
Auto-generated files that give AI agents workspace context — see Agents & MCP.
| Setting | Default | Description |
|---|---|---|
exports.enabled |
true |
Auto-generate INDEX.json and AGENTS.md in the storage directory on every note change. |
exports.indexJson |
true |
Generate INDEX.json (machine-readable index). |
exports.agentsMarkdown |
true |
Generate AGENTS.md (human-readable digest). |
{
"codeContextNotes.storageDirectory": ".code-notes",
"codeContextNotes.authorName": "Ada Lovelace",
"codeContextNotes.agentWriteMode": "queue",
"codeContextNotes.sidebar.sortBy": "date",
"codeContextNotes.exports.enabled": true
}