Skip to content

Commit 5e684a7

Browse files
authored
Merge pull request #9 from rusiaaman/feat/runningSinceInfo
Feat/running since info and bug fixes
2 parents 93671bb + 1722ad8 commit 5e684a7

File tree

7 files changed

+168
-101
lines changed

7 files changed

+168
-101
lines changed

README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
-**REPL support**: [beta] Supports python/node and other REPL execution.
2424

2525
## Top use cases examples
26+
2627
- Solve problem X using python, create and run test cases and fix any issues. Do it in a temporary directory
2728
- Find instances of code with X behavior in my repository
2829
- Git clone https://github.com/my/repo in my home directory, then understand the project, set up the environment and build
@@ -63,6 +64,13 @@ Then update `claude_desktop_config.json` (~/Library/Application Support/Claude/c
6364

6465
Then restart claude app.
6566

67+
_If there's an error in setting up_
68+
69+
- Make sure `uv` in the system PATH by running `uv --version` and also ensure `uv tool run wcgw --version` works globally.
70+
Otherwise, re-install uv and follow instructions to add it into your .zshrc or .bashrc
71+
- 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.
72+
- Debug the mcp server using `npx @modelcontextprotocol/[email protected] uv tool run --from wcgw@latest --python 3.12 wcgw_mcp`
73+
6674
### [Optional] Computer use support using desktop on docker
6775

6876
Computer use is disabled by default. Add `--computer-use` to enable it. This will add necessary tools to Claude including ScreenShot, Mouse and Keyboard control.
@@ -99,6 +107,12 @@ Then ask claude desktop app to control the docker os. It'll connect to the docke
99107

100108
Connect to `http://localhost:6080/vnc.html` for desktop view (VNC) of the system running in the docker.
101109

110+
The following requirements should be installed and working in the linux docker image:
111+
112+
1. Needs `xdotool` to execute commands on the desktop.
113+
2. Needs `scrot` to take screenshots.
114+
3. Needs `convert` from imagemagick to convert images.
115+
102116
## Usage
103117

104118
Wait for a few seconds. You should be able to see this icon if everything goes right.
@@ -112,7 +126,6 @@ Then ask claude to execute shell commands, read files, edit files, run your code
112126

113127
If you've run the docker for LLM to access, you can ask it to control the "docker os". If you don't provide the docker container id to it, it'll try to search for available docker using `docker ps` command.
114128

115-
116129
## Chatgpt Setup
117130

118131
Read here: https://github.com/rusiaaman/wcgw/blob/main/openai.md
@@ -127,7 +140,6 @@ Read here: https://github.com/rusiaaman/wcgw/blob/main/openai.md
127140

128141
![example](https://github.com/rusiaaman/wcgw/blob/main/static/example.jpg?raw=true)
129142

130-
131143
## [Optional] Local shell access with openai API key or anthropic API key
132144

133145
### Openai

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
33
name = "wcgw"
4-
version = "2.0.4"
4+
version = "2.1.0"
55
description = "Shell and coding agent on claude and chatgpt"
66
readme = "README.md"
77
requires-python = ">=3.11, <3.13"
@@ -26,6 +26,7 @@ dependencies = [
2626
"nltk>=3.9.1",
2727
"anthropic>=0.39.0",
2828
"mcp",
29+
"humanize>=4.11.0",
2930
]
3031

3132
[project.urls]

src/wcgw/client/anthropic_client.py

-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
from .tools import (
4545
DoneFlag,
4646
get_tool_output,
47-
SHELL,
48-
start_shell,
4947
which_tool_name,
5048
)
5149
import tiktoken

src/wcgw/client/computer_use.py

-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ class ComputerTool:
133133
"""
134134

135135
name: Literal["computer"] = "computer"
136-
api_type: Literal["computer_20241022"] = "computer_20241022"
137136
width: Optional[int]
138137
height: Optional[int]
139138
display_num: Optional[int]

src/wcgw/client/openai_client.py

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
from .tools import (
3939
DoneFlag,
4040
get_tool_output,
41-
SHELL,
42-
start_shell,
4341
which_tool,
4442
)
4543
import tiktoken

0 commit comments

Comments
 (0)