wcgw 3.0.1rc2__tar.gz → 3.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wcgw might be problematic. Click here for more details.

Files changed (123) hide show
  1. {wcgw-3.0.1rc2 → wcgw-3.0.2}/PKG-INFO +24 -8
  2. {wcgw-3.0.1rc2 → wcgw-3.0.2}/README.md +23 -7
  3. {wcgw-3.0.1rc2 → wcgw-3.0.2}/gpt_action_json_schema.json +11 -93
  4. {wcgw-3.0.1rc2 → wcgw-3.0.2}/gpt_instructions.txt +10 -13
  5. {wcgw-3.0.1rc2 → wcgw-3.0.2}/pyproject.toml +1 -1
  6. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/bash_state/bash_state.py +84 -155
  7. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/mcp_server/server.py +9 -17
  8. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/modes.py +13 -12
  9. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/tool_prompts.py +5 -11
  10. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/tools.py +106 -48
  11. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/relay/serve.py +0 -31
  12. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/types_.py +24 -20
  13. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/anthropic_client.py +27 -11
  14. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/openai_client.py +1 -0
  15. {wcgw-3.0.1rc2 → wcgw-3.0.2}/tests/test_edit.py +1 -0
  16. {wcgw-3.0.1rc2 → wcgw-3.0.2}/tests/test_mcp_server.py +10 -27
  17. {wcgw-3.0.1rc2 → wcgw-3.0.2}/tests/test_tools.py +79 -25
  18. {wcgw-3.0.1rc2 → wcgw-3.0.2}/uv.lock +105 -103
  19. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.github/workflows/python-publish.yml +0 -0
  20. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.github/workflows/python-tests.yml +0 -0
  21. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.github/workflows/python-types.yml +0 -0
  22. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.gitignore +0 -0
  23. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.gitmodules +0 -0
  24. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.python-version +0 -0
  25. {wcgw-3.0.1rc2 → wcgw-3.0.2}/.vscode/settings.json +0 -0
  26. {wcgw-3.0.1rc2 → wcgw-3.0.2}/Dockerfile +0 -0
  27. {wcgw-3.0.1rc2 → wcgw-3.0.2}/LICENSE +0 -0
  28. {wcgw-3.0.1rc2 → wcgw-3.0.2}/openai.md +0 -0
  29. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.git +0 -0
  30. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  31. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  32. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/workflows/main-checks.yml +0 -0
  33. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/workflows/publish-pypi.yml +0 -0
  34. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/workflows/pull-request-checks.yml +0 -0
  35. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.github/workflows/shared.yml +0 -0
  36. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.gitignore +0 -0
  37. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/.python-version +0 -0
  38. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/CODE_OF_CONDUCT.md +0 -0
  39. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/CONTRIBUTING.md +0 -0
  40. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/LICENSE +0 -0
  41. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/README.md +0 -0
  42. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/RELEASE.md +0 -0
  43. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/SECURITY.md +0 -0
  44. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/README.md +0 -0
  45. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/.python-version +0 -0
  46. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/README.md +0 -0
  47. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__init__.py +0 -0
  48. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/__main__.py +0 -0
  49. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/mcp_simple_prompt/server.py +0 -0
  50. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-prompt/pyproject.toml +0 -0
  51. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/.python-version +0 -0
  52. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/README.md +0 -0
  53. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__init__.py +0 -0
  54. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/__main__.py +0 -0
  55. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/mcp_simple_resource/server.py +0 -0
  56. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-resource/pyproject.toml +0 -0
  57. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/.python-version +0 -0
  58. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/README.md +0 -0
  59. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__init__.py +0 -0
  60. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/__main__.py +0 -0
  61. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/mcp_simple_tool/server.py +0 -0
  62. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/examples/servers/simple-tool/pyproject.toml +0 -0
  63. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/pyproject.toml +0 -0
  64. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/__init__.py +0 -0
  65. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__init__.py +0 -0
  66. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/client/__main__.py +0 -0
  67. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/client/session.py +0 -0
  68. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/client/sse.py +0 -0
  69. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/client/stdio.py +0 -0
  70. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/py.typed +0 -0
  71. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__init__.py +0 -0
  72. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/__main__.py +0 -0
  73. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/models.py +0 -0
  74. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/session.py +0 -0
  75. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/sse.py +0 -0
  76. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/stdio.py +0 -0
  77. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/server/websocket.py +0 -0
  78. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/__init__.py +0 -0
  79. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/context.py +0 -0
  80. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/exceptions.py +0 -0
  81. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/memory.py +0 -0
  82. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/progress.py +0 -0
  83. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/session.py +0 -0
  84. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/shared/version.py +0 -0
  85. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/src/mcp_wcgw/types.py +0 -0
  86. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/__init__.py +0 -0
  87. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/client/__init__.py +0 -0
  88. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/client/test_session.py +0 -0
  89. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/client/test_stdio.py +0 -0
  90. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/conftest.py +0 -0
  91. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/server/__init__.py +0 -0
  92. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/server/test_session.py +0 -0
  93. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/server/test_stdio.py +0 -0
  94. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/shared/test_memory.py +0 -0
  95. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/tests/test_types.py +0 -0
  96. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/mcp_wcgw_fork/uv.lock +0 -0
  97. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/__init__.py +0 -0
  98. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/__init__.py +0 -0
  99. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/common.py +0 -0
  100. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/diff-instructions.txt +0 -0
  101. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/encoder/__init__.py +0 -0
  102. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/file_ops/diff_edit.py +0 -0
  103. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/file_ops/search_replace.py +0 -0
  104. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/mcp_server/Readme.md +0 -0
  105. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/mcp_server/__init__.py +0 -0
  106. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/memory.py +0 -0
  107. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/repo_ops/display_tree.py +0 -0
  108. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/repo_ops/path_prob.py +0 -0
  109. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/repo_ops/paths_model.vocab +0 -0
  110. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/repo_ops/paths_tokens.model +0 -0
  111. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/client/repo_ops/repo_context.py +0 -0
  112. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/py.typed +0 -0
  113. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/relay/client.py +0 -0
  114. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw/relay/static/privacy.txt +0 -0
  115. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/__init__.py +0 -0
  116. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/__main__.py +0 -0
  117. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/cli.py +0 -0
  118. {wcgw-3.0.1rc2 → wcgw-3.0.2}/src/wcgw_cli/openai_utils.py +0 -0
  119. {wcgw-3.0.1rc2 → wcgw-3.0.2}/static/claude-ss.jpg +0 -0
  120. {wcgw-3.0.1rc2 → wcgw-3.0.2}/static/computer-use.jpg +0 -0
  121. {wcgw-3.0.1rc2 → wcgw-3.0.2}/static/example.jpg +0 -0
  122. {wcgw-3.0.1rc2 → wcgw-3.0.2}/static/rocket-icon.png +0 -0
  123. {wcgw-3.0.1rc2 → wcgw-3.0.2}/static/ss1.png +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wcgw
