diff --git a/tutorial/lessons/18-session-management.md b/tutorial/lessons/18-session-management.md index 2fbe640..2ebcc4a 100644 --- a/tutorial/lessons/18-session-management.md +++ b/tutorial/lessons/18-session-management.md @@ -47,6 +47,20 @@ This shows request counts, token usage, and other session metrics. --- +### Quick ephemeral questions + +**`/ask`** — Ask a one-off question without affecting your conversation history: + +``` +/ask What's the difference between Promise.all and Promise.allSettled? +``` + +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`. + +Think of it as a side channel for throwaway questions that would otherwise pollute your working context. + +--- + ### Running shell commands with `!` 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: 1. `--continue` resumes the most recent session; `/resume` lets you pick from all past sessions 2. Session IDs let you target a specific session — useful when you have several active workstreams 3. `/usage` gives you raw session stats — a quick health check before diving in -4. `/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config -5. This is about building habits: use `/clear` between tasks, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off +4. `/ask` is perfect for quick throwaway questions — checking syntax or concepts without polluting your working context +5. `/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config +6. This is about building habits: use `/clear` between tasks, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off ---