Skip to content

M31A settings are JSON files validated against a generated JSON Schema. The schema is published at schemas/settings.schema.json in the repository.

Settings files ​

ScopeLocationPurpose
User~/.m31a/settings.jsonPersonal defaults across all projects.
Workspace<project>/.m31a/settings.jsonProject-specific overrides, safe to commit when no secrets are present.
SystemConfigured via system settings pathMachine-wide defaults, often managed by administrators.
AdminRemote/admin policy pathsEnforced restrictions that users cannot override.

Environment variables can override file settings; see Environment variables.

Merge behavior ​

Settings are merged by scope using a per-key strategy:

  • REPLACE — the most specific scope wins.
  • CONCAT — array values are concatenated.
  • UNION — duplicate values are removed.
  • SHALLOW_MERGE — one level of object keys is merged.

Each key in the schema records its category, default value, and whether a restart is required.

Editing settings ​

Use the /settings dialog to browse and edit settings with validation, or edit the JSON file directly. A minimal user settings file:

json
{
  "general": {
    "defaultApprovalMode": "auto_edit",
    "vimMode": false,
    "checkpointing": {"enabled": true}
  },
  "model": {
    "name": "nvidia/nemotron-3-ultra-550b-a55b",
    "thinkingEffort": "medium",
    "compressionThreshold": 0.5
  },
  "ui": {
    "theme": "M31A",
    "hideTips": true
  },
  "tools": {
    "allowed": ["read_file", "glob", "grep_search"]
  }
}

Validate a hand-edited file by opening /settings — invalid values are flagged against the schema.

Context files (M31A.md) ​

M31A.md is a plain Markdown file loaded into the agent's context. By default M31A discovers M31A.md files up the directory tree, stopping at boundaries such as .git. Control discovery with:

  • context.fileName — a string or array of filenames,
  • context.includeDirectories — extra directories to scan,
  • context.discoveryMaxDirs — search limit (default 200),
  • context.memoryBoundaryMarkers — boundary names (default .git),
  • context.loadMemoryFromIncludeDirectories — include extra directories on /memory reload,
  • context.fileFiltering — git-aware ignore behavior.

Use /memory show, /memory reload, and /init to inspect and maintain project memory.

Ignore files ​

  • .gitignore is respected when searching (context.fileFiltering.respectGitIgnore).
  • .m31aignore is respected by default (context.fileFiltering.respectM31aIgnore).
  • advanced.excludedEnvVars excludes named environment variables from project context; advanced.ignoreLocalEnv ignores generic .env files.

Themes ​

Built-in themes include M31A and Dracula. Set ui.theme or use /theme. Custom themes are declared in ui.customThemes.

Generated documentation and schema ​

The repository can regenerate machine-readable and human-readable settings documentation:

bash
npm run schema:settings     # writes schemas/settings.schema.json
npm run docs:settings       # writes generated sections into docs/
npm run docs:keybindings    # writes generated shortcut tables into docs/

The generators use marker comments such as <!-- SETTINGS-AUTOGEN:START --> and skip files that are not present. They also support --check to verify generated output is current.

Next steps ​

Built with VitePress. Powered by NVIDIA NIM.