Download VSCode Extension | Join the Discord
Thanks to Claude 3.5 Sonnet's agentic coding capabilities Claude Dev can handle complex software development tasks step-by-step. With tools that let him create & edit files, explore complex projects, and execute terminal commands (after you grant permission), he can assist you in ways that go beyond simple code completion or tech support. While autonomous AI scripts traditionally run in sandboxed environments, Claude Dev provides a human-in-the-loop GUI to supervise every file changed and command executed, providing a safe and accessible way to explore the potential of agentic AI.
- Paste images in chat to use Claude's vision capabilities and turn mockups into fully functional applications or fix bugs with screenshots
- Review and edit diffs of every change Claude makes right in the editor, or provide feedback in chat until you're satisfied with the result
- Executes commands directly in your terminal, keeping Claude updated on any output as he works (letting him react to server errors!)
- Captures screenshots and console logs of locally running web apps to help Claude debug and fix runtime issues on his own
- Monitors workspace problems to keep Claude updated on linter/compiler/build issues, letting him proactively fix errors on his own (adding missing imports, fixing syntax errors, etc.)
- Presents permission buttons (like 'Approve terminal command') before tool use or sending information to the API
- Keep track of total tokens and API usage cost for the entire task loop and individual requests
- When a task is completed, Claude determines if he can present the result to you with a terminal command like
open -a "Google Chrome" index.html
, which you run with a click of a button
Pro tip: Use the Cmd + Shift + P
shortcut to open the command palette and type Claude Dev: Open In New Tab
to start a new task right in the editor.
Claude Dev uses an autonomous task execution loop with chain-of-thought prompting and access to powerful tools that give him the ability to accomplish nearly any task. Start by providing a task and the loop fires off, where Claude might use certain tools (with your permission) to accomplish each step in his thought process.
Claude Dev has access to the following capabilities:
execute_command
: Execute terminal commands on the system (only with your permission, output is streamed into the chat)read_file
: Read the contents of a file at the specified pathwrite_to_file
: Write content to a file at the specified path, automatically creating any necessary directoriesinspect_site
: Capture a screenshot and console logs of a website (useful for debugging locally running apps)list_files
: List all paths for files in the specified directory. Whenrecursive = true
, it recursively lists all files in the directory and its nested folders (excludes files in .gitignore). Whenrecursive = false
, it lists only top-level files (useful for generic file operations like retrieving a file from your Desktop).list_code_definition_names
: Parses all source code files at the top level of the specified directory to extract names of key elements like classes and functions (see more below)search_files
: Search files in a specified directory for text that matches a given regex pattern (useful for refactoring code, addressing TODOs and FIXMEs, removing dead code, etc.)ask_followup_question
: Ask the user a question to gather additional information needed to complete a task (due to the autonomous nature of the program, this isn't a typical chatbot–Claude Dev must explicitly interrupt his task loop to ask for more information)attempt_completion
: Present the result to the user after completing a task, potentially with a terminal command to kickoff a demonstration
When given a task in an existing project, Claude will look for the most relevant files to read and edit the same way you or I would–by first looking at the names of directories, files, classes, and functions since these names tend to reflect their purpose and role within the broader system, and often encapsulate high-level concepts and relationships that help understand a project's overall architecture. With tools like list_code_definition_names
and search_files
, Claude is able to extract names of various elements in a project to determine what files are most relevant to a given task without you having to mention @file
s or @folder
s yourself.
-
File Structure: When a task is started, Claude is given an overview of your project's file structure. It turns out Claude 3.5 Sonnet is really good at inferring what it needs to process further just from these file names alone.
-
Source Code Definitions: Claude may then use the
list_code_definition_names
tool on specific directories of interest. This tool uses tree-sitter to parse source code with custom tag queries that extract names of classes, functions, methods, and other definitions. It works by first identifying source code files that tree-sitter can parse (currently supportspython
,javascript
,typescript
,ruby
,go
,java
,php
,rust
,c
,c++
,c#
,swift
), then parsing each file into an abstract syntax tree, and finally applying a language-specific query to extract definition names. The results are formatted into a concise & readable output that Claude can easily interpret to quickly understand the code's structure and purpose. -
Search Files: Claude can also use the
search_files
tool to search for specific patterns or content across multiple files. This tool uses ripgrep to perform regex searches on files in a specified directory. The results are formatted into a concise & readable output that Claude can easily interpret to quickly understand the code's structure and purpose. This can be useful for tasks like refactoring function names, updating imports, addressing TODOs and FIXMEs, etc. -
Read Relevant Files: With insights gained from the names of various files and source code definitions, Claude can then use the
read_file
tool to examine specific files that are most relevant to the task at hand.
By carefully managing what information is added to context, Claude can provide valuable assistance even for complex, large-scale projects without overwhelming its context window.
Claude always asks for your permission first before any tools are executed or information is sent back to the API. This puts you in control of this agentic loop, every step of the way.
Paul Graham said it best, "if you build something now that barely works with AI, the next models will make it really work." I've built this project with the assumption that scaling laws will continue to improve the quality (and cost) of AI models, and what might be difficult for Claude 3.5 Sonnet today will be effortless for future generations. That is the design philosophy I'd like to develop this project with, so it will always be updated with the best models, tools, and capabilities available–without wasting effort on implementing stopgaps like cheaper agents. With that said, I'm always open to suggestions and feedback, so please feel free to contribute to this project by submitting issues and pull requests.
To build Claude Dev locally, follow these steps:
- Clone the repository:
git clone https://github.com/saoudrizwan/claude-dev.git
- Open the project in VSCode:
code claude-dev
- Install the necessary dependencies for the extension and webview-gui:
npm run install:all
- Launch by pressing
F5
(orRun
->Start Debugging
) to open a new VSCode window with the extension loaded. (You may need to install the esbuild problem matchers extension if you run into issues building the project.)
- "VSCode + ClaudeDev + Continue: Stop Paying for Cursor with this OPENSOURCE & LOCAL Alternative", "Claude Dev: This Coding Agent can Generate Applications Within VS Code!", "ClaudeDev (Upgraded) : The BEST Coding Agent just got OLLAMA Support, Groq & Other Cool Updates!", "ClaudeDev + NextJS + Supabase: Generate FULL-STACK Apps with Claude 3.5 Sonnet", "ClaudeDev + Gemini : Generate Applications for FREE with Gemini 1.5 Pro / Flash!", "ClaudeDev (Upgraded) : The BEST Coding Agent just got Opensource LLM & Multimodal Support + Caching!" by AICodeKing
- "ClaudeDev: NEW Coding Agent Can Generate Applications within VS Code!", "VSCode + ClaudeDev: FREE Alternative Thats OPENSOURCE & LOCAL!" by WorldofAI
- "Claude Sonnet 3.5 Artifacts in VSCode With This Extension" by CoderOne
- "Fully automated game development with a single prompt!", "Claude Dev fully automated writing code to develop chatbots! Beyond Copilot!" by AIsuperdomain
- "ClaudeDev: This Mind-Blowing Coding Agent Can Build SaaS Apps in Minutes!" by AI for Devs
- "Claude Dev Is Mindblowing. The Best Coding Assistant tool?", "Combining Claude Dev With Google Gemini To Build Fast With Low Effort", "Browser Automation Made Easy With Claude Dev", "CREATE THE PERFECT CODE FOR YOU", "The Most Powerful AI Coding Assistant Is Now Available With Local Models" by Yaron Been
- "Meet Claude Dev — An Open-Source AI Programmer In VS Code" and "Build games with zero code using Claude Dev in VS Code" by Jim Clyde Monge
- "Claude Dev Builds NextJS App! Continue Dev & GitHub Copilot Open-Source Alternative" by Josh Pocock
- "ClaudeDev: The Ultimate Coding Agent for VS Code" by Blas
- "I Built My First Web App in One Day Using Claude Dev Extension – Mind Blown!"
- "AI Development with Claude Dev" by Shannon Lal
- "Code Smarter with Claude Dev: An AI Programmer for Your Projects" by Iana D.
- Claude Dev also hit top 10 posts of all time on r/ClaudeAI
This project is licensed under the MIT License. See the LICENSE file for details.
Contact me on X @sdrzn. Please create an issue if you come across a bug, or use the feature request board to share & vote on new features.
Special thanks to Anthropic for providing the model that powers this extension.