Git Product home page Git Product logo

mencelot / claude-engineer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doriandarko/claude-engineer

0.0 0.0 0.0 72 KB

Claude Engineer is an interactive command-line interface (CLI) that leverages the power of Anthropic's Claude-3.5-Sonnet model to assist with software development tasks. This tool combines the capabilities of a large language model with practical file system operations and web search functionality.

Python 100.00%

claude-engineer's Introduction

๐Ÿค– Claude Engineer

Claude Engineer is an advanced interactive command-line interface (CLI) that harnesses the power of Anthropic's Claude-3.5-Sonnet model to assist with a wide range of software development tasks. This tool seamlessly combines the capabilities of a state-of-the-art large language model with practical file system operations, web search functionality, and intelligent code analysis.

โœจ Features

  • ๐Ÿ’ฌ Interactive chat interface with Claude-3.5-Sonnet
  • ๐Ÿ“ Comprehensive file system operations (create folders, files, read/write files)
  • ๐Ÿ” Web search capabilities using Tavily API for up-to-date information
  • ๐ŸŒˆ Enhanced syntax highlighting for code snippets
  • ๐Ÿ—๏ธ Intelligent project structure creation and management
  • ๐Ÿง Advanced code analysis and improvement suggestions
  • ๐Ÿ–ผ๏ธ Vision capabilities support via drag and drop of images in the terminal
  • ๐Ÿš€ Improved automode for efficient autonomous task completion
  • ๐Ÿ”„ Robust iteration tracking and management in automode
  • ๐Ÿ“Š Precise diff-based file editing for controlled code modifications
  • ๐Ÿ›ก๏ธ Enhanced error handling and detailed output for tool usage
  • ๐ŸŽจ Color-coded terminal output for improved readability
  • ๐Ÿ“ธ Image processing and analysis capabilities
  • ๐Ÿ”ง Detailed logging of tool usage and results

๐Ÿ› ๏ธ Installation

  1. Clone this repository:

    git clone https://github.com/Doriandarko/claude-engineer.git
    cd claude-engineer
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set up your API keys:

    • Add your Anthropic and Tavily API keys at the start of the file:
      client = Anthropic(api_key="YOUR API KEY")
      tavily = TavilyClient(api_key="YOUR API KEY")

๐Ÿš€ Usage

Run the main script to start the Claude Engineer interface:

python main.py

Once started, you can interact with Claude Engineer by typing your queries or commands. Some example interactions:

  • "Create a new Python project structure for a web application"
  • "Explain the code in file.py and suggest improvements"
  • "Search for the latest best practices in React development"
  • "Help me debug this error: [paste your error message]"

Special commands:

  • Type 'exit' to end the conversation and close the application.
  • Type 'image' to include an image in your message.
  • Type 'automode [number]' to enter Autonomous mode with a specific number of iterations.
  • Press Ctrl+C at any time to exit the automode and return to regular chat.

๐Ÿค– Improved Automode

The enhanced automode allows Claude to work autonomously on complex tasks with greater efficiency and control. When in automode:

  1. Claude sets clear, achievable goals based on your request.
  2. It works through these goals one by one, using available tools as needed.
  3. Claude provides regular updates on its progress, including the current iteration count.
  4. Automode continues until goals are completed or the maximum number of iterations is reached.
  5. You can specify the maximum number of iterations when entering automode.

To use automode:

  1. Type 'automode [number]' when prompted for input, where [number] is the maximum number of iterations.
  2. Provide your request when prompted.
  3. Claude will work autonomously, providing updates after each iteration.
  4. Automode exits when the task is completed, after reaching the maximum number of iterations, or when you press Ctrl+C.

๐Ÿ“Š Enhanced Diff-based File Editing

Claude Engineer now supports an improved diff-based file editing system, allowing for more precise and controlled modifications to existing files. When editing files, Claude will:

  1. Show a detailed diff of the proposed changes, highlighting additions, removals, and unchanged lines with color coding.
  2. Focus on adding new code or modifying existing code without unnecessarily removing functionality.
  3. Provide explanations for any removed code, ensuring transparency in the editing process.
  4. Use regex patterns for precise matching and complex edits.
  5. Support various editing scenarios, including targeted changes, appending content, inserting at the beginning, and replacing entire file contents.

This feature enhances Claude's ability to make targeted improvements to your codebase while maintaining the integrity of existing functionality.

๐Ÿง  Improved System Prompt and Error Handling

The system prompt has been updated with more detailed instructions and best practices, allowing Claude to provide more accurate and helpful responses. Additionally, the code now includes enhanced error handling and more detailed output for tool usage, improving the overall reliability and user experience of the application.

Note: Claude will only have access to the files in the root folders of the script or any folder path you provide it.

๐Ÿ‘ฅ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Star History

Star History Chart

claude-engineer's People

Contributors

doriandarko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.