# Commands and long-running goals

Everyday chat commands, and handing ShiritaiBot a long-running goal with /goal.

ShiritaiBot would rather you just talk to it: asking "how's the server doing?" feels more natural than typing a command. Still, some things are quicker as commands. Here are the built-in ones. Send `/help` any time to see the commands available in the current chat.

## Common commands

| Command              | Does                                                                                                       |
| -------------------- | ---------------------------------------------------------------------------------------------------------- |
| `/help`              | Show command help                                                                                          |
| `/status`            | Show the current chat, model and status                                                                    |
| `/stop`              | Stop the current task and your own queued messages                                                         |
| `/new` (or `/clear`) | Start a new context, keeping history and long-term memory (owner only)                                     |
| `/mode`              | Show the chat mode; `/mode agent` or `/mode chat` switches (owner only)                                    |
| `/model`             | Show the current model; `/model <ID>` switches; `/model default` goes back to the route                    |
| `/models`            | List available models                                                                                      |
| `/persona`           | Show the current persona; `/persona <ID>` switches; `/persona default` goes back (switching is owner only) |
| `/personas`          | List available personas                                                                                    |
| `/lang`              | Show or switch this chat's language; see [Language](https://shiritaibot.dev/en/docs/language#lang)         |
| `/goal`              | Set a long-running goal; see [below](https://shiritaibot.dev/en/docs/commands#goal)                        |
| `/tasks`             | Show background subagent tasks (owner's private chat only)                                                 |
| `/memory`            | Show long-term memory; `/memory <keywords>` searches (owner's private chat only)                           |

## Approval and permission commands

| Command                  | Does                                                                                                                                                                                         |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/approve <approval ID>` | Allow an action once (owner's private chat only)                                                                                                                                             |
| `/deny <approval ID>`    | Deny an action (owner's private chat only)                                                                                                                                                   |
| `/permissions`           | Show the current tools' permissions and approval requirements                                                                                                                                |
| `/tools`                 | List all tool permissions; `/tools <tool> deny\|manual\|auto\|allow\|inherit` sets one tool; `/tools risk <level> <permission>` sets a risk level; `/tools preset <preset>` applies a preset |
| `/grants`                | Show standing grants; `/grants revoke <tool> [chat]` revokes one (owner's private chat only)                                                                                                 |

For what the permissions mean, see [Permissions](https://shiritaibot.dev/en/docs/auth).

## Long-running goals: /goal

In a normal conversation, each ShiritaiBot turn has a step and time limit. For big jobs that need to be done, checked and done again, give it a goal with `/goal`:

```text Chat
/goal Fix every failing unit test in the repository and confirm CI passes
```

Once a goal is set, ShiritaiBot keeps working, and at the end of each round a separate check decides whether the goal has been met:

* If it has, you get the result.
* If something's still missing, it continues with what's left.
* If it needs information or a decision from you, it pauses and asks.

A goal can be delegated to [subagents](https://shiritaibot.dev/en/docs/subagent), and their results come back into the goal to continue.

| Command               | Does                                                  |
| --------------------- | ----------------------------------------------------- |
| `/goal <description>` | Start a goal. A chat can only have one goal at a time |
| `/goal status`        | Show the goal's status and remaining budget           |
| `/goal pause`         | Pause                                                 |
| `/goal resume`        | Resume                                                |
| `/goal clear`         | Clear the goal                                        |

Goals can only be created in Agent mode. To keep them in check, every goal has four budgets: steps, time, tokens and automatic continuations. When one runs out, it stops and waits for you. To keep going, add more to whichever budget ran out:

```text Chat
/goal resume steps=50 seconds=600 tokens=50000 continuations=2
```

While it works, the task list updates live in the WebUI chat.
