Claude Code Was Leaked… So I Had to Test it

Claude Code Was Leaked… So I Had to Test it

Anthropic's Claude Code Leak: Experimentation and Customization

Introduction to the Leak

  • Anthropic accidentally leaked quad code, which was shared on Twitter, prompting curiosity and experimentation.
  • The video aims to explore the source code of Claude Code for entertainment purposes, with no intention of monetization.

Downloading and Analyzing the Code

  • The source code was leaked via a map file in the npm registry; the speaker successfully downloaded it prior to potential blocking.
  • The plan is to analyze Claude Code using OpenAI's Codex and create a customized version based on this analysis.

Exploring Claude Code Functionality

  • Using Codex, the speaker begins analyzing the structure of Claude Code, noting its features like multi-agent delegation and built-in custom plug-in agents.
  • The goal is to run a modified version of Claude Code locally while making changes to its personality and user interface.

Setting Up for Customization

  • The speaker prepares to run their version called "Riley code" by obtaining an API key from Anthropic’s console.
  • After setting up Riley code in the terminal, they initiate interaction with it, confirming its functionality as a customized agent.

Customizing Personality and Verbs

  • Initial interactions reveal existing verbs within Riley code; there’s an intent to modify these verbs for better customization.
  • A request is made for Codex to generate a list of popular cultural verbs that can be integrated into Riley code's responses.

Final Adjustments and Personality Changes

  • The speaker expresses desire for Riley code's personality adjustments—aiming for directness akin to a smart intern who communicates casually yet effectively.
  • They seek guidance on how to implement these personality changes within the coding framework.

How to Enhance a Coding Agent?

Outlining the Codebase

  • The speaker requests an outline of the codebase, asking for a breakdown into 12 key parts akin to a table of contents. This indicates a structured approach to understanding the components involved.

Personality Integration

  • A new personality.txt file is created, allowing for easier tuning of the agent's personality without modifying the entire bundle. This highlights an effort towards modularity in design.

Interaction with Riley Code

  • The speaker tests the coding capabilities of Riley Code by asking it about how Claude code works, revealing that it functions as more than just a chatbot but as a coding assistant.

Enhancing User Experience

  • Ideas are generated on how to modify the agent to feel more like OpenClaw, including creating an Electron app similar to T3 Chat that allows interaction through a terminal-like UI.

Implementing Features and Changes

  • After implementing workspace files based on suggestions, the desktop app opens with previous chat sessions. The user engages with Riley by initiating tasks such as building apps.

Building Applications with Riley Code

Task Initiation and Skill Launching

  • The user instructs Riley to build a "Hello World" web app named "Monkey Man," showcasing its ability to launch local skills and interactively develop applications.

Permissions Management

  • A request is made for default permissions management settings within the app, indicating concerns over security and functionality during development processes.

App Design Adjustments

  • The speaker outlines specific design changes they want in their notes application, emphasizing usability improvements such as displaying tool names clearly and adjusting interface elements for better accessibility.

Refining Application Functionality

User Interface Improvements

  • Suggestions include simplifying visual elements in the sidebar and enhancing text visibility while typing prompts during loading times. These adjustments aim at improving user experience during interactions.

Project Management Features

  • There’s an emphasis on integrating project management features that allow users to create new projects easily while maintaining context across different chats.

Visual Customization Requests

Aesthetic Changes Based on Inspiration

  • The speaker expresses interest in making their application visually appealing by referencing another app called Blueberry, requesting specific background images and transparency levels for various UI components.

Riley Code: Enhancing Claude's Functionality

Introduction to Riley Code

  • Riley Code is introduced as an official CLI for Claude, functioning as a coding assistant that allows users to interact through chat.
  • The user requests the creation of a PDF file regarding their personality status maxing thinking, indicating a desire for personalized outputs.

User Interface Improvements

  • The user expresses the need for a built-in web browser within the app, which should be closed by default and open on the right side, similar to Claude Artifacts.
  • Any links clicked in the app should automatically open in this integrated browser, enhancing usability and immediate access to resources.

File Handling and Display

  • The user emphasizes that generated links or files (like PDFs) should also open in the designated browser area for seamless interaction.
  • After testing, feedback is provided on visual elements; specifically requesting changes such as a green background with larger black text.

Application Development Progress

  • The user shares updates after two hours of work on improving aesthetics and functionality based on inspiration from another application called Codeex.
  • Features like full-screen capability and adjustable window sizes are highlighted, showcasing enhancements made to improve user experience.

Interaction with Riley Code

  • Users can create new projects easily within Riley Code, akin to functionalities found in cloud code applications.
  • The session allows messaging capabilities where users can instruct Riley Code to develop various apps while enjoying improved design features.
Video description

I got my hands on the leaked Claude Code source code, analyzed it with OpenAI Codex, and rebuilt it as my own CLI called RileyCode. I changed the personality, swapped in custom action verbs, and then built a full desktop app around it from scratch. Where to find me on other platforms: https://x.com/rileybrown https://www.instagram.com/realrileybrown/ https://www.linkedin.com/in/riley-brown-7441b1101/ https://www.tiktok.com/@rileybrown.ai Try out my product: https://vibecode.go.link/cNcuZ TIME STAMPS 00:00 Intro 00:58 The Leak 01:51 Summarizing what is in Claude Code repo 03:10 Running Claude Code (RileyCode) 05:10 My own verbs 06:49 Changing the personality 08:50 Building a desktop app for RileyCode 10:13 Dangerously Skip Permissions by default 11:11 Editing style of desktiop app 12:38  Adding memory 14:39 Adding a built-in browser 16:03 Final result