Config file locations
Monocle loads configuration from two locations in order — the project-level file overrides global settings:- Global:
~/.config/monocle/config.json(or$XDG_CONFIG_HOME/monocle/config.json) - Project:
.monocle/config.jsonin your working directory
Full example
.monocle/config.json
Options
Pane arrangement.
"auto" switches between side-by-side and stacked based on terminal width. "side-by-side" always uses the split view. "stacked" always stacks panes vertically.Diff display mode.
"unified" shows a single unified diff. "split" shows a side-by-side diff. "file" shows raw file content.File list display mode.
"flat" shows all files as a flat list. "tree" shows files in a collapsible directory tree.Word-wrap long lines in the diff viewer. Toggle for the current session with
w.Number of spaces to render per tab character in diffs.
Number of unchanged lines shown above and below each diff hunk.
Glob patterns for files to exclude from the diff view. For example:
["*.lock", "vendor/**"].Minimum character width for the diff viewer in side-by-side layout. Below this width, Monocle switches to stacked layout.
Enable mouse interactions — click to focus panes, scroll with the wheel, click files to select, drag for visual selections, and interact with modal controls.
Automatically enter focus mode (hide sidebar, enable line wrap) when reviewing plans submitted via
monocle review send-artifact.Custom key overrides. Map action names to key strings. See Custom keybindings below.
review_format
Include code snippets in the formatted review text delivered to the agent.
Truncate code snippets longer than this number of lines in the formatted review.
Include a comment count summary (e.g. “2 issues, 1 suggestion”) at the end of the formatted review.
Custom keybindings
Override any action key by mapping the action name to a new key string in thekeybindings object:
Toggle keybindings (
T, t, w, f) change settings for the current session only. Edit the config file to persist your preferences.Modal keys (Enter, Esc, Tab in overlays) are not configurable.
Available action names
All configurable action names
All configurable action names
| Action | Default key | Description |
|---|---|---|
up | k | Move up |
down | j | Move down |
top | g | Jump to top |
bottom | G | Jump to bottom |
half_up | ctrl+u | Scroll half page up |
half_down | ctrl+d | Scroll half page down |
prev_file | [ | Previous file |
next_file | ] | Next file |
prev_section | { | Previous sidebar section |
next_section | } | Next sidebar section |
select | Enter | Focus diff pane / toggle directory |
focus_swap | Tab | Switch pane focus |
toggle_sidebar | \ | Toggle sidebar visibility |
scroll_down | J | Scroll diff down |
scroll_up | K | Scroll diff up |
scroll_left | h | Scroll diff left |
scroll_right | l | Scroll diff right |
scroll_home | 0 | Scroll to column 0 |
scroll_first_char | ^ | Scroll to first non-space |
scroll_end | $ | Scroll to line end |
wrap | w | Toggle line wrapping |
toggle_diff | t | Cycle diff style |
tree_mode | f | Toggle flat/tree view |
collapse_all | z | Collapse all (tree) |
expand_all | e | Expand all (tree) |
comment | c | Add/edit comment at cursor |
file_comment | C | Add file-level comment |
suggest | s | Suggest edit at cursor |
visual | v | Visual select (multi-line) |
reviewed | r | Toggle file reviewed |
submit | S | Submit review |
pause | P | Pause the agent |
dismiss_outdated | — | Dismiss outdated comments |
base_ref | b | Change base ref |
cycle_layout | T | Cycle layout |
refresh | R | Force reload files |
help | ? | Show all keybindings |
quit | q | Quit |
command_mode | : | Enter command mode |
Environment variables
Override the Unix socket path used to connect to a running Monocle session. Useful when the agent’s working directory differs from Monocle’s. Set this in your agent’s environment or pass
--socket on the CLI.Override the base directory for the global config file. Defaults to
~/.config. The global config is read from $XDG_CONFIG_HOME/monocle/config.json.