LongCut logo

I Downloaded Claude Code’s Leak (The Results are INSANE)

By Riley Brown

Summary

Topics Covered

  • Claude Code Source Code Was Just Leaked
  • Built-in Custom Plug-in Agents Are Real
  • I Built My Own Claude Code With a Soul File
  • I Made Codeex But With My Own AI

Full Transcript

Yesterday, Anthropic made a huge mistake and they accidentally leaked quad code again. And so, someone posted the

again. And so, someone posted the download link on Twitter. And so, of course, being as curious as I am, I had to download it and I had to take a look

and I had to start experimenting with Claude Code running on my computer. And

so, this video is for entertainment purposes only because in this video I'm going to download the source code to Claude Code. I'm going to have OpenAI

Claude Code. I'm going to have OpenAI codeex analyze how Cloud Code works. And

then I'm actually going to change it.

I'm going to change the action verbs that you see in Claude Code. I'm going

to change its personality. I'm going to try and make this a better interface.

So, I'm going to vibe code my own interface for my own version of Claude Code. And we're going to see where it

Code. And we're going to see where it gets us. And full disclaimer, I will not

gets us. And full disclaimer, I will not try and sell or monetize anything that I create in this video because it's for entertainment purposes only. Anthropic,

please don't hurt me. Anyway, let's dive into the video. All right, so this morning, this tweet was literally the first one on my feed when I open my phone. Claude Code source code has been

phone. Claude Code source code has been leaked via a map file in their npm registry. We're simply just going to

registry. We're simply just going to download the code and have some fun.

We're going to learn and we're going to build our own version of cloud code based on this code. And again, this is all for entertainment purposes. And what

made this post so interesting is that all you have to do is just click on this link and it automatically downloads it to your computer. I will say it's not doing it now. I think this was actually

blocked somehow, but luckily I've already downloaded it to my computer earlier. And yeah, so I downloaded it to

earlier. And yeah, so I downloaded it to my downloads earlier. And here it is sitting in source 2. So this is the code that is apparently clouded code. And so

what I'm going to do is I'm actually just going to make a copy. You can hit duplicate. Here we have source 2 copy.

duplicate. Here we have source 2 copy.

Now what I'm going to do is in codeex what I'm going to do is I'm going to hit add new project and we're going to work out of source 2. So this is the cloud

code. I'm going to say please tell me

code. I'm going to say please tell me what you see in this project. Summarize

this agent. So right now I'm using codeex by openai. It would feel weird to use cloud code editing the cloud code source code. code. I feel like it will

source code. code. I feel like it will be put into some weird database or something for doing that. So instead,

we're going to stick with codeex and now it's analyzing the the code here. Okay,

so it looks like it's almost done here.

So what this is, this is the source tree for Anthropics Claude Code CLI. The CLI

entry point literally prints Claude code and it has a dedicated fastpass for remote control, Damon workers, background sessions, MCP helpers, and

other agent runtime modes. This has

everything that Cloud Code has. Built-in

custom plug-in agents, multi-agent delegation is real here. This is really cool. So now what I want to do is I want

cool. So now what I want to do is I want to run this code as if it was cloud code, but I want to run this version.

And I'll probably need my anthropic API key to do this. Uh I want to run this version and then I want to start making changes, right, to its personality. So

I'm going to say I want you to do everything you need to do to run this locally in the terminal. I don't want to run cloud code. I want to run this code which is basically like cloud code except we're going to make changes.

Please run this except make changes to the UI. So it's called Riley code. So I

the UI. So it's called Riley code. So I

know you made changes successfully and allow me to run this coding agent in my terminal. Give me the command to do so.

terminal. Give me the command to do so.

I will give you the anthropic key in my next message because I'm pretty sure it'll need that. So I'm just going to run this. And now I am going to go to

run this. And now I am going to go to Google Chrome. What we're going to do is

Google Chrome. What we're going to do is we're going to go get my API key. And

