TLDR;
This guide provides a step-by-step walkthrough for setting up and using Claude Code, an AI-powered agent that can interact with files and folders on your computer. It explains the differences between Claude and Claude Code, details the installation process on Windows, and offers practical examples of how to use Claude Code for tasks beyond coding, such as organizing files and finding images online. The guide also includes safety tips to minimize risks when using Claude Code.
- Setting up Claude Code on Windows, including installing necessary prerequisites like Git Bash.
- Demonstrating non-coding applications of Claude Code, such as organizing screenshots and finding images online.
- Providing safety tips for using Claude Code to protect your system and data.
Introduction to Claude Code
The author shares their initial hesitation towards using Claude Code, an AI tool that can take actions on your computer, due to its association with coding and terminal interfaces. Despite this, the author was encouraged by others to try Claude Code and found it to be a useful tool for various tasks. The guide aims to help others get started with Claude Code by providing a simple setup process and practical examples.
What is Claude Code?
Claude Code is defined as a Claude-powered agent that operates within your computer terminal, capable of accessing and modifying files and folders. This capability distinguishes it from regular Claude, which primarily engages in discussions without taking direct action on your files.
Claude Code vs. Regular Claude
Claude Code differs from regular Claude in several key aspects: context scope, task horizon, help style, and workflow. Claude Code can access files within a designated folder without manual uploading, create multi-step plans, take action, and directly manipulate items, making it ideal for tasks that require making things happen.
Setting Up Claude Code
Claude Code can be used in various environments, including the web, the Claude Desktop app, IDEs, and Slack. The guide focuses on running Claude Code in the computer's terminal window for its flexibility and direct access to local files.
1. Prerequisites
Before installing Claude Code, ensure your computer meets the necessary requirements. For Windows users, installing Git Bash may be necessary. The guide provides a link to download and install Git for Windows.
2. Installing Claude Code Itself
The guide provides the specific commands to install Claude Code based on your operating system, with a focus on Windows PowerShell. It recommends running the Terminal app as an administrator to avoid authorization issues. The installation process involves copying and pasting a command from the setup page into the terminal.
3. Running Claude Code
To run Claude Code, it is recommended to create a dedicated folder to limit its access and prevent unintended modifications to your entire drive. Navigate to this folder in File Explorer, open the terminal from within the folder, and type "claude" to start Claude Code. The first time you run Claude Code, you will be prompted to log in with a paid account, either a Claude subscription or a Claude Console account.
Using Claude Code for Non-Coding Tasks
Claude Code can be used for various tasks beyond coding, such as analyzing folder content and suggesting actions. The guide suggests using the prompt: "I’m new to Claude Code and I want to use it for things other than coding. Look into the working folder, analyze its content, and suggest a few ways you can do something with it to demonstrate the benefits of Claude Code."
Example #1: Finding and Saving Stuff from the Web
The guide demonstrates how Claude Code can find and save images from the web. The prompt used was: "Find three public domain or otherwise free-to-use cat images online and save them in a “Cat” folder." Claude Code independently searches for images, creates a folder, and saves the images, requiring minimal user involvement.
Example #2: Renaming and Organizing Screenshots
Claude Code can also rename and organize screenshots based on their content. The prompt used was: "I want you to review all the pictures in the “Screenshots” folder, rename them according to their content, group them into several logical categories, create relevant subfolders for each group, and move all images belonging to that category into the corresponding subfolder." Claude Code analyzes the images, renames them, and organizes them into relevant subfolders.
Next Steps with Claude Code
The guide suggests several potential uses for Claude Code, including researching topics online, extracting insights from documents, reorganizing files, and creating mini-apps. The author also shares plans to analyze Substack data and chat histories using Claude Code.
Safety Tips for Using Claude Code
To minimize risks when using Claude Code, the guide recommends:
- Always start Claude Code in the intended working folder.
- Manually manage files and subfolders in the working folder.
- Keep backups of critical files.
- Avoid adding sensitive information to the working folder.
- Consider manually approving download requests.