Skip to content

Commit 1507d9e

Browse files
committed
Rename "mode" to "prompt type" across documentation, UI, and codebase for consistency
1 parent e3a24b3 commit 1507d9e

6 files changed

Lines changed: 10 additions & 18 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,7 @@ Code Web Chat is a free and open-source AI coding toolkit. You can use CWC in **
3232

3333
## Introduction
3434

35-
With its focus on context engineering, CWC addresses pitfalls of coding agents.
36-
37-
### The problem
38-
39-
We believe the agentic context retrieval is inherently flawed. Since the model has to first read the keyword-matched file to understand its role and multi-turns are encouraged, the context window gets polluted by default. That may cause the model to reason about wrong things, possibly leading to regressions. These could be overwhelmingly hard to fix with the very approach that created them.
40-
41-
### The solution
42-
43-
CWC proposes a non-agentic approach, where all the necessary for the task files, includnig useful examples, are picked with engineer's intent. Such guided model is easy to prompt and as accurate as it can get.
35+
With its focus on context engineering, CWC proposes a non-agentic approach, where all the necessary for the task files, includnig useful examples, are picked with engineer's intent. Such guided model is easy to prompt and as accurate as it can get.
4436

4537
> [!TIP]
4638
> The prompt type _Prune context_ will help you narrow down roughly picked context.

‎docs/chatbot-initialization.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import TabItem from '@theme/TabItem'
88

99
Code with your favorite chatbot without tedious copy-pasting and apply responses with a single click.
1010

11-
Generated prompt depends on mode:
11+
Generated prompt depends on prompt type:
1212

13-
<Tabs groupId="mode">
13+
<Tabs groupId="prompt-type">
1414
<TabItem value="general" label="General">
1515

1616
```

‎packages/ui/src/components/editor/panel/Dropdown/Dropdown.stories.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const WithInfo = () => {
3636
options={options}
3737
selected_value={selected}
3838
on_change={set_selected}
39-
info="mode"
39+
info="prompt type"
4040
/>
4141
</div>
4242
)

‎packages/vscode/src/views/panel/frontend/Main/Main.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ type Props = {
4545
web_prompt_type: WebPromptType
4646
api_prompt_type: ApiPromptType
4747
on_mode_change: (mode: Mode) => void
48-
on_web_prompt_type_change: (mode: WebPromptType) => void
49-
on_api_prompt_type_change: (mode: ApiPromptType) => void
48+
on_web_prompt_type_change: (prompt_type: WebPromptType) => void
49+
on_api_prompt_type_change: (prompt_type: ApiPromptType) => void
5050
currently_open_file_path?: string
5151
current_selection?: SelectionState | null
5252
chat_input_focus_and_select_key: number

‎packages/vscode/src/views/panel/frontend/Main/MainView/components/Header/Header.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ type Props = {
1919
on_show_home: () => void
2020
web_prompt_type: WebPromptType
2121
api_prompt_type: ApiPromptType
22-
on_web_prompt_type_change: (mode: WebPromptType) => void
23-
on_api_prompt_type_change: (mode: ApiPromptType) => void
22+
on_web_prompt_type_change: (prompt_type: WebPromptType) => void
23+
on_api_prompt_type_change: (prompt_type: ApiPromptType) => void
2424
on_quick_action_click: (command: string) => void
2525
are_keyboard_shortcuts_disabled: boolean
2626
}

‎packages/vscode/src/views/panel/frontend/Main/MainView/components/Header/hooks/use-keyboard-shortcuts.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
type UseKeyboardShortcutsParams = {
1111
mode: Mode
1212
handle_heading_click: () => void
13-
on_web_prompt_type_change: (mode: WebPromptType) => void
14-
on_api_prompt_type_change: (mode: ApiPromptType) => void
13+
on_web_prompt_type_change: (prompt_type: WebPromptType) => void
14+
on_api_prompt_type_change: (prompt_type: ApiPromptType) => void
1515
on_show_home: () => void
1616
is_disabled: boolean
1717
}

0 commit comments

Comments
 (0)