3
- Version: 3.0.1rc2
3
+ Version: 3.0.2
4
4
  Summary: Shell and coding agent on claude and chatgpt
5
5
  Project-URL: Homepage, https://github.com/rusiaaman/wcgw
6
6
  Author-email: Aman Rusia <gapypi@arcfu.com>
@@ -43,6 +43,8 @@ Empowering chat applications to code, build and run on your local machine.
43
43
 
44
44
  ## Updates
45
45
 
46
+ - [16 Feb 2025] You can now attach to the working terminal that the AI uses. See the "attach-to-terminal" section below.
47
+
46
48
  - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
47
49
 
48
50
  - [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.
@@ -51,9 +53,6 @@ Empowering chat applications to code, build and run on your local machine.
51
53
 
52
54
  - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
53
55
 
54
- - [01 Dec 2024] Removed author hosted relay server for chatgpt.
55
-
56
- - [26 Nov 2024] Introduced claude desktop support through mcp
57
56
 
58
57
  ## 🚀 Highlights
59
58
 
@@ -100,7 +99,7 @@ First install `uv` using homebrew `brew install uv`
100
99
 
101
100
  (**Important:** use homebrew to install uv. Otherwise make sure `uv` is present in a global location like /usr/bin/)
102
101
 
103
- Then update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
102
+ Then create or update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json) with following json.
104
103
 
