Cortex configuration is stored in ~/.cortex/config.json. You can apply presets using /cortex-configure <preset> or customize specific keys.
Presets
full: Enables all features (statusline, auto-archive, warnings).essential: Enables statusline and auto-archive only.minimal: Commands only; no automation.
Key Configuration Keys
| Setting | Default | Description |
|---|
autosave.contextStep.step | 5 | % context increase to trigger auto-save |
autosave.onPreCompact | true | Archive session before /compact or /clear |
autosave.onSessionEnd | true | Archive session on exit (Ctrl+C x2) |
restoration.tokenBudget | 2000 | Max tokens for key decision restoration |
restoration.turnCount | 3 | Number of raw conversation turns to restore |
awareness.enabled | false | Inject user/date/time at session start |
awareness.userName | null | User name shown in awareness context |
awareness.timezone | null | IANA timezone (null = auto-detect) |
{
"statusline": {
"enabled": true,
"showFragments": true,
"showLastArchive": true,
"showContext": true
},
"archive": {
"projectScope": true,
"minContentLength": 50
},
"autosave": {
"onSessionEnd": true,
"onPreCompact": true,
"contextStep": {
"enabled": true,
"step": 5
}
},
"restoration": {
"tokenBudget": 2000,
"messageCount": 5,
"turnCount": 3
},
"awareness": {
"enabled": false,
"userName": null,
"timezone": null
}
}