Skip to content

Insight and code workflows

Insight and code workflows are the commands and views that show what a session did and what it used: its changes, its context, usage and status, the files you name with @, its exported transcript, and going back with /rewind. They work with every agent unless a section says otherwise.

/diff opens the Git view on this session’s repository: its branches, its history, and its working changes with the commit box. See Git and Files. It needs a git repository.

Each turn’s footer in the transcript says how many files the agent and its subagents edited, with the lines added and removed, and opens to list each file with its lines added and removed (see A turn’s footer).

Type @ at the start of a word to pick a file or a folder from the session’s folder. Keep typing to narrow the list: the letters you type match in order, not only side by side, so rdme finds README.md. The best matches come first, at most 50 of them, and folders end with /. The list says “Finding files…” while it looks, and “No matching files” when nothing matches. Arrow keys move through it, Enter or Tab picks, and Escape closes it.

In a git repository, the list is git’s: the files it tracks and the new ones it would add, never those it ignores. In any other folder, it leaves out folders whose names start with a dot, and node_modules.

Picking inserts @path into your message, in quotes when the path has a space. Claude Code reads the file itself; Codex, Gemini CLI, Grok Build and OpenCode get the path and read it with their own tools.

A path that contains a double quote can’t be picked.

/export saves the transcript as a Markdown file. You choose where to save it. The Export the transcript button in the transcript panel’s header does the same.

  • At the top: the session’s title, its agent, its folder, a worktree session’s branch, or its commit when it has none, and when it was exported.
  • Then the messages, the thinking, each tool with its output (a command titled by the agent’s own words with the command before it), the pages it found and its changes, each subagent’s work (collapsed), the background tasks, the permissions and the questions with your answers, the plans with the feedback you sent, words you typed on several lines kept on them, the forms and links, and the status rows.
  • A reply shows the row it quotes above its words, as a Markdown quote, and a message from another session is headed with that session’s title.
  • Each turn’s footer says how long it took and when it ended, by its date, as the file is read later, rather than by the days since, as the transcript shows it.
  • The files you sent with a message are named under its words, after “Attached:”, but aren’t in it themselves. Events Moontors didn’t recognize are a count. Turns a rewind undid are in it, each marked “Undone by a rewind”.
  • Context: a small ring shows how full the agent’s context is, on the card and beside Send in the composer. It fills as the context does, and changes colour past 80%. Hover over it for the share used and the tokens used of the context’s size. Where the agent can compact, a click on the composer’s ring compacts the conversation now, as /compact does. /context takes you to the composer’s ring. Claude Code, Codex, Gemini CLI, Grok Build and OpenCode report it. With Claude Code and Grok Build, the Status tab also shows what fills it, part by part, where /context takes you instead (see /status).
  • Usage: the transcript panel’s header shows the tokens in and out, and the cost where it’s a charge. Hover over them for their words, which also say how many of the tokens in the agent read from its cache, and how many of those out it spent thinking, where it counts them: Claude Code counts its cache, and Codex, Gemini CLI, Grok Build and OpenCode count both. The tokens out include the thinking, and the tokens in the cache the agent read and wrote, though Gemini CLI, Grok Build and OpenCode count their thinking apart, and OpenCode its cache too. A forked session’s cost includes the history it was forked from. Only Claude Code reports a cost, with an API key or the Anthropic Console. With a Claude subscription, the cost isn’t shown, since the agent’s figure is an estimate at API prices, not what you pay, and through Bedrock, Foundry or Vertex it isn’t shown either.
  • Usage limits: your account’s usage limits, in the Status tab and in Providers, with a Claude subscription, a ChatGPT sign-in for Codex, a paid grok.com plan for Grok Build, or OpenCode Go on the OpenCode Console’s sign-in, whose workspace’s spend budgets show after them, each its dollars spent of its limit, such as $12.50 of $50.00 (see Providers). Each shows its window’s name, such as the 5h window, Weekly, Monthly, or a model’s own weekly limit, such as Fable weekly, and when it resets: within a day, how long until then, such as in 4 hr 38 min, counting down as you watch; within the week, its day and time, such as Sun 11:00 PM, on your system’s 12- or 24-hour clock; further off, its date and time. Under it, a bar shows how much is used, with the percentage at its end: blue, then amber from 75%, and red from 90%. From 75%, a ring beside the Profile icon shows it too (see The header). The figures are the newest the agent reported; while Moontors is in front, it reads them again once they’re 15 minutes old and no turn of that agent is running.

/status opens the Configuration dialog’s Status tab: the app’s version and when it was built, the agent, the model and mode, each marked “(default)” where it’s the default, the folder, a worktree session’s branch, or its commit when it has none, the conversation’s id, how full the context is and the session’s usage; then your Account as Accounts shows it, and your usage limits.

Beside them, Current session sums up what the session’s agent works with: the session’s added folders and rules, then each of the agent’s MCP servers, skills, plugins, hooks, apps, subagents, instruction files and its own lists, each with how many it holds or how many of them are on. A row opens its part, where you can change it.

