HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rusiaaman
wcgw
Python2024–2025
rusiaaman / wcgw · Archived

wcgw

Shell and coding agent on mcp clients

3Distinct people
12Mentions
1Explicit recommenders
680GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Shell and coding agent on mcp clients

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

For building mcp server? The official docs do a great job https://modelcontextprotocol.io/introduction My own mcp server could be an inspiration on Mac. It's based on pexpect…

pcwelder used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month12 dated mentions

Observed mentions: 2024-10-22 17:16:09 UTC to 2025-07-20 05:12:37 UTC.

01232024-10-01 00:00:00 UTC to 2024-11-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsOct 20242024-11-01 00:00:00 UTC to 2024-12-01 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 comments2024-12-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025-01-01 00:00:00 UTC to 2025-02-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025-02-01 00:00:00 UTC to 2025-03-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 20252025-03-01 00:00:00 UTC to 2025-04-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025-04-01 00:00:00 UTC to 2025-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-05-01 00:00:00 UTC to 2025-06-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-01 00:00:00 UTC to 2025-07-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025-07-01 00:00:00 UTC to 2025-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Oct 20242024-10-01 00:00:00 UTC2024-11-01 00:00:00 UTC110
Nov 20242024-11-01 00:00:00 UTC2024-12-01 00:00:00 UTC321
Dec 20242024-12-01 00:00:00 UTC2025-01-01 00:00:00 UTC202
Jan 20252025-01-01 00:00:00 UTC2025-02-01 00:00:00 UTC101
Feb 20252025-02-01 00:00:00 UTC2025-03-01 00:00:00 UTC101
Mar 20252025-03-01 00:00:00 UTC2025-04-01 00:00:00 UTC202
Apr 20252025-04-01 00:00:00 UTC2025-05-01 00:00:00 UTC000
May 20252025-05-01 00:00:00 UTC2025-06-01 00:00:00 UTC000
Jun 20252025-06-01 00:00:00 UTC2025-07-01 00:00:00 UTC101
Jul 20252025-07-01 00:00:00 UTC2025-08-01 00:00:00 UTC101

What Hacker News says

12 sources
I believe it's not possible to restrict an LLM from executing certain commands while also allowing it to run python/bash. Even if you allow just `find` command it can execute arbitrary script. Or even 'npm' command (which is very useful). If you restrict write calls, by using seccomp for example, you lose very useful capabilities. Is there a solution other than running on sandbox environment? If yes, please let me know I'm looking for a safe read-only mode for my FOSS project [1]. I had shied away from command blacklisting due to the exact same reason as the parent post. [1] https://github.com/rusiaaman/wcgw
In Claude has learned how to jailbreak Cursor
Awesome! I essentially started with the same premise when coding "wcgw" [1]. Give a single shell tool to chatgpt (later claude). Chronology that followed: 1. Some processes take long time: add status checking. 2. Need to kill long running process or interact with tools add option to send control characters; BashInteraction tool. 3. File editing using sed and echo is not reliable, add FileEdit tool. 4. Large output; add truncation based on tokens. 5. But wait I need command output to get truncated at the beginning but file reading `cat $file` to truncate at the end. Add special ReadFile tool. 6. File writing using 'echo "content" >file' needs unncessary quotes escaping leading to degraded quality, add special WriteFile tool. 7. Reading one file at a time is slow, change ReadFile to ReadFiles tool. 8. Directly writing files is not as good a
Read the rest
s first planning things. Prevent writing using architect mode. And so on. [1] https://github.com/rusiaaman/wcgw
In What Is the Most Minimal Agentic Coder You Can Write?
Good work. I wonder if there's really a need for separate write to terminal and read output functions? I was hoping that write command itself would execute and return the output of the command, saving back and forth latency. > and it's not always clear when the job is done I've authored a similar mcp [1] (but without terminal ui) The way I solved it is by setting a special PS1 prompt. So as soon as I get that prompt I know the task is done. I wonder if a similar thing can be done in your mcp? [1] https://github.com/rusiaaman/wcgw
In Show HN: Iterm-Mcp – AI Terminal/REPL Control for iTerm2
Personally I'm using the Filesystem server along with the mcp server called wcgw[0] that provides a FileEdit action. I use MacWhisper[1] to dictate. I use `tree` to give Claude a map of the directory I'm interested in editing. I usually opt to run terminal commands myself for better control though wcgw does that too. I keep the repo open in a Cursor/Windsurf window for other edits I need. But other than that I basically just tell the model what I want to do and it does it, lol. I like the Claude Desktop App interface better than trying to do things in Cursor/Windsurf directly, I like the ability to organize prompts/conversations in terms of projects and easily include context. I also honestly just have a funny feeling that the Claude web app often performs better than the API responses I get from the IDEs. [0] https://github.com/rusiaaman
Read the rest
In ChatGPT Pro
pcwelder·Oct 22, 2024Submission

Show HN: Custom GPT allows full shell interaction on chatgpt.com

I have been using this custom gpt that I wrote to develop code on autopilot mode for a while now. Write code -> fix type issues -> write code on a loop. All on chatgpt.com webapp without any API access requirement so it's free. It has full shell access and can write files. I was initially hesitant to run it locally outside VM, but now I believe that if the project is version controlled, it's very hard for anything bad to happen. What could go wrong? ;)
1 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.