parmanu 0.4.14

Chat commands: rewind, memory, context and more

Small commands for working in the chat. /help lists them all.

Rewind

/rewind (or Esc twice on an empty editor) picks an earlier message and asks what to undo:

  • Code and conversation: the files go back to how they were before that message, and the conversation goes back to just before it. The message comes back in the editor to edit and send again.
  • Conversation only: the files stay as they are.
  • Code only: the files go back; the conversation is unchanged.

File checkpoints are taken in a git repository, before each message you send. /checkpoint is the same command.

Memory

A one-line message that starts with # (a hash and a space) is not sent: its text is added as a line to a memory file, which goes into the system prompt of every later session. You pick where it goes:

MemoryFile
projectAGENTS.md (or an existing CLAUDE.md), for the team
localAGENTS.local.md, only you; added to .git/info/exclude
user~/.anu/AGENTS.md, every project

/memory add <text> does the same. /memory opens one of the files in $EDITOR. /init asks the model to look around the project and write an AGENTS.md.

Context, cost and doctor

  • /context shows what fills the context window: the system prompt, the tool definitions, the messages and the memory files, with a bar and the free space.
  • /cost shows the tokens in and out of this session, and the cost when the model has a price.
  • /doctor checks the install: the version, git, bash, the settings files, the model server (and whether it lists the model), the MCP servers and the context files.

Output styles

/output-style changes how the model answers. Built in:

  • default: parmanu's own prompt.
  • explanatory: adds short insights about the code and the choices made.
  • learning: leaves small, meaningful pieces for you to write, marked TODO(human).

Your own styles are markdown files in .anu/output-styles/, .claude/output-styles/, ~/.anu/output-styles/ or ~/.claude/output-styles/. The front matter can set name and description; the body is added to the system prompt.

markdown
---
description: one-line answers
---
Answer in one line unless asked for more.

The choice is saved as ANU_OUTPUT_STYLE in ~/.anu/settings.json. It applies from the next message of a new session (or the first message of this one).

Status line

Set ANU_STATUS_LINE to a shell command to replace the right side of the footer. The command gets the state as JSON on stdin and its first line of output is shown:

json
{"version":"0.4.8","cwd":"/repo","model":"qwen","session_id":"…","mode":"default","tokens_in":1200,"tokens_out":300,"cost_usd":0,"context_used":5000,"context_window":32768}

It runs again when the state changes, one run at a time, and is stopped after 2 seconds. A failing run keeps the last line.

Background shells

In the chat the model can start a command that keeps running, such as a dev server or a watcher:

  • bash_background {cmd} starts it and returns an id (bg1, bg2, …) at once. It asks like bash, and Bash(...) permission rules match it.
  • bash_output {id} returns the output since the last read, and whether it is still running.
  • bash_kill {id} stops it and everything it started.

Esc does not stop background shells; leaving the chat does. /bashes lists them and /bashes kill <id> stops one.

This page is built from docs/chat.md in parmanu 0.4.14.