Settings
Where settings come from
The chat and anu -p build their settings in this order. Later entries win.
- parmanu's defaults (below).
~/.anu/settings.json, your global settings.<project>/.anu/settings.json, the project's settings.ANU_*variables already set in your shell.- Flags such as
--modeland--base-url.
anu run and anu resume don't read settings files: they use only the environment and flags, so scripted runs behave the same on every machine.
A settings file looks like this:
{
"model": "qwen3.5-9b-q8-0",
"baseUrl": "http://localhost:8080/v1",
"env": { "ANU_THINK": "4096,1024" }
}Change it with anu config set (add --project to write the project file), or with /settings set in a chat:
anu config set model qwen3.5-9b-q8-0
anu config set --project env.ANU_LIBINDEX 0
anu config # the settings in effect, and the files they came fromANU_HOME moves ~/.anu (settings and chat history) somewhere else; ANU_LIBINDEX_DIR moves the library index.
Connection
| Variable | Meaning |
|---|---|
ANU_MODEL | the model id (setting: model) |
ANU_BASE_URL | the server, default http://localhost:8080/v1 (setting: baseUrl) |
ANU_API_KEY | the server's key, if it needs one |
ANU_LLAMAFORGE_CONFIG | path to a LlamaForge config.json; parmanu reads the router key from it |
ANU_KEEP_LOADED | 1 keeps the old local model loaded when you switch models; by default parmanu unloads the one it was using first, so a router in multi-model mode does not hold both |
ANU_CTX | context window per server slot, in tokens (measured from the server when unset) |
ANU_THINK | thinking budgets deep,routine, default 4096,384 |
ANU_EXEC | prefix for shell commands, e.g. docker exec -w /testbed box |
ANU_SHELL | the shell commands run in; on Windows parmanu needs Git Bash on PATH, or this pointing at a bash |
ANU_SCOPED_MODELS | the models Ctrl+P cycles, comma-separated (/scoped-models in the chat sets it) |
The agent's switches
The chat and anu -p start with these settings: the ones from the run that solved 45 of 45 dev tasks.
| Variable | Default | Meaning |
|---|---|---|
ANU_PROMPT | full | the system prompt: short, long, or full (the long guide with full tool descriptions) |
ANU_TEMPERATURE | 1.0 | sampling temperature |
ANU_DESIGN | 1 | after repeated failed checks with no progress, try a fresh design from the original code |
ANU_CALLSITE | 1 | on a repeated compile error, show the code that calls the broken name |
ANU_HANG | 1 | scale the check timeout and explain a hang when a check stops responding |
ANU_WHY | 1 | after a failed check's output, list the failure reasons from the whole output |
ANU_LOOP | 0 | looped episodes: short passes that restart from the current code and a note after failed checks (1 turns them on) |
ANU_RACE | 0 | a second model slot races a whole-file rewrite (needs a server with 2 slots) |
Finer controls for those switches, for tuning and evals:
| Variable | Default | Meaning |
|---|---|---|
ANU_DESIGN_CHECKS | 6 | failed checks in a row, with no new best score, before a fresh design |
ANU_DESIGN_MAX | 2 | fresh designs per run |
ANU_DESIGN_FLOOR | 20 | turns under one design before it may be switched (0: no floor) |
ANU_DESIGN_NEAR | 0.75 | no switch once this share of the tests passes under the current design (above 1 turns the guard off) |
ANU_LOOP_CHECKS | 3 | failed checks in one looped pass before the next pass starts |
ANU_LOOP_TOKENS | 14000 | the token budget of one looped pass |
ANU_RACE_LANES | slots - 1 | how many extra slots race rewrites |
ANU_RESTART | 0 | 1: after a long stall, restart the conversation from the best code so far |
ANU_RESTART_CHECKS | 8 | failed checks with no new best score before a restart |
ANU_RESTART_TOKENS | 16000 | the conversation must be at least this long before a restart |
ANU_RESTART_MAX | 2 | restarts per run |
ANU_ADAPTIVE_THINK | 0 | 1: on a model served with reasoning off, ask it to think on the turns that plan a fix |
Library index
| Variable | Meaning |
|---|---|
ANU_LIBINDEX | 0 turns the library index off |
ANU_LIBINDEX_DIR | where the index files live (default ~/.anu/libindex) |
ANU_EMBED_URL | an OpenAI-compatible /embeddings endpoint; with it the index also searches by meaning, not only by name |
ANU_EMBED_MODEL | the embedding model's id (default default) |
ANU_EMBED_KEY | the embedding server's key, if it needs one |
MCP servers
| Variable | Meaning |
|---|---|
ANU_MCP_TIMEOUT | ms to connect to an MCP server and list what it has (default 30000) |
ANU_MCP_TOOL_TIMEOUT | ms one MCP tool call may take (default 600000) |
See mcp for the config files.
Language servers
The chat has an lsp tool: go to definition, find references, hover, the outline or workspace symbols, and the current errors in a file. Each server starts the first time a file of its language is asked about and stops when the chat closes. parmanu finds typescript-language-server, pyright-langserver or pylsp, rust-analyzer and gopls on PATH.
| Variable | Meaning |
|---|---|
ANU_LSP | 0 takes the lsp tool out of the chat |
ANU_LSP_SERVERS | JSON from file extension to the command, e.g. {"lua":["lua-language-server"],"py":["pylsp"]}; it overrides the defaults for those extensions |
ANU_LSP_DIAGNOSTICS | 1 adds the errors the language server reports after each edit or write to the tool's result |
Set them like any variable: anu config set env.ANU_LSP_DIAGNOSTICS 1.
The browser
The chat has a browser tool that drives a real Chrome, Edge or Chromium: open a page, read its text and elements, click, type, press keys, scroll, take a screenshot (saved under .anu/shots/), go back. The browser starts the first time the tool is used, headless, with its own profile in ~/.anu/browser, and closes when the chat ends. Opening a page asks first in the default permission mode; Browser(domain:example.com) allows a site.
| Variable | Meaning |
|---|---|
ANU_BROWSER_TOOL | 0 takes the browser tool out of the chat |
ANU_BROWSER | the browser to run, e.g. C:\Program Files\Google\Chrome\Application\chrome.exe; by default parmanu looks on PATH and in the standard install folders, Chrome first, then Edge, then Chromium |
ANU_BROWSER_VISIBLE | 1 shows the browser window instead of running it headless |
Browser
The chat has a browser tool: open a page, read its text and numbered links, buttons and fields, click, type, press keys, scroll, take a screenshot, go back. It drives Chrome, Edge or Chromium over the DevTools protocol, started on the first use with its own profile (<ANU_HOME>/browser, so your own browser's logins stay out of reach) and closed when the chat closes. It asks before opening a page; Browser(domain:example.com) rules allow or deny a site like WebFetch ones do.
| Variable | Meaning |
|---|---|
ANU_BROWSER | the browser's path, when parmanu does not find one on PATH or in the usual install folders |
ANU_BROWSER_VISIBLE | 1 opens a window instead of running headless |
ANU_BROWSER_TOOL | 0 takes the browser tool out of the chat |
The screen
| Variable | Meaning |
|---|---|
ANU_QUIET_STARTUP | 1 hides the receipt banner when the chat opens |
NO_COLOR | any value turns colours off |
COLORTERM | truecolor or 24bit draws the parmanu colours exactly; otherwise parmanu uses the nearest of 256 colours (Windows Terminal and VS Code are detected on their own) |
ANU_THEME | light (the default), dark, or the name of a theme file (see Themes) |
ANU_TUI | inline keeps the chat on the terminal's main screen: lines that scroll off are written once and stay in the terminal's own scrollback (scroll with the terminal, not PageUp); after a width change the screen is cleared and earlier lines stay above it |
Messages while a turn runs
Type while the agent works and press Enter to steer it: the message is shown above the input box and the agent reads it after its current step, before it calls the model again. Alt+Enter queues a follow-up instead: it is sent when the turn ends. Steering the agent never read and the follow-ups go together as the next message. Esc stops the turn and puts every queued message back in the input box.
!command runs a command in the project, shows its output, and sends the output with your next message. !!command only shows it.
Ctrl+G opens the message in $VISUAL or $EDITOR (Notepad on Windows, vi elsewhere when neither is set); what you save comes back into the box. Ctrl+X copies the last answer through the terminal (OSC 52); a terminal that does not allow clipboard writes ignores it.
Images
A model takes pictures only when its models.json entry says so: "input": ["text", "image"]. For such a model, Alt+V attaches the image on the clipboard (it shows above the box as [image: clipboard-1.png, 12 KB]; Ctrl+C clears it with the box), and @path.png in a message (also .jpg, .jpeg, .gif, .webp) sends that file as a picture while the text keeps the path. Images over 10 MB are refused. Images go with a new message, not with a message that steers a running turn. When the agent starts a fresh pass (looped episodes, a restart) it sends the task again without the pictures.
Reading the clipboard uses PowerShell on Windows, osascript on macOS, and wl-paste or xclip on Linux.
Keys
~/.anu/keybindings.json moves the chat's keys. Each entry names an action and a key or a list of keys; [] unbinds the action. An action in the file loses its default keys, and its keys win over any default that used them.
{ "parmanu.model.select": "ctrl+k", "parmanu.copy": ["ctrl+y"], "parmanu.exit": [] }Keys are written like ctrl+shift+p, alt+enter, escape, pageup or f5. The actions and their default keys:
| Action | Default | What it does |
|---|---|---|
parmanu.interrupt | escape | stop the running turn (queued messages go back in the box); close the menu |
parmanu.clear | ctrl+c | stop the turn, clear the box, or quit when pressed twice on an empty box |
parmanu.exit | ctrl+d | quit when the box is empty |
parmanu.tools.expand | ctrl+o | show thinking and tool output |
parmanu.mode.cycle | shift+tab | the next permission mode: auto, default, acceptEdits, plan |
parmanu.thinking.cycle | alt+t | the next thinking level |
parmanu.model.select | ctrl+l | pick a model |
parmanu.model.next | ctrl+p | the next scoped model |
parmanu.model.prev | ctrl+shift+p | the previous scoped model |
parmanu.followUp | alt+enter | while a turn runs: send the message after it ends |
parmanu.editor.external | ctrl+g | edit the message in $VISUAL or $EDITOR |
parmanu.copy | ctrl+x | copy the last answer |
parmanu.image.paste | alt+v | attach the image on the clipboard to the next message |
parmanu.scroll.pageUp | pageup | scroll up a page |
parmanu.scroll.pageDown | pagedown | scroll down a page |
parmanu.scroll.lineUp | shift+up | scroll up a line |
parmanu.scroll.lineDown | shift+down | scroll down a line |
The input box's editing keys (arrows, Home, End, Backspace, Enter, Tab) are fixed. /reload reads the file again.
Themes
ANU_THEME=dark (or /settings set env.ANU_THEME dark) uses the dark palette. For your own colours, write ~/.anu/themes/<name>.json and set ANU_THEME=<name>:
{ "base": "dark", "colors": { "cite": "#4493f8", "pass": "#3fb950" } }Colours the file does not set come from its base (light when not given). The colours are ink, ink2, ink3, paper, slip, rule, cite, highlight, highlightTint, void and pass. A colour that is not #rrggbb is skipped with a warning; a theme that cannot be read falls back to light. /reload reads the theme again.
This page is built from docs/settings.md in parmanu 0.4.14.