105
104
  ```json
106
105
  {
@@ -127,6 +126,8 @@ _If there's an error in setting up_
127
126
 
128
127
  - If there's an error like "uv ENOENT", make sure `uv` is installed. Then run 'which uv' in the terminal, and use its output in place of "uv" in the configuration.
129
128
  - If there's still an issue, check that `uv tool run --from wcgw@latest --python 3.12 wcgw_mcp` runs in your terminal. It should have no output and shouldn't exit.
129
+ - Try removing ~/.cache/uv folder
130
+ - Try using `uv` version `0.6.0` for which this tool was tested.
130
131
  - Debug the mcp server using `npx @modelcontextprotocol/inspector@0.1.7 uv tool run --from wcgw@latest --python 3.12 wcgw_mcp`
131
132
 
132
133
  ### Alternative configuration using smithery (npx required)
@@ -139,6 +140,9 @@ Then to configure wcgw for Claude Desktop automatically via [Smithery](https://s
139
140
  npx -y @smithery/cli install wcgw --client claude
140
141
  ```
141
142
 
143
+ _If there's an error in setting up_
144
+ - Try removing ~/.cache/uv folder
145
+
142
146
  ### Usage
143
147
 
144
148
  Wait for a few seconds. You should be able to see this icon if everything goes right.
@@ -168,6 +172,21 @@ There are three built-in modes. You may ask Claude to run in one of the modes, l
168
172
 
169
173
  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)
170
174
 
175
+ #### Attach to the working terminal to investigate
176
+ If you've `screen` command installed, wcgw runs on a screen instance automatically. If you've started wcgw mcp server, you can list the screen sessions:
177
+
178
+ `screen -ls`
179
+
180
+ And note down the wcgw screen name which will be something like `93358.wcgw.235521` where the last number is in the hour-minute-second format.
181
+
182
+ You can then attach to the session using `screen -x 93358.wcgw.235521`
183
+
184
+ You may interrupt any running command safely.
185
+
186
+ You can interact with the terminal but beware that the AI might be running in parallel and it may conflict with what you're doing. It's recommended to keep your interactions to minimum.
187
+
188
+ You shouldn't exit the session using `exit `or Ctrl-d, instead you should use `ctrl+a+d` to safely detach without destroying the screen session.
189
+
171
190
  ### [Optional] Vs code extension
172
191
 
173
192
  https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw
@@ -216,7 +235,6 @@ The server provides the following MCP tools:
216
235
  - Parameters: `any_workspace_path` (string), `initial_files_to_read` (string[]), `mode_name` ("wcgw"|"architect"|"code_writer"), `task_id_to_resume` (string)
217
236
  - `BashCommand`: Execute shell commands with timeout control
218
237
  - Parameters: `command` (string), `wait_for_seconds` (int, optional)
219
- - `BashInteraction`: Send keyboard input to running programs
220
238
  - Parameters: `send_text` (string) or `send_specials` (["Enter"|"Key-up"|...]) or `send_ascii` (int[]), `wait_for_seconds` (int, optional)
221
239
 
222
240
  **File Operations:**
@@ -234,7 +252,5 @@ The server provides the following MCP tools:
234
252
 
235
253
  - `ContextSave`: Save project context and files for Knowledge Transfer or saving task checkpoints to be resumed later
