Skip to content

Commit 7f79ba3

Browse files
chore: add /tangent to /experiment (#2721)
1 parent 7ec5ded commit 7f79ba3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

crates/chat-cli/src/cli/chat/cli/experiment.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ static AVAILABLE_EXPERIMENTS: &[Experiment] = &[
3939
description: "Enables complex reasoning with step-by-step thought processes",
4040
setting_key: Setting::EnabledThinking,
4141
},
42+
Experiment {
43+
name: "Tangent Mode",
44+
description: "Enables entering into a temporary mode for sending isolated conversations (/tangent)",
45+
setting_key: Setting::EnabledTangentMode,
46+
},
4247
];
4348

4449
#[derive(Debug, PartialEq, Args)]

docs/experiments.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,28 @@ Amazon Q CLI includes experimental features that can be toggled on/off using the
3636

3737
**When enabled:** The AI will show its thinking process when working through complex problems or multi-step reasoning.
3838

39+
### Tangent Mode
40+
**Command:** `/tangent`
41+
**Description:** Enables conversation checkpointing for exploring tangential topics
42+
43+
**Features:**
44+
- Create conversation checkpoints to explore side topics
45+
- Return to the main conversation thread at any time
46+
- Preserve conversation context while branching off
47+
- Keyboard shortcut support (default: Ctrl+T)
48+
49+
**Usage:**
50+
```
51+
/tangent # Toggle tangent mode on/off
52+
```
53+
54+
**Settings:**
55+
- `chat.enableTangentMode` - Enable/disable tangent mode feature (boolean)
56+
- `chat.tangentModeKey` - Keyboard shortcut key (single character, default: 't')
57+
- `introspect.tangentMode` - Auto-enter tangent mode for introspect questions (boolean)
58+
59+
**When enabled:** Use `/tangent` or the keyboard shortcut to create a checkpoint and explore tangential topics. Use the same command to return to your main conversation.
60+
3961
## Managing Experiments
4062

4163
Use the `/experiment` command to toggle experimental features:

0 commit comments

Comments
 (0)