# Models, Goals and Folders

> Change how Claude works on a task with /model, /advisor and /goal. Name a fallback model at launch. Reach more folders with /add-dir and /cd.

**Course:** [Claude Code Commands](https://learn.benibix.com/learn/ai-claude-code-commands)  
**Time:** 11 min

**After this lesson you can:**

- Switch model for one session only
- Set a goal Claude keeps working toward
- Choose between /add-dir and /cd

## How to change the model, set a finish line and reach more folders

/model switches the model Claude Code uses, and it saves the choice as your default for new sessions. Give a name such as opus or sonnet, or run it alone for a picker. In the picker, press s on a row to switch for this session only. The left and right arrows set the effort level for models that support it.

If the model you picked is busy or gone, --fallback-model names the next ones to try. Give a list with commas, such as sonnet,haiku, and they are tried in that order. The fallbackModel setting keeps a list for every session. The flag beats it for one session only.

/advisor turns on a second model, often a stronger one, that Claude can ask for advice. It asks at key points. That is before it picks a plan, when an error keeps coming back, and before it says the work is done. The advisor reads the whole chat and sends back advice. It is still being tested and uses more of your plan. /advisor off stops it.

/goal sets a finish line, such as all tests in test/auth pass. Claude then keeps working, turn after turn, until it is met. After each turn, a separate small model reads the chat and judges the goal. It reads only what Claude has shown, so write a goal that Claude's own output can prove.

A goal ends in four ways. It is met, the checker judges it cannot be met, an error needs you, or you run /goal clear. A session has one goal at a time. To cap it, put a limit in the goal itself, such as or stop after 20 turns.

/add-dir gives the session one more folder to read and edit, and keeps the first. Most .claude settings in the added folder do not load, so its own skills and rules stay out. --add-dir does the same at launch. /cd instead moves the whole session to a new folder and keeps the chat.

The choice is about where the work lives. A shared library next to your app wants /add-dir, because the app is still the main job. A move from the web folder to the api folder for the rest of the day wants /cd. Both offer folder names as you type, and Tab picks one.

```console
/model opus
/advisor sonnet
/goal all tests in test/auth pass and lint is clean
/add-dir ../shared-lib
/cd ../api

# at launch, in the shell
claude --fallback-model sonnet,haiku
```
Switch the model, add an advisor and set a goal. Add a folder or move to one. Name fallbacks at launch.

![A loop. Claude takes a turn, then a checker model asks: is the goal met? Yes leads to goal done, stop. Not yet leads to one more turn. The example goal reads /goal all tests in test/auth pass. A note says it also stops on an error that needs you, or on /goal clear.](https://learn.benibix.com/diagrams/cmd-goal.svg)

### Example: Lucy leaves a goal running over lunch

Lucy's branch has 9 failing tests. She types /goal all tests in test/auth pass and goes to lunch.

Claude works through 14 turns, and the checker reads the test output after each one. On turn 14 it reads 0 failures and the goal ends. Lucy comes back to a green run and a chat that shows every step.

**Words in this lesson:** [/model Command](https://learn.benibix.com/term/ai/model-command), [--fallback-model Flag](https://learn.benibix.com/term/ai/fallback-model-flag), [/advisor Command](https://learn.benibix.com/term/ai/advisor-command), [/goal Command](https://learn.benibix.com/term/ai/goal-command), [/add-dir Command](https://learn.benibix.com/term/ai/add-dir-command), [/cd Command](https://learn.benibix.com/term/ai/cd-command)

**Question:** Lucy wants a second folder in this session, and to keep working in her first one. Which command fits?

**Answer:** /add-dir ../shared-lib. /add-dir adds a folder and keeps the first. /cd would move the whole session to the new folder and leave the first one behind.

---

Source: https://learn.benibix.com/learn/ai-claude-code-commands/models-goals-and-folders
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