you can actually get an API key on console, the enthropic console. So you

can look up enthropic console. You can

go there. The screen should look like this. I'm going to create an API key and

this. I'm going to create an API key and I'm going to give it to codeex. I'm not

going to do it on screen because I don't want my API key to leak. Okay. So it is now done. This took a little bit and the

now done. This took a little bit and the response was really long. So I said in bullet summarize what we've done. And so

it's created what is called Riley code.

And we can run it by typing Riley code in our terminal. So I'm going to go ahead and open up a terminal. And I'm

going to type in Riley code. And there

we go. Here it says Riley code. Say

hello. How can I help you today? Are you

clawed code? Right. And so here, can you find the verbs in the codebase?

Spelunking, working are a few. I want you to tell me all of them. I want to make my own.

Right? Because if you say I want to build an app right here, it says symbioting. Right? This is another one.

symbioting. Right? This is another one.

We'll give this symbiotting. We're going

to change these to be exactly what we want because we can now fully customize cloud code. Okay. So, here it's done.

cloud code. Okay. So, here it's done.

Click on settings.json.

Here, this code file pops up. Very cool.

So, we're going to go to a new session on codecs and I'm going to say look think about looks maxing jster maxing and frame mogging and please look up

other verbs like these that are funny and popular in culture. Please give me a

list of 20. Okay, this seems like a good list of 20. I'm going to go ahead and just copy these. We'll go back here.

three of these. I want you to use uh these are the 20. Okay, that is done.

So, if we're going to go open up terminal, command N to create a new one.

Let's do Riley code and we'll say hello make an app. Let's make this bigger first. Status maxing. Let's say todo

first. Status maxing. Let's say todo list. Clout maxing. This is hilarious.

list. Clout maxing. This is hilarious.

Mewing. There's even meing on here. Aura

farming. Fire. Okay, so this is pretty cool. This is coming on quite nicely.

cool. This is coming on quite nicely.

Please, I want you to figure out how to change its personality. I want it to uh respond in all lowercase. I want it to just like be very direct like a

19-year-old intern who's like really smart and kind of a generalist, not much of a coder, and like they respond in like fast-paced, multiple messages sometimes, but like low-key you're like

super smart and you just treat you're like a group. You're in a group chat.

figure out how to change the agent's personality in the codebase. Really

think deeply about this and then make that change. And while that's loading,

that change. And while that's loading, we can say I'm going to go here. I'm

going to say, please can you outline the different parts of this codebase? If you

were to boil this agent into 12 key parts like a table of contents, how would you do this? Please make a dock.

Okay, this is still working. Okay, so it just created this personality.txt file, which is pretty interesting. I

added the personality as a dedicated prompt file, so it stays easy to tune without touching the bundle again. Next.

Okay, the launcher now injects Persona through a supported system. Okay, this

is very interesting. Okay, now it should work. So again, we're going to go to the

work. So again, we're going to go to the terminal. We are going to hit command N.

terminal. We are going to hit command N.

We're going to run Riley code. Now say,

"Hey, I have a task for you." Let's see.

Hey, what's the task? I want you to tell me about how claude code work. Let's

see. Okay, so here it is. It's

responding in little chunks, all lowercase. What it is, it's a coding,

lowercase. What it is, it's a coding, not just a chatbot. Okay, so we did change the personality of the agent a little bit. This is pretty cool. I'm

little bit. This is pretty cool. I'm

going to say, how could we best alter this agent to feel more like open claw?

Please tell me how to do this simply.

What are the things we should change?

So, that'll think for a little bit. I

want to, and I actually wrote a prompt, just some random ideas for what I want to create, but I'm going to say I want to create a coding app like OpenAI

codeex. It's sleek. I even grabbed this

codeex. It's sleek. I even grabbed this image right here of T3 chat. So this is T3 Chat. We're going to make it similar

