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 read & write files, analyze project source code, and execute terminal commands (after you grant permission), he can assist you in ways that go beyond simple code completion or tech support. From building software projects to running system operations, Claude Dev is only limited by your imagination.
While autonomous AI scripts traditionally run in sandboxed environments, Claude Dev offers a human-in-the-loop GUI to supervise every file change and command executed, providing a safe and accessible way to explore the potential of agentic AI.
open -a "Google Chrome" index.html, which you run with a click of a buttonPro 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 your editor.
Claude Dev uses an agentic loop style implementation 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 agentic loop fires off, where it might use certain tools (with your permission) to accomplish each step in its thought process.
Claude Dev has access to the following capabilities:
execute_command: Execute CLI commands on the system (only with your permission, output is streamed into the chat and you can respond to stdin or exit long-running processes when you're ready)analyze_project: Analyze the project's source code and file structure (see more below)list_files: List all file paths at the top level of the specified directory (useful for generic file operations like retrieving a file from your Desktop)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 directoriesask_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 CLI command to kickoff a demonstrationThe analyze_project tool uses tree-sitter to parse source code with custom tag queries that extract names of classes, functions, methods, and other definitions. This approach leverages the fact that large language models are fundamentally built on natural language processing–by focusing on these named elements, we provide the LLM with a structural understanding of the codebase that aligns closely with how developers conceptualize and organize their code.
This method is particularly effective because:
Here's how analyze_project works:
src/analyze-project/queries.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.
Feel free to contribute to this project by submitting issues and pull requests. Contributions are welcome and appreciated! 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 to open a new VSCode window with the extension loaded
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 would like a feature to be added.
Special thanks to Anthropic for providing the API that powers this extension.