wcgw 2.0.3__tar.gz → 2.0.4__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 (39) hide show
  1. {wcgw-2.0.3 → wcgw-2.0.4}/PKG-INFO +22 -5
  2. {wcgw-2.0.3 → wcgw-2.0.4}/README.md +20 -3
  3. {wcgw-2.0.3 → wcgw-2.0.4}/openai.md +2 -2
  4. {wcgw-2.0.3 → wcgw-2.0.4}/pyproject.toml +2 -2
  5. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/tools.py +21 -7
  6. {wcgw-2.0.3 → wcgw-2.0.4}/uv.lock +1 -1
  7. {wcgw-2.0.3 → wcgw-2.0.4}/.github/workflows/python-publish.yml +0 -0
  8. {wcgw-2.0.3 → wcgw-2.0.4}/.github/workflows/python-tests.yml +0 -0
  9. {wcgw-2.0.3 → wcgw-2.0.4}/.github/workflows/python-types.yml +0 -0
  10. {wcgw-2.0.3 → wcgw-2.0.4}/.gitignore +0 -0
  11. {wcgw-2.0.3 → wcgw-2.0.4}/.python-version +0 -0
  12. {wcgw-2.0.3 → wcgw-2.0.4}/.vscode/settings.json +0 -0
  13. {wcgw-2.0.3 → wcgw-2.0.4}/gpt_action_json_schema.json +0 -0
  14. {wcgw-2.0.3 → wcgw-2.0.4}/gpt_instructions.txt +0 -0
  15. {wcgw-2.0.3 → wcgw-2.0.4}/src/__init__.py +0 -0
  16. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/__init__.py +0 -0
  17. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/__init__.py +0 -0
  18. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/__main__.py +0 -0
  19. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/anthropic_client.py +0 -0
  20. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/cli.py +0 -0
  21. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/common.py +0 -0
  22. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/computer_use.py +0 -0
  23. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/diff-instructions.txt +0 -0
  24. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/mcp_server/Readme.md +0 -0
  25. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/mcp_server/__init__.py +0 -0
  26. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/mcp_server/server.py +0 -0
  27. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/openai_client.py +0 -0
  28. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/openai_utils.py +0 -0
  29. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/client/sys_utils.py +0 -0
  30. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/relay/serve.py +0 -0
  31. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/relay/static/privacy.txt +0 -0
  32. {wcgw-2.0.3 → wcgw-2.0.4}/src/wcgw/types_.py +0 -0
  33. {wcgw-2.0.3 → wcgw-2.0.4}/static/claude-ss.jpg +0 -0
  34. {wcgw-2.0.3 → wcgw-2.0.4}/static/computer-use.jpg +0 -0
  35. {wcgw-2.0.3 → wcgw-2.0.4}/static/example.jpg +0 -0
  36. {wcgw-2.0.3 → wcgw-2.0.4}/static/rocket-icon.png +0 -0
  37. {wcgw-2.0.3 → wcgw-2.0.4}/static/ss1.png +0 -0
  38. {wcgw-2.0.3 → wcgw-2.0.4}/tests/test_basic.py +0 -0
  39. {wcgw-2.0.3 → wcgw-2.0.4}/tests/test_tools.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wcgw
3
- Version: 2.0.3
4
- Summary: What could go wrong giving full shell access to chatgpt?
3
+ Version: 2.0.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>
7
7
  Requires-Python: <3.13,>=3.11
@@ -29,8 +29,8 @@ Description-Content-Type: text/markdown
29
29
 
30
30
  # Shell and Coding agent for Claude and Chatgpt
31
31
 
32
- - Claude - An MCP server on claude desktop for autonomous shell, coding and desktop control agent.
33
- - Chatgpt - Allows custom gpt to talk to your shell via a relay server.
32
+ - Claude - An MCP server on claude desktop for autonomous shell, coding and desktop control agent. (mac only)
33
+ - Chatgpt - Allows custom gpt to talk to your shell via a relay server. (linux or mac)
34
34
 