T3 Chat. We're going to make it similar to T3 chat. This should be an Electron app that lets me interact with Riley

code exactly like the terminal UI.

Please make it so all the tool calls and stuff show up while keeping it minimal.

Okay, so we can run that. So now we're creating a desktop app. Okay. So it gave me eight different ideas on how to make it more uh like OpenClaw. And I really

like this one. Like I really like these uh workspace files. So I'm just going to say please let's do this one first.

Please implement these files and put it in the instructions for the agent to maintain these. Let's do it. Okay. We're

maintain these. Let's do it. Okay. We're

going to run that. All right. So, it's

done. I'm just going to say, "Please, can you run this desktop app?" All

right. So, here it just opened up this application right here. Okay. So, it has my previous chat sessions. I can say, "Hello there. My name is Riley." Here it

"Hello there. My name is Riley." Here it says jester gooning. Hey, Riley. Nice to

meet you. What are we working on today?

I want to build a Hello World mobile app. Actually, hello world web app. Can

app. Actually, hello world web app. Can

you do it? So, it's launching this skill. Oh, it's launching my local

skill. Oh, it's launching my local skill. Vive Code CLI skills that I

skill. Vive Code CLI skills that I already had. Nice. Let's do it. Quick

already had. Nice. Let's do it. Quick

thing. What do you want to call it?

Monkey man about the history of monkeys.

Love it. Building monkey man. A hello

world of monkeys. Bash command blocked.

Looks like I need your approval. Oh,

need your approval. Can you please make it d-dangerously skip permissions by default? Okay, here

it says done. The desktop now launches with dangerously skip permissions. So if

we go terminal, we're going to hit command N. We'll make this much bigger.

command N. We'll make this much bigger.

We need to say open the desktop app. I

do want to see that if we run it in the terminal, if we type in Riley code, does it automatically run in dangerously skip permissions? I'm not sure. Okay, let's

permissions? I'm not sure. Okay, let's

go back to this. Hello, please make a notes app that looks uh like Apple notes. Make it quickly. Okay, launching

notes. Make it quickly. Okay, launching

vibe code or launching skill. Okay, so

now it can actually run. It can use all of these tools. Okay, so now what I'm going to do is I'm just going to speak out loud all the changes that I want to make in the app. Okay. So, what I'm thinking, please just have the little

tools that it's using, just have like the skill name, the bash done. Like

right now, it's like this like green bubble above the three dots. I don't

want that. Please put it within the three dot. Like, if it's using a skill,

three dot. Like, if it's using a skill, just put it within the three dots. Have

it rotate. You don't need to show all of them. Just show the one that it's

them. Just show the one that it's currently using. And then make the

currently using. And then make the status maxing or or the the whatever the verb is, make that bigger beneath it.

Don't put the words reply ready. and put

the stop button at the bottom of the screen. Also, I want to be able to type

screen. Also, I want to be able to type a prompt while it's loading. And yeah,

like I should be able to respond. I

should be able to type my next prompt while it's loading there. And then the stop button should be within that area.

Also, in the side panel right now, I can adjust it. Please just put the title of

adjust it. Please just put the title of the chat. Don't put it in like this like

the chat. Don't put it in like this like rounded circle component. Just make the the the font on the left side smaller as well. And there's a line beneath the top

well. And there's a line beneath the top bar where it shows Riley code. Please

just get rid of that line that goes across vertically. And yeah, please make

across vertically. And yeah, please make these changes. Okay, let's see if stop

these changes. Okay, let's see if stop works. Okay, stop did work. Let's create

works. Okay, stop did work. Let's create

a new chat. Do you have the files like the soul.md

the soul.md file? So, I can screenshot this then and

file? So, I can screenshot this then and we can go to our other chat that we're using. Right. Um here we tried to add

using. Right. Um here we tried to add the soul.md file. I'm making a desktop

the soul.md file. I'm making a desktop app right now that's running my version of um claude code which is Riley code. I

