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
| Scope | Location | Purpose |
|---|---|---|
| User | ~/.m31a/settings.json | Personal defaults across all projects. |
| Workspace | <project>/.m31a/settings.json | Project-specific overrides, safe to commit when no secrets are present. |
| System | Configured via system settings path | Machine-wide defaults, often managed by administrators. |
| Admin | Remote/admin policy paths | Enforced 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:
{
"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 (default200),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
.gitignoreis respected when searching (context.fileFiltering.respectGitIgnore)..m31aignoreis respected by default (context.fileFiltering.respectM31aIgnore).advanced.excludedEnvVarsexcludes named environment variables from project context;advanced.ignoreLocalEnvignores generic.envfiles.
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:
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
- Browse the full Settings reference.
- Learn about Approval modes and policies.