236
254
  - Parameters: `id` (string), `project_root_path` (string), `description` (string), `relevant_file_globs` (string[])
237
- - `ResetShell`: Emergency reset for shell environment
238
- - Parameters: `should_reset` (boolean)
239
255
 
240
256
  All tools support absolute paths and include built-in protections against common errors. See the [MCP specification](https://modelcontextprotocol.io/) for detailed protocol information.
@@ -15,6 +15,8 @@ Empowering chat applications to code, build and run on your local machine.
15
15
 
16
16
  ## Updates
17
17
 
18
+ - [16 Feb 2025] You can now attach to the working terminal that the AI uses. See the "attach-to-terminal" section below.
19
+
18
20
  - [15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
19
21
 
20
22
  - [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.
@@ -23,9 +25,6 @@ Empowering chat applications to code, build and run on your local machine.
23
25
 
24
26
  - [9 Dec 2024] [Vscode extension to paste context on Claude app](https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw)
25
27
 
26
- - [01 Dec 2024] Removed author hosted relay server for chatgpt.
27
-
28
- - [26 Nov 2024] Introduced claude desktop support through mcp
29
28
 
30
29
  ## 🚀 Highlights
31
30
 
@@ -72,7 +71,7 @@ First install `uv` using homebrew `brew install uv`
72
71
 
73
72
  (**Important:** use homebrew to install uv. Otherwise make sure `uv` is present in a global location like /usr/bin/)
74
73
 
75
- Then update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
74
+ Then create or update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json) with following json.
76
75
 
77
76
  ```json
78
77
  {
@@ -99,6 +98,8 @@ _If there's an error in setting up_
99
98
 
100
99
  - If there's an error like "uv ENOENT", make sure `uv` is installed. Then run 'which uv' in the terminal, and use its output in place of "uv" in the configuration.
101
100
  - If there's still an issue, check that `uv tool run --from wcgw@latest --python 3.12 wcgw_mcp` runs in your terminal. It should have no output and shouldn't exit.
101
+ - Try removing ~/.cache/uv folder
102
+ - Try using `uv` version `0.6.0` for which this tool was tested.
102
103
  - Debug the mcp server using `npx @modelcontextprotocol/inspector@0.1.7 uv tool run --from wcgw@latest --python 3.12 wcgw_mcp`
103
104
 
104
105
  ### Alternative configuration using smithery (npx required)
@@ -111,6 +112,9 @@ Then to configure wcgw for Claude Desktop automatically via [Smithery](https://s
111
112
  npx -y @smithery/cli install wcgw --client claude
112
113
  ```
113
114
 
115
+ _If there's an error in setting up_
116
+ - Try removing ~/.cache/uv folder
117
+
114
118
  ### Usage
115
119
 
116
120
  Wait for a few seconds. You should be able to see this icon if everything goes right.
@@ -140,6 +144,21 @@ There are three built-in modes. You may ask Claude to run in one of the modes, l
140
144
 
141
145
  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)
142
146
 
147
+ #### Attach to the working terminal to investigate
148
+ If you've `screen` command installed, wcgw runs on a screen instance automatically. If you've started wcgw mcp server, you can list the screen sessions:
149
+
150
+ `screen -ls`
151
+
152
+ And note down the wcgw screen name which will be something like `93358.wcgw.235521` where the last number is in the hour-minute-second format.
153
+
154
+ You can then attach to the session using `screen -x 93358.wcgw.235521`
155
+
156
+ You may interrupt any running command safely.
157
+
158
+ You can interact with the terminal but beware that the AI might be running in parallel and it may conflict with what you're doing. It's recommended to keep your interactions to minimum.
159
+
160
+ You shouldn't exit the session using `exit `or Ctrl-d, instead you should use `ctrl+a+d` to safely detach without destroying the screen session.
161
+
143
162
  ### [Optional] Vs code extension
144
163
 
145
164
  https://marketplace.visualstudio.com/items?itemName=AmanRusia.wcgw
@@ -188,7 +207,6 @@ The server provides the following MCP tools:
188
207
  - Parameters: `any_workspace_path` (string), `initial_files_to_read` (string[]), `mode_name` ("wcgw"|"architect"|"code_writer"), `task_id_to_resume` (string)
189
208
  - `BashCommand`: Execute shell commands with timeout control
190
209
  - Parameters: `command` (string), `wait_for_seconds` (int, optional)
191
- - `BashInteraction`: Send keyboard input to running programs
192
210
  - Parameters: `send_text` (string) or `send_specials` (["Enter"|"Key-up"|...]) or `send_ascii` (int[]), `wait_for_seconds` (int, optional)
193
211
 
194
212
  **File Operations:**
@@ -206,7 +224,5 @@ The server provides the following MCP tools:
206
224
 
207
225
  - `ContextSave`: Save project context and files for Knowledge Transfer or saving task checkpoints to be resumed later
208
226
  - Parameters: `id` (string), `project_root_path` (string), `description` (string), `relevant_file_globs` (string[])
209
- - `ResetShell`: Emergency reset for shell environment
210
- - Parameters: `should_reset` (boolean)
211
227
 
212
228
  All tools support absolute paths and include built-in protections against common errors. See the [MCP specification](https://modelcontextprotocol.io/) for detailed protocol information.
@@ -90,46 +90,6 @@
90
90
  }
91
91
  }