want all of the chats to have this file.

Uh it should remember things about me and store these automatically.

Also uh when I create a new chat I want to be able to create new projects. look

up how codeex works in with like projects and threads because I want to be able to like start off in a new directory which has its own like files and such. Like right now I don't know

and such. Like right now I don't know what directory directory we're starting out in. Just kind of fling that in

out in. Just kind of fling that in there. And then one more thing that I'm

there. And then one more thing that I'm going to do is I really like this app.

It's called Blueberry. And so I'm giving it to this and I'm going to say make it look more like this. Here is an image I want you to use as the background. And

I'm just going to drag this in right here. I just dragged it in. Here it is.

here. I just dragged it in. Here it is.

Kind of a cool mountain shot. Please

make sure the sidebar and the chat area are not too seeth through. Background

should be not too visible like the image. Don't blur the background. Rather

image. Don't blur the background. Rather

make it look like the first image. Okay.

So, I just made a few changes and this is what it looks like now. Hello there.

Please tell me who you are. Hi, I'm

Riley Code, Enthropics official CLI for Claude. Basically, coding assistant that

Claude. Basically, coding assistant that you can chat with. What are you working on? I want you to make a PDF file in my

on? I want you to make a PDF file in my downloads folder about your personality

status maxing thinking. It's not showing the tool calls. Oh, okay. I don't like how this looks for the tool calls.

Please, can you fix put it in the dot dot dot animation like in the bubble?

Okay. So, I want to be able to just like open it up. So, I actually want you to create a little web browser in this app that's closed by default. It should be open on the right. Very similar to

Claude Artifacts. Any link that I click

Claude Artifacts. Any link that I click on should open it up in that. So imagine

I'll have you create like a public link or it'll be a localhost link and I want that to open up in a little browser in the app so I can immediately begin using it and stuff. Please make that and uh

anytime I generate something, whatever the last link is of the message should automatically open that little browser up if that makes sense. So if there's a link and files should be able to be

opened up there as well. So if right now it just gave me a PDF link in its response and it gave me a file path that should also open up in that area as well. This may take a while. I have

well. This may take a while. I have

time. Let's go. All right. So while

that's creating, let's test this up.

Make the background of this green. I

actually haven't opened this up yet. So

So it's in my downloads. Let's go to downloads. Here's Riley Code

downloads. Here's Riley Code personality. Here we go. Here's the

personality. Here we go. Here's the

file. It's not that great. Please make

the background of this green and the text black and even bigger. No red. So

here we have it should show up in our files right here. Can use all of the tools and such. Here we go. Boom. Look,

it just switched right here. Okay. So, I

actually took uh two hours last night.

It's the next day after I was filming this and I just made some uh nice little changes here. Um just kind of made it

changes here. Um just kind of made it look nice. Made some animations look

look nice. Made some animations look good. I can full screen the app that I'm

good. I can full screen the app that I'm working on. I cleaned up these files to

working on. I cleaned up these files to look a lot more like Codeex. I got a lot of uh a lot of inspiration from this codeex application. And you can see here

codeex application. And you can see here I made my own little version of Codeex except it's running Riley code which is my own version of cloud code based on the um I downloaded the source code of

cloud code. We can open these up here in

cloud code. We can open these up here in the side view. We can adjust the window.

We can open it up full screen. we can

see the global files. So these global files we can open up here on the side um and we can switch them right. We can go to the tools.mmd and we can ask Riley code to edit these and it will dictate

its personality and we can create very easily create new prod. And this is just like codeex and now we're creating a new session with Riley code and we can

message it and tell it to create any app just as if it was cloud code. We put

this nice little background here. And

yeah, I just did some experimentation in this video and I hope you guys learned a thing or two. Anyway, thank you guys for watching. Please hit subscribe. It helps

watching. Please hit subscribe. It helps

me out a lot. I'll see you here for the next

Loading...

Loading video analysis...