Skip to content

Commit 468db62

Browse files
Merge pull request #82 from instil/feat/add-new-slash-commands-issue-67
feat: add /ask command to Session Management lesson
2 parents c2218bb + cfcf339 commit 468db62

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

tutorial/lessons/18-session-management.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ This shows request counts, token usage, and other session metrics.
4747

4848
---
4949

50+
### Quick ephemeral questions
51+
52+
**`/ask`** — Ask a one-off question without affecting your conversation history:
53+
54+
```
55+
/ask What's the difference between Promise.all and Promise.allSettled?
56+
```
57+
58+
This is useful when you need a quick lookup mid-task — checking syntax, verifying a concept, or confirming a command — without cluttering your main conversation context. The response appears immediately, but neither your question nor the answer enters the session history. Your next message continues from where you were before `/ask`.
59+
60+
Think of it as a side channel for throwaway questions that would otherwise pollute your working context.
61+
62+
---
63+
5064
### Running shell commands with `!`
5165

5266
You can run a shell command directly from within your Copilot session using the `!` prefix:
@@ -108,8 +122,9 @@ Sometimes it's better to start over than to correct course:
108122
1. `--continue` resumes the most recent session; `/resume` lets you pick from all past sessions
109123
2. Session IDs let you target a specific session — useful when you have several active workstreams
110124
3. `/usage` gives you raw session stats — a quick health check before diving in
111-
4. `/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config
112-
5. This is about building habits: use `/clear` between tasks, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off
125+
4. `/ask` is perfect for quick throwaway questions — checking syntax or concepts without polluting your working context
126+
5. `/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config
127+
6. This is about building habits: use `/clear` between tasks, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off
113128

114129
---
115130

0 commit comments

Comments
 (0)