Haruno Knowledge base

Slash commands

Start a message with / to pick a Playbook or to give Haruno a command such as /clear or /compact.

  • Mac appAvailableOn the Mac a slash picks a Playbook. It has no /clear, /reset or /new.
  • Windows appAvailable

A message that starts with / is treated differently from an ordinary message. It can run a Playbook, start a fresh chat, or ask Haruno to do something to the conversation.

Pick a Playbook

A Playbook is a set of reusable instructions for a task you do often. Type / at the start of the message box and a list of your Playbooks opens above it. Keep typing to narrow the list, for example /re.

Typing /re narrows the list to the Playbooks that match.
The message box holding /re, with a list of matching Playbooks above it. Each row shows a small person icon, the Playbook's name and its title.The message box holding /re, with a list of matching Playbooks above it. Each row shows a small person icon, the Playbook's name and its title.
  • Use Up and Down to move through the list. Enter or Tab picks the highlighted one, and its name is filled into the message box. Press Enter again to send. Esc closes the list.
  • Each row shows the name and its title. A small icon shows where it comes from: Personal, or This project.
  • A Playbook that changed after the chat began is marked "Available in a new session". Using it asks you to Start New Session, and the current transcript is cleared.
  • The Playbooks menu in the menu bar lists the ones you used recently. Manage Playbooks… is where you create and edit them.

Commands Haruno handles itself

These start a completely fresh chat:

You typeWhat happens
/clearA new, empty chat
/resetThe same
/newThe same

Nothing is sent, no message bubble appears and the command is not added to the messages Up recalls. The draft and the attached chips are cleared too. Anything you type after the command is ignored. They work even when sending is blocked, for example by a missing sign-in. They do not work while Haruno is still working on a reply.

Type them in lower case. /Clear is not one of them. It goes to Haruno like any other command.

Other commands

Any other word after / that uses only letters, digits, hyphens and underscores is sent to Haruno as a command. Haruno decides what it does. For example, /compact shortens a long conversation to a summary. After it, only messages sent later can be edited and resent.

Which commands exist depends on the version of Haruno.

Text that merely looks like a command, such as a path like /a/b or /a.b, is sent as an ordinary message.

A command does not take your attachment chips. They stay for the next message.

Last updated · PR #2944 · View this version on GitHub

History (1 version)
  1. Internal knowledge base for staff: site, reader keys, assistant, 197 pages and the PR rule (#2944)
    What changed
    @@ -0,0 +1,47 @@
    +---
    +title: Slash commands
    +summary: Start a message with / to pick a Playbook or to give Haruno a command such as /clear or /compact.
    +feature: slash-commands
    +covers:
    +  - windows-client/docs/slash-commands.md
    +  - windows-client/haruno-webview/web/src/components/playbooks/playbookCompletion.ts
    +  - windows-client/haruno-webview/web/src/pages/ChatPage.tsx
    +  - windows-client/haruno-webview/web/src/state/chatSend.ts
    +---
    +
    +A message that starts with **/** is treated differently from an ordinary message. It can run a Playbook, start a fresh chat, or ask Haruno to do something to the conversation.
    +
    +## Pick a Playbook
    +
    +A [Playbook](/windows/chat/playbooks/) is a set of reusable instructions for a task you do often. Type **/** at the start of the message box and a list of your Playbooks opens above it. Keep typing to narrow the list, for example **/re**.
    +
    +<Shot src="/m/876bb081e8ba-windows-chat-slash-light.png" dark="/m/f7c976d688c9-windows-chat-slash-dark.png" alt="The message box holding /re, with a list of matching Playbooks above it. Each row shows a small person icon, the Playbook's name and its title." caption="Typing /re narrows the list to the Playbooks that match." />
    +
    +- Use **Up** and **Down** to move through the list. **Enter** or **Tab** picks the highlighted one, and its name is filled into the message box. Press Enter again to send. **Esc** closes the list.
    +- Each row shows the name and its title. A small icon shows where it comes from: **Personal**, or **This project**.
    +- A Playbook that changed after the chat began is marked "Available in a new session". Using it asks you to **Start New Session**, and the current transcript is cleared.
    +- The **Playbooks** menu in the menu bar lists the ones you used recently. **Manage Playbooks…** is where you create and edit them.
    +
    +## Commands Haruno handles itself
    +
    +These start a completely fresh chat:
    +
    +| You type | What happens |
    +|---|---|
    +| `/clear` | A new, empty chat |
    +| `/reset` | The same |
    +| `/new` | The same |
    +
    +Nothing is sent, no message bubble appears and the command is not added to the messages Up recalls. The draft and the attached chips are cleared too. Anything you type after the command is ignored. They work even when sending is blocked, for example by a missing sign-in. They do not work while Haruno is still working on a reply.
    +
    +Type them in lower case. `/Clear` is not one of them. It goes to Haruno like any other command.
    +
    +## Other commands
    +
    +Any other word after **/** that uses only letters, digits, hyphens and underscores is sent to Haruno as a command. Haruno decides what it does. For example, `/compact` shortens a long conversation to a summary. After it, only messages sent later can be edited and resent.
    +
    +Which commands exist depends on the version of Haruno.
    +
    +Text that merely looks like a command, such as a path like `/a/b` or `/a.b`, is sent as an ordinary message.
    +
    +A command does not take your attachment chips. They stay for the next message.