Skip to content

Commit 3745f5e

Browse files
committed
Refactor context management to merge save and apply functionality into a unified command while updating documentation and UI elements
1 parent fd77ac6 commit 3745f5e

18 files changed

Lines changed: 851 additions & 1064 deletions

‎README.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Context-first AI coding extension for VS Code, Cursor, and others.
2323

2424
## Introduction
2525

26-
**LLMs are brilliant, yet mindless pattern matchers.** Because they lack properties similar to mental models, they can't _imagine_ how the correct output should look like before their context is filled with relevant files.
26+
**LLMs are brilliant, yet mindless pattern matchers.** Because they lack properties similar to mental models, they can't imagine how the correct output should look like before their context is filled with relevant files.
2727

2828
To mitigate this limitation, other, agentic tools ask you to prepare extensive markdown-based plans and feature descriptions, so the system based on a keyword matching (via _grep_ tool calling) can do a better job at automated context compilation. It's a time consuming, token-hungry hit-or-miss.
2929

30-
Code Web Chat proposes a mindful 🧠 approach of **model guidance through context selection.** With it come big wins—your instructions are simple, responses fast, accuracy can't get any better, and because all the recently modified files are placed at the very end of the message, **prompt cache is hit for most of its length enabling 10X cost savings.**
30+
Code Web Chat proposes a mindful 🧠 approach of **model guidance through context ownership.** With it come big wins—your instructions are simple, responses fast, accuracy can't get any better, and because all the recently modified files are placed at the very end of the message, **prompt cache is hit for most of its length enabling 10X cost savings.**
3131

3232
That’s great news for your wallet—and for the planet 🌱, too.
3333

@@ -125,8 +125,7 @@ Generate meaningful summaries of changes adhering to your style.
125125

126126
### Context
127127

128-
- `Code Web Chat: Save Context` - Save the currently checked files as a named context for easy reuse.
129-
- `Code Web Chat: Apply Context` - Apply a saved context to either replace or merge with the currently checked files.
128+
- `Code Web Chat: Apply Context` - Apply a saved context or save the current file selection.
130129
- `Code Web Chat: Add File to Context` - Search and add file (or parent folder via file action) to the context.
131130
- `Code Web Chat: Remove File from Context` - Search and remove file (or parent folder via file action) from the context.
132131
- `Code Web Chat: Copy Context` - Copy XML-formatted checked files from the Workspace view to the clipboard.

‎packages/vscode/package.json‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@
136136
"category": "Code Web Chat",
137137
"icon": "$(checklist)"
138138
},
139-
{
140-
"command": "codeWebChat.saveContext",
141-
"title": "Save Context",
142-
"category": "Code Web Chat",
143-
"icon": "$(save)"
144-
},
145139
{
146140
"command": "codeWebChat.findPathsInClipboard",
147141
"title": "%codeWebChat.findPathsInClipboard.title%",
@@ -415,16 +409,6 @@
415409
}
416410
],
417411
"view/title": [
418-
{
419-
"command": "codeWebChat.applyContext",
420-
"when": "view == codeWebChatViewContext",
421-
"group": "navigation@1"
422-
},
423-
{
424-
"command": "codeWebChat.saveContext",
425-
"when": "view == codeWebChatViewContext",
426-
"group": "navigation@2"
427-
},
428412
{
429413
"command": "codeWebChat.checkAll",
430414
"when": "view == codeWebChatViewWorkspace",
@@ -436,7 +420,7 @@
436420
"group": "navigation@2"
437421
},
438422
{
439-
"command": "codeWebChat.checkpoints",
423+
"command": "codeWebChat.applyContext",
440424
"when": "view == codeWebChatViewWorkspace",
441425
"group": "navigation@4"
442426
},

0 commit comments

Comments
 (0)