While the session’s agent is running, Reported by and the agent’s name shows what the agent says of itself:

  • Claude Code: its version, and the instruction files and MCP servers in effect.
  • Codex: its version, and the instruction files and MCP servers in effect. Its Managed row says “Your organization’s requirements apply” when they do. Its Config layers list Codex’s config layer stack, lowest precedence first, each layer named as Codex’s own /debug-config names it, and shown enabled, or disabled with the reason.
  • Gemini CLI: its version, and its About: the CLI version, the model, how you signed in (Auth Method), and the Google Cloud project when one is set.

With Claude Code, What uses your limits follows your usage limits while the agent runs. It’s what Claude Code’s scan of the sessions on this computer finds over The last 7 days, or The last 24 hours:

  • the Requests and Sessions it counted;
  • the changes it Recommended, in its own words, each with its share of your usage;
  • Where it went: the subagents, skills, plugins and MCP servers, each with its share;
  • How it was used, such as with max effort or long contexts, each with its share.

Where Claude Code can make its recommendations itself, Fix does what its own /usage does: it sets the effort it recommends, then sends it a message asking it to make the other changes, showing you each one first. The message goes as written, so a command or a file it names isn’t run or read in. While a turn runs, Fix when the turn ends waits in the queue as a message would, behind anything already waiting (see What waits for the turn’s end).

With Claude Code, What fills the context comes next, while the agent runs: each part of the context as Claude Code estimates it, with its tokens and its share of the context, such as the system prompt, the tools, your instruction files and the messages, and the free space left. Tools the agent looks up only when it needs them say they’re outside the context until used. Under it, the MCP servers, Instruction files, Skills and Subagents each list what they take, largest first, with the plugin that brings each where one does. With Grok Build, it shows the parts Grok Build counts: the system prompt, the tools, the messages, its own parts such as its skills and workflows, the free space and the space it keeps free for compacting, read from where it starts to compact. Its parts don’t add up to the tokens used, as Grok Build counts them apart, so the used tokens are its own.

With any agent, Warnings lists the warnings it sent during the session, the last 20, latest last, and Commands Moontors doesn’t support yet lists the commands the agent offers that Moontors doesn’t know yet.

The agents’ own commands for these open the same tab: Claude Code’s /usage, /cost and /stats; Codex’s /status, /usage, /pwd or /cwd, /warnings and /debug-config; Gemini CLI’s /about, /stats and /usage; and Grok Build’s /session-info, /usage and /cost, whose billing stays in Grok Build’s own terminal.

/rewind goes back to before one of your prompts. Pick the prompt from the list, or use the rewind action on the prompt itself. Moontors says how many turns the agent will forget, and asks you to confirm.

  • The list says “Reading the whole transcript…” while it loads, then asks “Rewind to before which prompt?”, newest first, or says “There’s no prompt to rewind to yet.” when there’s none. A prompt you can’t rewind to is dimmed, with the whole reason under it.
  • The confirmation names the prompt and how many turns the agent forgets, with Cancel and Rewind.
  • With Claude Code, a checkbox offers to restore the files the agent changed since then, with how many and the lines added and removed. It says “Finding which files it would restore…” while it looks, “It changed no files to restore.” when there are none, and “Couldn’t tell which files it would restore.” when it can’t tell.
ConversationFiles
Claude Codeyesyes, if you choose
Codexyesno
Gemini CLInono
Grok Buildyesno
OpenCodeyesyes, if you choose
  • With Claude Code, you can also restore the files the agent changed since that prompt. Only the agent’s own edits are restored, not changes made through shell commands. Restoring also overwrites any changes you made to those files by hand since then.
  • With OpenCode, you can also restore the files changed since that prompt, from OpenCode’s own snapshots, which it keeps only in a Git repository: outside one, the card says so and only the conversation goes back. The card counts the agent’s own edits; changes made through shell commands come back too, but aren’t counted. Restoring also overwrites any changes you made to those files by hand since then.
  • With Codex and Grok Build, only the conversation goes back; the files stay as they are.
  • With OpenCode, Moontors stops its agent for the rewind, has OpenCode take back the prompt and everything after it, and starts the agent again on the conversation, so it takes a few seconds. If the agent is still ending a few seconds after it’s stopped, nothing is rewound, and Moontors says to try again in a moment.
  • The turns after the prompt stay in the transcript, dimmed as undone, and the prompt comes back to the composer, with the quote of a reply, unless you’ve started writing there.
  • Picked while a turn runs, the rewind waits for the turn’s end, its row naming the prompt, and the prompt comes back to the composer at once. It’s checked again when its turn comes.
  • Not while the agent’s background tasks are running, as it would stop them: stop them first.
  • Not to a prompt before the last /clear, nor to one an earlier rewind already went back past.
  • With Claude Code and OpenCode, you can’t rewind past a point where the conversation was compacted.
  • Claude Code keeps its file backups for 30 days by default (its own cleanupPeriodDays setting).