You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
17
+
18
+
-[15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
18
19
19
20
-[8 Jan 2025] Context saving tool for saving relevant file paths along with a description in a single file. Can be used as a task checkpoint or for knowledge transfer.
20
21
21
22
-[29 Dec 2024] Syntax checking on file writing and edits is now stable. Made `initialize` tool call useful; sending smart repo structure to claude if any repo is referenced. Large file handling is also now improved.
22
23
23
-
-[9 Dec 2024][Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
24
+
-[9 Dec 2024][Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
24
25
25
26
-[01 Dec 2024] Removed author hosted relay server for chatgpt.
26
27
@@ -32,19 +33,19 @@ Empowering chat applications to code, build and run on your local machine.
32
33
- ⚡ **Large file edit**: Supports large file incremental edits to avoid token limit issues. Faster than full file write.
33
34
- ⚡ **Syntax checking on edits**: Reports feedback to the LLM if its edits have any syntax errors, so that it can redo it.
34
35
- ⚡ **Interactive Command Handling**: Supports interactive commands using arrow keys, interrupt, and ansi escape sequences.
35
-
- ⚡ **File protections**:
36
-
- The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
37
-
- Avoids context filling up while reading very large files. Files get chunked based on token length.
36
+
- ⚡ **File protections**:
37
+
- The AI needs to read a file at least once before it's allowed to edit or rewrite it. This avoids accidental overwrites.
38
+
- Avoids context filling up while reading very large files. Files get chunked based on token length.
38
39
- On initialisation the provided workspace's directory structure is returned after selecting important files (based on .gitignore as well as a statistical approach)
39
40
- File edit based on search-replace tries to find correct search block if it has multiple matches based on previous search blocks. Fails otherwise (for correctness).
40
41
- File edit has spacing tolerant matching, with warning on issues like indentation mismatch. If there's no match, the closest match is returned to the AI to fix its mistakes.
41
42
- Using Aider-like search and replace, which has better performance than tool call based search and replace.
42
-
- ⚡ **Shell optimizations**:
43
+
- ⚡ **Shell optimizations**:
43
44
- Only one command is allowed to be run at a time, simplifying management and avoiding rogue processes. There's only single shell instance at any point of time.
44
-
- Current working directory is always returned after any shell command to prevent AI from getting lost.
45
+
- Current working directory is always returned after any shell command to prevent AI from getting lost.
45
46
- Command polling exits after a quick timeout to avoid slow feedback. However, status checking has wait tolerance based on fresh output streaming from a command. Both of these approach combined provides a good shell interaction experience.
46
47
- ⚡ **Saving repo context in a single file**: Task checkpointing using "ContextSave" tool saves detailed context in a single file. Tasks can later be resumed in a new chat asking "Resume `task id`". The saved file can be used to do other kinds of knowledge transfer, such as taking help from another AI.
47
-
- ⚡ **Easily switch between various modes**:
48
+
- ⚡ **Easily switch between various modes**:
48
49
- Ask it to run in 'architect' mode for planning. Inspired by adier's architect mode, work with Claude to come up with a plan first. Leads to better accuracy and prevents premature file editing.
49
50
- Ask it to run in 'code-writer' mode for code editing and project building. You can provide specific paths with wild card support to prevent other files getting edited.
50
51
- By default it runs in 'wcgw' mode that has no restrictions and full authorisation.
@@ -122,25 +123,29 @@ over here
122
123
Then ask claude to execute shell commands, read files, edit files, run your code, etc.
123
124
124
125
#### Task checkpoint or knowledge transfer
126
+
125
127
- You can do a task checkpoint or a knowledge transfer by attaching "KnowledgeTransfer" prompt using "Attach from MCP" button.
126
128
- On running "KnowledgeTransfer" prompt, the "ContextSave" tool will be called saving the task description and all file content together in a single file. An id for the task will be generated.
127
129
- You can in a new chat say "Resume '<taskid>'", the AI should then call "Initialize" with the task id and load the context from there.
128
130
- Or you can directly open the file generated and share it with another AI for help.
129
131
130
132
#### Modes
133
+
131
134
There are three built-in modes. You may ask Claude to run in one of the modes, like "Use 'architect' mode"
|**Architect**| Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect'|
135
-
|**Code-writer**| For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
136
-
|**wcgw**| Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode"|
137
+
|**Architect**| Designed for you to work with Claude to investigate and understand your repo. | Read-only commands | FileEdit and Write tool | Run in mode='architect' |
138
+
|**Code-writer**| For code writing and development | Specified path globs for editing or writing, specified commands | FileEdit for paths not matching specified glob, Write for paths not matching specified glob | Run in code writer mode, only 'tests/**' allowed, only uv command allowed |
139
+
|**wcgw\*\*| Default mode with everything allowed | Everything | Nothing | No prompt, or "Run in wcgw mode" |
137
140
138
141
Note: in code-writer mode either all commands are allowed or none are allowed for now. If you give a list of allowed commands, Claude is instructed to run only those commands, but no actual check happens. (WIP)
- Select a text and press `cmd+'` and then enter instructions. This will switch the app to Claude and paste a text containing your instructions, file path, workspace dir, and the selected text.
145
150
146
151
## Chatgpt Setup
@@ -172,3 +177,36 @@ Then run
172
177
`uvx --from wcgw@latest wcgw_local --claude`
173
178
174
179
You can now directly write messages or press enter key to open vim for multiline message and text pasting.
180
+
181
+
## Tools
182
+
183
+
The server provides the following MCP tools:
184
+
185
+
**Shell Operations:**
186
+
187
+
-`Initialize`: Reset shell and set up workspace environment
-`ResetShell`: Emergency reset for shell environment
210
+
- Parameters: `should_reset` (boolean)
211
+
212
+
All tools support absolute paths and include built-in protections against common errors. See the [MCP specification](https://modelcontextprotocol.io/) for detailed protocol information.
0 commit comments