92
92
  },
93
- "/v1/reset_wcgw": {
94
- "post": {
95
- "x-openai-isConsequential": false,
96
- "summary": "Reset Wcgw",
97
- "operationId": "reset_wcgw_v1_reset_wcgw_post",
98
- "requestBody": {
99
- "content": {
100
- "application/json": {
101
- "schema": {
102
- "$ref": "#/components/schemas/ResetWcgwWithUUID"
103
- }
104
- }
105
- },
106
- "required": true
107
- },
108
- "responses": {
109
- "200": {
110
- "description": "Successful Response",
111
- "content": {
112
- "application/json": {
113
- "schema": {
114
- "type": "string",
115
- "title": "Response Reset Wcgw V1 Reset Wcgw Post"
116
- }
117
- }
118
- }
119
- },
120
- "422": {
121
- "description": "Validation Error",
122
- "content": {
123
- "application/json": {
124
- "schema": {
125
- "$ref": "#/components/schemas/HTTPValidationError"
126
- }
127
- }
128
- }
129
- }
130
- }
131
- }
132
- },
133
93
  "/v1/bash_command": {
134
94
  "post": {
135
95
  "x-openai-isConsequential": false,
@@ -473,6 +433,16 @@
473
433
  },
474
434
  "InitializeWithUUID": {
475
435
  "properties": {
436
+ "type": {
437
+ "type": "string",
438
+ "enum": [
439
+ "first_call",
440
+ "user_asked_mode_change",
441
+ "reset_shell",
442
+ "user_asked_change_workspace"
443
+ ],
444
+ "title": "Type"
445
+ },
476
446
  "any_workspace_path": {
477
447
  "type": "string",
478
448
  "title": "Any Workspace Path"
@@ -516,6 +486,7 @@
516
486
  "additionalProperties": false,
517
487
  "type": "object",
518
488
  "required": [
489
+ "type",
519
490
  "any_workspace_path",
520
491
  "initial_files_to_read",
521
492
  "task_id_to_resume",
@@ -547,59 +518,6 @@
547
518
  ],
548
519
  "title": "ReadFileWithUUID"
549
520
  },
550
- "ResetWcgwWithUUID": {
551
- "properties": {
552
- "should_reset": {
553
- "type": "boolean",
554
- "const": true,
555
- "title": "Should Reset"
556
- },
557
- "change_mode": {
558
- "anyOf": [
559
- {
560
- "type": "string",
561
- "enum": [
562
- "wcgw",
563
- "architect",
564
- "code_writer"
565
- ]
566
- },
567
- {
568
- "type": "null"
569
- }
570
- ],
571
- "title": "Change Mode"
572
- },
573
- "code_writer_config": {
574
- "anyOf": [
575
- {
576
- "$ref": "#/components/schemas/CodeWriterMode"
577
- },
578
- {
579
- "type": "null"
580
- }
581
- ]
582
- },
583
- "starting_directory": {
584
- "type": "string",
585
- "title": "Starting Directory"
586
- },
587
- "user_id": {
588
- "type": "string",
589
- "format": "uuid",
590
- "title": "User Id"
591
- }
592
- },
593
- "additionalProperties": false,
594
- "type": "object",
595
- "required": [
596
- "should_reset",
597
- "change_mode",
598
- "starting_directory",
599
- "user_id"
600
- ],
601
- "title": "ResetWcgwWithUUID"
602
- },
603
521
  "SendAscii": {
604
522
  "properties": {
605
523
  "send_ascii": {
@@ -9,16 +9,16 @@ Instructions:
9
9
  - Do not install new tools/packages before ensuring no such tools/package or an alternative already exists.
10
10
 
11
11
  Instructions for `Initialize`:
12
- - Always call this at the start of the conversation.- This will reset the shell.
13
- - Use `any_workspace_path` to initialize the shell in the appropriate project directory.
14
- - If the user has mentioned a workspace or project root, use it to set `any_workspace_path`.
15
- - If the user has mentioned a folder or file with unclear project root, use the file or folder as `any_workspace_path`.
16
- - If user has mentioned any files use `initial_files_to_read` to read, use absolute paths only.
17
- - If `any_workspace_path` is provided, a tree structure of the workspace will be shown.
18
- - Leave `any_workspace_path` as empty if no file or folder is mentioned.
19
- - By default use mode `wcgw`
20
- - In code-writer mode, set the commands and globs which user asked to set, otherwise use 'all'.
21
- - Call `ResetWcgw` if you want to change the mode later.
12
+ - Always call this at the start of the conversation before using any of the shell tools from wcgw.
13
+ - Use `any_workspace_path` to initialize the shell in the appropriate project directory.
14
+ - If the user has mentioned a workspace or project root or any other file or folder use it to set `any_workspace_path`.
15
+ - If user has mentioned any files use `initial_files_to_read` to read, use absolute paths only.
16
+ - By default use mode "wcgw"
17
+ - In "code-writer" mode, set the commands and globs which user asked to set, otherwise use 'all'.
18
+ - Use type="first_call" if it's the first call to this tool.
19
+ - Use type="user_asked_mode_change" if in a conversation user has asked to change mode.
20
+ - Use type="reset_shell" if in a conversation shell is not working after multiple tries.
21
+ - Use type="user_asked_change_workspace" if in a conversation user asked to change workspace
22
22
 
23
23
  Instructions for `BashCommand`:
24
24
  - Execute a bash command. This is stateful (beware with subsequent calls).
@@ -40,9 +40,6 @@ Instructions for `Write if Empty`
40
40
  - Provide absolute file path only.
41
41
  - For editing existing files, use FileEdit.
42
42
 
43
- Instructions for `ResetWcgw`
44
- - Resets the shell. Use either when changing mode, or when all interrupts and prompt reset attempts have failed repeatedly.
45
-
46
43
  Instructions for `ContextSave`
47
44
  - Saves provided description and file contents of all the relevant file paths or globs in a single text file.
48
45
  - Provide random unqiue id or whatever user provided.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  authors = [{ name = "Aman Rusia", email = "gapypi@arcfu.com" }]
3
3
  name = "wcgw"
4
- version = "3.0.1rc2"
4
+ version = "3.0.2"
5
5
  description = "Shell and coding agent on claude and chatgpt"
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.11"