parmanu 0.4.14

Settings

Where settings come from

The chat and anu -p build their settings in this order. Later entries win.

  1. parmanu's defaults (below).
  2. ~/.anu/settings.json, your global settings.
  3. <project>/.anu/settings.json, the project's settings.
  4. ANU_* variables already set in your shell.
  5. Flags such as --model and --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:

json
{
  "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:

shell
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 from

ANU_HOME moves ~/.anu (settings and chat history) somewhere else; ANU_LIBINDEX_DIR moves the library index.

Connection

VariableMeaning
ANU_MODELthe model id (setting: model)
ANU_BASE_URLthe server, default http://localhost:8080/v1 (setting: baseUrl)
ANU_API_KEYthe server's key, if it needs one
ANU_LLAMAFORGE_CONFIGpath to a LlamaForge config.json; parmanu reads the router key from it
ANU_KEEP_LOADED1 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_CTXcontext window per server slot, in tokens (measured from the server when unset)
ANU_THINKthinking budgets deep,routine, default 4096,384
ANU_EXECprefix for shell commands, e.g. docker exec -w /testbed box
ANU_SHELLthe shell commands run in; on Windows parmanu needs Git Bash on PATH, or this pointing at a bash
ANU_SCOPED_MODELSthe 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.

VariableDefaultMeaning
ANU_PROMPTfullthe system prompt: short, long, or full (the long guide with full tool descriptions)
ANU_TEMPERATURE1.0sampling temperature
ANU_DESIGN1after repeated failed checks with no progress, try a fresh design from the original code
ANU_CALLSITE1on a repeated compile error, show the code that calls the broken name
ANU_HANG1scale the check timeout and explain a hang when a check stops responding
ANU_WHY1after a failed check's output, list the failure reasons from the whole output
ANU_LOOP0looped episodes: short passes that restart from the current code and a note after failed checks (1 turns them on)
ANU_RACE0a second model slot races a whole-file rewrite (needs a server with 2 slots)

Finer controls for those switches, for tuning and evals:

VariableDefaultMeaning
ANU_DESIGN_CHECKS6failed checks in a row, with no new best score, before a fresh design
ANU_DESIGN_MAX2fresh designs per run
ANU_DESIGN_FLOOR20turns under one design before it may be switched (0: no floor)
ANU_DESIGN_NEAR0.75no switch once this share of the tests passes under the current design (above 1 turns the guard off)
ANU_LOOP_CHECKS3failed checks in one looped pass before the next pass starts
ANU_LOOP_TOKENS14000the token budget of one looped pass
ANU_RACE_LANESslots - 1how many extra slots race rewrites
ANU_RESTART01: after a long stall, restart the conversation from the best code so far
ANU_RESTART_CHECKS8failed checks with no new best score before a restart
ANU_RESTART_TOKENS16000the conversation must be at least this long before a restart
ANU_RESTART_MAX2restarts per run
ANU_ADAPTIVE_THINK01: on a model served with reasoning off, ask it to think on the turns that plan a fix

Library index

VariableMeaning
ANU_LIBINDEX0 turns the library index off
ANU_LIBINDEX_DIRwhere the index files live (default ~/.anu/libindex)
ANU_EMBED_URLan OpenAI-compatible /embeddings endpoint; with it the index also searches by meaning, not only by name
ANU_EMBED_MODELthe embedding model's id (default default)
ANU_EMBED_KEYthe embedding server's key, if it needs one

MCP servers

VariableMeaning
ANU_MCP_TIMEOUTms to connect to an MCP server and list what it has (default 30000)
ANU_MCP_TOOL_TIMEOUTms 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.

VariableMeaning
ANU_LSP0 takes the lsp tool out of the chat
ANU_LSP_SERVERSJSON from file extension to the command, e.g. {"lua":["lua-language-server"],"py":["pylsp"]}; it overrides the defaults for those extensions
ANU_LSP_DIAGNOSTICS1 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.

VariableMeaning
ANU_BROWSER_TOOL0 takes the browser tool out of the chat
ANU_BROWSERthe 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_VISIBLE1 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.

VariableMeaning
ANU_BROWSERthe browser's path, when parmanu does not find one on PATH or in the usual install folders
ANU_BROWSER_VISIBLE1 opens a window instead of running headless
ANU_BROWSER_TOOL0 takes the browser tool out of the chat

The screen

VariableMeaning
ANU_QUIET_STARTUP1 hides the receipt banner when the chat opens
NO_COLORany value turns colours off
COLORTERMtruecolor 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_THEMElight (the default), dark, or the name of a theme file (see Themes)
ANU_TUIinline 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.

json
{ "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:

ActionDefaultWhat it does
parmanu.interruptescapestop the running turn (queued messages go back in the box); close the menu
parmanu.clearctrl+cstop the turn, clear the box, or quit when pressed twice on an empty box
parmanu.exitctrl+dquit when the box is empty
parmanu.tools.expandctrl+oshow thinking and tool output
parmanu.mode.cycleshift+tabthe next permission mode: auto, default, acceptEdits, plan
parmanu.thinking.cyclealt+tthe next thinking level
parmanu.model.selectctrl+lpick a model
parmanu.model.nextctrl+pthe next scoped model
parmanu.model.prevctrl+shift+pthe previous scoped model
parmanu.followUpalt+enterwhile a turn runs: send the message after it ends
parmanu.editor.externalctrl+gedit the message in $VISUAL or $EDITOR
parmanu.copyctrl+xcopy the last answer
parmanu.image.pastealt+vattach the image on the clipboard to the next message
parmanu.scroll.pageUppageupscroll up a page
parmanu.scroll.pageDownpagedownscroll down a page
parmanu.scroll.lineUpshift+upscroll up a line
parmanu.scroll.lineDownshift+downscroll 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>:

json
{ "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.