Config file locations
| Scope | Path |
|---|---|
| Global | ~/.config/monocle/config.json (or $XDG_CONFIG_HOME/monocle/config.json) |
| Project | .monocle/config.json in the working directory |
Full example
Settings reference
Layout and display
Pane arrangement.
"auto" switches between side-by-side and stacked based on terminal width. Use "side-by-side" or "stacked" to fix the layout regardless of terminal size.Valid values: "auto", "side-by-side", "stacked"Diff display mode.
"unified" shows additions and deletions in a single column. "split" shows old and new side by side. "file" shows the raw file content without diff markers.Valid values: "unified", "split", "file"File list display mode.
"flat" lists all files in a single flat list. "tree" groups files into a collapsible directory tree.Valid values: "flat", "tree"Word-wrap long lines in diffs. When
false, long lines scroll horizontally with h/l.Minimum character width for the diff viewer in side-by-side layout. If the terminal is narrower than this value, Monocle switches to stacked layout automatically.
Diff behavior
Number of spaces to use when rendering tab characters in diffs.
Number of unchanged lines shown above and below each diff hunk. Increase this to see more surrounding context.
Glob patterns for files to exclude from the diff view. Files matching any pattern are hidden from the sidebar and not shown in diffs.Example:
Interface
Enable mouse interactions. When
true, you can click to focus panes, scroll with the wheel, click files in the sidebar to select them, and drag to make visual selections.Automatically enter focus mode when reviewing plans or artifacts. Focus mode hides the sidebar and enables line wrapping for distraction-free reading. Equivalent to pressing
F manually each time a plan opens.Review format
These settings control how your review is formatted when you submit.Include code snippets from the diff in the formatted review text delivered to the agent. Snippets provide context so the agent knows exactly which lines each comment refers to.
Truncate code snippets longer than this number of lines. Keeps review output concise for large hunks.
Include a comment count summary at the top of the formatted review (e.g., “2 issues, 1 suggestion”).
Keybindings
Map of action names to key strings. Override any default keybinding by adding an entry here. The
? help overlay in the TUI dynamically reflects your custom bindings.Example:Custom keybindings
Override any action key by mapping the action name to a new key string inkeybindings:
Available action names
up, down, top, bottom, half_up, half_down, prev_file, next_file, select, focus_swap, toggle_sidebar, scroll_down, scroll_up, scroll_left, scroll_right, scroll_home, scroll_first_char, scroll_end, wrap, toggle_diff, tree_mode, collapse_all, expand_all, prev_section, next_section, comment, file_comment, suggest, visual, reviewed, submit, pause, dismiss_outdated, base_ref, cycle_layout, refresh, help, quit, command_mode
Toggle keybindings —
T (cycle layout), t (cycle diff style), w (toggle wrap), and f (toggle flat/tree view) — change settings for the current session only. Edit the config file to persist your preferences across sessions.Modal keys (Enter, Esc, Tab inside overlays) are not configurable.The review loop
How the full review cycle works end-to-end.
Agent integration
Register Monocle with your agent and manage sessions.