35
35
  [![Tests](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml)
36
36
  [![Mypy strict](https://github.com/rusiaaman/wcgw/actions/workflows/python-types.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-types.yml)
@@ -47,12 +47,29 @@ Description-Content-Type: text/markdown
47
47
  - ⚡ **Full Shell Access**: No restrictions, complete control.
48
48
  - ⚡ **Desktop control on Claude**: Screen capture, mouse control, keyboard control on claude desktop (on mac with docker linux)
49
49
  - ⚡ **Create, Execute, Iterate**: Ask claude to keep running compiler checks till all errors are fixed, or ask it to keep checking for the status of a long running command till it's done.
50
+ - ⚡ **Large file edit**: Supports large file incremental edits to avoid token limit issues. Faster than full file write.
50
51
  - ⚡ **Interactive Command Handling**: Supports interactive commands using arrow keys, interrupt, and ansi escape sequences.
51
52
  - ⚡ **REPL support**: [beta] Supports python/node and other REPL execution.
52
53
 
54
+ ## Top use cases examples
55
+ - Solve problem X using python, create and run test cases and fix any issues. Do it in a temporary directory
56
+ - Find instances of code with X behavior in my repository
57
+ - Git clone https://github.com/my/repo in my home directory, then understand the project, set up the environment and build
58
+ - Create a golang htmx tailwind webapp, then open browser to see if it works (use with puppeteer mcp)
59
+ - Edit or update a large file
60
+ - In a separate branch create feature Y, then use github cli to create a PR to original branch
61
+ - Command X is failing in Y directory, please run and fix issues
62
+ - Using X virtual environment run Y command
63
+ - Using cli tools, create build and test an android app. Finally run it using emulator for me to use
64
+ - Fix all mypy issues in my repo at X path.
65
+ - Using 'screen' run my server in background instead, then run another api server in bg, finally run the frontend build. Keep checking logs for any issues in all three
66
+ - Create repo wide unittest cases. Keep iterating through files and creating cases. Also keep running the tests after each update. Do not modify original code.
67
+
53
68
  ## Claude Setup
54
69
 
55
- Update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
70
+ First install `uv` https://docs.astral.sh/uv/getting-started/installation/#installation-methods
71
+
72
+ Then update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
56
73
 
57
74
  ```json
58
75
  {
@@ -1,7 +1,7 @@
1
1
  # Shell and Coding agent for Claude and Chatgpt
2
2
 
3
- - Claude - An MCP server on claude desktop for autonomous shell, coding and desktop control agent.
4
- - Chatgpt - Allows custom gpt to talk to your shell via a relay server.
3
+ - Claude - An MCP server on claude desktop for autonomous shell, coding and desktop control agent. (mac only)
4
+ - Chatgpt - Allows custom gpt to talk to your shell via a relay server. (linux or mac)
5
5
 
6
6
  [![Tests](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-tests.yml)
7
7
  [![Mypy strict](https://github.com/rusiaaman/wcgw/actions/workflows/python-types.yml/badge.svg?branch=main)](https://github.com/rusiaaman/wcgw/actions/workflows/python-types.yml)
@@ -18,12 +18,29 @@
18
18
  - ⚡ **Full Shell Access**: No restrictions, complete control.
19
19
  - ⚡ **Desktop control on Claude**: Screen capture, mouse control, keyboard control on claude desktop (on mac with docker linux)
20
20
  - ⚡ **Create, Execute, Iterate**: Ask claude to keep running compiler checks till all errors are fixed, or ask it to keep checking for the status of a long running command till it's done.
21
+ - ⚡ **Large file edit**: Supports large file incremental edits to avoid token limit issues. Faster than full file write.
21
22
  - ⚡ **Interactive Command Handling**: Supports interactive commands using arrow keys, interrupt, and ansi escape sequences.
22
23
  - ⚡ **REPL support**: [beta] Supports python/node and other REPL execution.
23
24
 
25
+ ## Top use cases examples
26
+ - Solve problem X using python, create and run test cases and fix any issues. Do it in a temporary directory
27
+ - Find instances of code with X behavior in my repository
28
+ - Git clone https://github.com/my/repo in my home directory, then understand the project, set up the environment and build
29
+ - Create a golang htmx tailwind webapp, then open browser to see if it works (use with puppeteer mcp)
30
+ - Edit or update a large file
31
+ - In a separate branch create feature Y, then use github cli to create a PR to original branch
32
+ - Command X is failing in Y directory, please run and fix issues
33
+ - Using X virtual environment run Y command
34
+ - Using cli tools, create build and test an android app. Finally run it using emulator for me to use
35
+ - Fix all mypy issues in my repo at X path.
36
+ - Using 'screen' run my server in background instead, then run another api server in bg, finally run the frontend build. Keep checking logs for any issues in all three
37
+ - Create repo wide unittest cases. Keep iterating through files and creating cases. Also keep running the tests after each update. Do not modify original code.
38
+
24
39
  ## Claude Setup
25
40
 
26
- Update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
41
+ First install `uv` https://docs.astral.sh/uv/getting-started/installation/#installation-methods
42
+
43
+ Then update `claude_desktop_config.json` (~/Library/Application Support/Claude/claude_desktop_config.json)
27
44
 
28
45
  ```json
29
46
  {
@@ -4,8 +4,8 @@
4
4
 
5
5
  1. Run a relay server with a domain name and https support (or use ngrok) use the instructions in next section.
6
6
  2. Create a custom gpt that connects to the relay server, instructions in next sections.
7
- 3. Run the [cli client](https://github.com/rusiaaman/wcgw?tab=readme-ov-file#client) in any directory of choice.
8
- 4. The custom GPT can now run any command on your cli
7
+ 3. Run the client in any directory of choice. `uvx wcgw@latest`
8
+ 4. The custom GPT can now run any command on your terminal
9
9
 
10
10
  ## Creating the relay server
11
11
 
@@ -1,8 +1,8 @@
1
1
  [project]
2
2
  authors = [{ name = "Aman Rusia", email = "gapypi@arcfu.com" }]
3
3
  name = "wcgw"
4
- version = "2.0.3"
5
- description = "What could go wrong giving full shell access to chatgpt?"
4
+ version = "2.0.4"
5
+ description = "Shell and coding agent on claude and chatgpt"
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.11, <3.13"
8
8
  dependencies = [
@@ -106,13 +106,27 @@ PROMPT = PROMPT_CONST
106
106
 
107
107
 
108
108
  def start_shell() -> pexpect.spawn: # type: ignore
109
- SHELL = pexpect.spawn(
110
- "/bin/bash --noprofile --norc",
111
- env={**os.environ, **{"PS1": PROMPT}}, # type: ignore[arg-type]
112
- echo=False,
113
- encoding="utf-8",
114
- timeout=TIMEOUT,
115
- )
109
+ try:
110
+ SHELL = pexpect.spawn(
111
+ "/bin/bash",
112
+ env={**os.environ, **{"PS1": PROMPT}}, # type: ignore[arg-type]
113
+ echo=False,
114
+ encoding="utf-8",
115
+ timeout=TIMEOUT,
116
+ )
117
+ SHELL.sendline(f"export PS1={PROMPT}")
118
+ except Exception as e:
119
+ traceback.print_exc()
120
+ console.log(f"Error starting shell: {e}. Retrying without rc ...")
121
+
122
+ SHELL = pexpect.spawn(
123
+ "/bin/bash --noprofile --norc",
124
+ env={**os.environ, **{"PS1": PROMPT}}, # type: ignore[arg-type]
125
+ echo=False,
126
+ encoding="utf-8",
127
+ timeout=TIMEOUT,
128
+ )
129
+
116
130
  SHELL.expect(PROMPT, timeout=TIMEOUT)
117
131
  SHELL.sendline("stty -icanon -echo")
118
132
  SHELL.expect(PROMPT, timeout=TIMEOUT)
@@ -860,7 +860,7 @@ wheels = [
860
860
 
861
861
  [[package]]
862
862
  name = "wcgw"
863
- version = "2.0.2"
863
+ version = "2.0.4"
864
864
  source = { editable = "." }
865
865
  dependencies = [
866
866
  { name = "anthropic" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes