| ▲ | Show HN: Claude Code rewritten as a bash script(github.com) |
| 53 points by rpst 3 days ago | 18 comments |
| Have you ever wondered if Claude Code could be rewritten as a bash script? Me neither, yet here we are. Just for kicks I decided to try and strip down the source, removing all the packages. |
|
| ▲ | coolwulf 6 hours ago | parent | next [-] |
| I added a new track flight function and you can track any airline in flight. |
|
| ▲ | eszed 2 days ago | parent | prev | next [-] |
| How much of this was written using / by Claude? Not hating or snarking, BTW, just curious. Why (especially if the answer above is 'yes' / 'most') do we collectively think Anthropic built such a heavy interface? |
| |
| ▲ | rpst 2 days ago | parent [-] | | all of it, and I think the answer is
1. feature creep
2. a lot of nice-to-haves. the TUI alone is responsible for a lot of bloat | | |
| ▲ | WaterRun 2 days ago | parent [-] | | Even that TUI is written in React. | | |
| ▲ | eszed 17 hours ago | parent [-] | | I know, which seems absurd to me. Like, TUIs are 1) a solved problem, b) performant, and c) right there, on every single computer in the world. (Someone please correct me, to point out that there's some weird OS somewhere that doesn't have a shell, so I can say "Yeah, but does it run Claude?") Is there an engineering-based reason, or is it that the AI knows React, so it's easier to vibe, and damn the user experience? |
|
|
|
|
| ▲ | goosethe 16 hours ago | parent | prev | next [-] |
| comes out to about ~1,000 lines in python as well
https://gist.github.com/seanwevans/c9d44aadae9690ec2325bc940... |
|
| ▲ | kylex-ken 2 days ago | parent | prev | next [-] |
| Claude code written for basic on your Apple II, because it'd be so retro. |
| |
|
| ▲ | 0xa2 2 days ago | parent | prev | next [-] |
| I'd say websearch and webfetch tools are very important but missing here. Great direction though, I also wonder about how much bloat could be eliminated... |
| |
| ▲ | rpst 2 days ago | parent [-] | | agree, I was more focused on bloat than pure utility |
|
|
| ▲ | theidioticdev 3 days ago | parent | prev | next [-] |
| ok this is actually impressive, really.
idk why no one commented yet |
|
| ▲ | malicka 2 days ago | parent | prev | next [-] |
| That sure is a lot of lines to avoid using getopts... |
| |
| ▲ | sudahtigabulan a day ago | parent [-] | | There seems to be only one possible option, --resume, and only one line is dedicated to handling it... |
|
|
| ▲ | Imustaskforhelp 2 days ago | parent | prev [-] |
| I am now waiting for, Claude Code rewritten in assembly project :) (Maybe it can be a good project for anyone who works low-level) |
| |
| ▲ | rpst 2 days ago | parent [-] | | we’re going to have a bunch of CC rewritten in <obscure language> | | |
| ▲ | kridsdale1 2 days ago | parent [-] | | Waiting for Rust. | | |
| ▲ | Imustaskforhelp 2 days ago | parent [-] | | Claw-code (reached 100k stars on github and I have made an article about them[0]) are currently re-writing claude-code in rust (they have already ported it to python) Its worth following: https://github.com/instructkr/claw-code [0]: my article: https://smileplease.mataroa.blog/blog/claw-code-reaches-100k... | | |
| ▲ | dghong 14 hours ago | parent [-] | | This is built by studying the leaked source.
"Clean-room rewrite" doesn't mean much when
you've read the original first — that's not
clean-room, that's copying with extra steps.
This is theft, plain and simple. The stars on the original claw-code repo were
earned through the leak, not the work. Riding
that wave with another clone doesn't make it
original engineering. Also worth noting: this wasn't submitted as
Show HN — it's being promoted through comment
threads instead. Make of that what you will. Real open-source respects both the letter
and the spirit of IP law. |
|
|
|
|