Convert Figma logo to code with AI

phodal logoauto-dev

πŸ§™β€AutoDev: The AI-powered coding wizard(AI ι©±εŠ¨ηΌ–η¨‹εŠ©ζ‰‹οΌ‰with multilingual support 🌐, auto code generation πŸ—οΈ, and a helpful bug-slaying assistant 🐞! Customizable prompts 🎨 and a magic Auto Dev/Testing/Document/Agent feature πŸ§ͺ included! πŸš€

4,212
471
4,212
6

Top Related Projects

Examples and guides for using the OpenAI API

Integrate cutting-edge LLM technology quickly and easily into your apps

119,202

πŸ¦œπŸ”— The platform for reliable agents.

20,897

A guidance language for controlling large language models.

180,996

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

59,284

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Quick Overview

Auto-dev is an AI-powered coding assistant and team intelligence platform. It aims to enhance developer productivity by integrating AI capabilities into the software development lifecycle, offering features like code generation, refactoring, and team collaboration tools.

Pros

  • Seamless integration with popular IDEs and development tools
  • Utilizes advanced AI models for code generation and analysis
  • Supports multiple programming languages and frameworks
  • Offers team collaboration features for improved productivity

Cons

  • May require a learning curve for developers to fully utilize its capabilities
  • Potential privacy concerns when sharing code with AI models
  • Dependency on external AI services could impact reliability
  • May not be suitable for all types of projects or development workflows

Code Examples

// Generate a Java class using Auto-dev
@AutoDev.generate("Create a simple User class with name and email fields")
public class User {
    private String name;
    private String email;

    // Constructor, getters, and setters will be generated
}
# Refactor Python code using Auto-dev
@AutoDev.refactor("Optimize this function for better performance")
def fibonacci(n):
    if n <= 1:
        return n
    else:
        return fibonacci(n-1) + fibonacci(n-2)
// Get code suggestions in JavaScript
const suggestedCode = AutoDev.suggest("Implement a debounce function");
console.log(suggestedCode);

Getting Started

To start using Auto-dev in your project:

  1. Install the Auto-dev extension for your IDE (e.g., VS Code, IntelliJ)
  2. Sign up for an Auto-dev account and obtain an API key
  3. Configure the extension with your API key
  4. Start using Auto-dev features in your code:
import com.unitmesh.autodev.AutoDev;

public class Example {
    public static void main(String[] args) {
        AutoDev.initialize("YOUR_API_KEY");
        String generatedCode = AutoDev.generate("Create a REST API endpoint for user registration");
        System.out.println(generatedCode);
    }
}

Competitor Comparisons

Examples and guides for using the OpenAI API

Pros of openai-cookbook

  • Comprehensive collection of OpenAI API usage examples and best practices
  • Well-organized and regularly updated with new features and techniques
  • Extensive documentation and explanations for each example

Cons of openai-cookbook

  • Focused solely on OpenAI's offerings, limiting its scope compared to auto-dev
  • Less emphasis on automated development workflows and AI-assisted coding
  • May require more manual integration into existing development processes

Code Comparison

openai-cookbook:

import openai

response = openai.Completion.create(
  engine="text-davinci-002",
  prompt="Translate the following English text to French: '{}'",
  max_tokens=60
)

auto-dev:

from autodev import AutoDev

auto_dev = AutoDev()
translated_text = auto_dev.translate("Hello, world!", source_lang="en", target_lang="fr")

The openai-cookbook example demonstrates direct API usage, while auto-dev provides a higher-level abstraction for AI-assisted development tasks.

Integrate cutting-edge LLM technology quickly and easily into your apps

Pros of Semantic Kernel

  • More mature and widely adopted project with extensive documentation
  • Supports multiple programming languages (C#, Python, Java)
  • Backed by Microsoft, ensuring long-term support and development

Cons of Semantic Kernel

  • Steeper learning curve due to its more complex architecture
  • Primarily focused on integrating AI capabilities into existing applications
  • Less emphasis on autonomous development and code generation

Code Comparison

Semantic Kernel (C#):

var kernel = Kernel.Builder.Build();
var function = kernel.CreateSemanticFunction("Generate a haiku about {{$input}}");
var result = await function.InvokeAsync("artificial intelligence");

Auto-Dev (Java):

AutoDevEngine engine = new AutoDevEngine();
String prompt = "Generate a haiku about artificial intelligence";
String result = engine.generateCode(prompt);

Key Differences

  • Auto-Dev focuses on autonomous development and code generation, while Semantic Kernel provides a framework for integrating AI capabilities into applications
  • Semantic Kernel offers more flexibility in terms of supported programming languages and integration options
  • Auto-Dev appears to have a simpler API, potentially making it easier to get started for specific code generation tasks
119,202

πŸ¦œπŸ”— The platform for reliable agents.

Pros of LangChain

  • More mature and widely adopted project with a larger community
  • Extensive documentation and examples for various use cases
  • Supports multiple programming languages (Python, JavaScript)

Cons of LangChain

  • Can be complex for beginners due to its extensive features
  • May have more overhead for simple projects
  • Requires more setup and configuration for basic tasks

Code Comparison

LangChain:

from langchain import OpenAI, LLMChain, PromptTemplate

llm = OpenAI(temperature=0.9)
prompt = PromptTemplate(input_variables=["product"], template="What is a good name for a company that makes {product}?")
chain = LLMChain(llm=llm, prompt=prompt)

print(chain.run("colorful socks"))

Auto-dev:

from auto_dev import AutoDev

auto_dev = AutoDev()
result = auto_dev.generate_code("Create a function to calculate the factorial of a number")
print(result)

The code examples show that LangChain focuses on creating chains of language models and prompts, while Auto-dev appears to be more oriented towards code generation tasks. LangChain's example demonstrates its flexibility in creating custom prompts and chains, whereas Auto-dev's example showcases its simplicity for code generation tasks.

20,897

A guidance language for controlling large language models.

Pros of guidance

  • More focused on providing a structured approach to prompt engineering and LLM interactions
  • Offers a declarative API for defining complex language tasks
  • Supports multiple LLM backends, including OpenAI, Anthropic, and Hugging Face

Cons of guidance

  • Less emphasis on full-stack development automation
  • May require more manual configuration for specific development tasks
  • Limited integration with existing development workflows and tools

Code Comparison

guidance:

with guidance.models.OpenAI('text-davinci-002') as model:
    prompt = guidance('''
    Human: Write a function to calculate the factorial of a number.
    AI: Here's a Python function to calculate the factorial of a number:

    {{gen 'code' stop='Human:'}}
    ''')
    executed = prompt()
    print(executed['code'])

auto-dev:

@AutoDev(type = AutoDevType.CODE_REVIEW)
public class CodeReviewExample {
    public void reviewCode(String code) {
        // Auto-dev will automatically review the code
    }
}
180,996

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Pros of AutoGPT

  • More extensive and feature-rich, with a broader range of capabilities
  • Larger community and more active development
  • Supports multiple AI models and has a web interface

Cons of AutoGPT

  • More complex setup and configuration process
  • Higher resource requirements and potentially slower execution
  • Less focused on specific development tasks compared to auto-dev

Code Comparison

AutoGPT:

def get_command(
    response: str,
    prompt: str,
    command_name: str = "COMMAND",
    arguments_name: str = "ARGUMENTS",
):
    command_regex = f"{command_name}:\s*(.+)"
    arguments_regex = f"{arguments_name}:\s*(.+)"
    command_match = re.search(command_regex, response, re.DOTALL)
    arguments_match = re.search(arguments_regex, response, re.DOTALL)
    command = command_match.group(1).strip() if command_match else ""
    arguments = arguments_match.group(1).strip() if arguments_match else ""

auto-dev:

fun generateCode(prompt: String): String {
    val response = openAI.chatCompletion {
        model = ModelId("gpt-3.5-turbo")
        message { role = ChatRole.User; content = prompt }
    }
    return response.choices.first().message?.content ?: ""
}
59,284

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Pros of MetaGPT

  • More comprehensive project management capabilities, including role-based task allocation and workflow management
  • Stronger focus on multi-agent collaboration and complex project execution
  • Built-in support for various software development methodologies and practices

Cons of MetaGPT

  • Steeper learning curve due to its more complex architecture and features
  • May be overkill for smaller projects or individual developers
  • Less emphasis on IDE integration compared to auto-dev

Code Comparison

MetaGPT example:

from metagpt.roles import ProjectManager, Architect, Engineer
from metagpt.team import Team

team = Team()
team.hire([ProjectManager(), Architect(), Engineer()])
team.run("Create a web application for task management")

auto-dev example:

from autodev import AutoDev

autodev = AutoDev()
autodev.generate_project("Task Management Web App")
autodev.implement_feature("User Authentication")

Summary

MetaGPT offers a more comprehensive solution for large-scale software development projects with multi-agent collaboration, while auto-dev provides a simpler, more straightforward approach for individual developers or smaller teams. The choice between the two depends on the project's complexity and team size.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

AutoDev 3.0 - Xiuper (Work in Progress)

The full platform supported AI4SDLC agents.

For AutoDev 3.0 (Development version)

For AutoDev 2.0 (Stable version)

Modules

ModulePlatformStatusDescription
mpp-ideaIntelliJ IDEAΓ’ΒœΒ… ProductionJewel UI, Agent toolwindow, code review, remote agent
mpp-vscodeVSCodeΓ’ΒœΒ… ProductionCodeLens, auto test/doc, MCP protocol, Tree-sitter
mpp-ui (Desktop)macOS/Windows/LinuxΓ’ΒœΒ… ProductionCompose Multiplatform desktop app
mpp-ui (CLI)Terminal (Node.js)Γ’ΒœΒ… ProductionTerminal UI (React/Ink), local/server mode
mpp-ui (Android)AndroidΓ’ΒœΒ… ProductionNative Android app
mpp-web (Web)WebΓ’ΒœΒ… ProductionWeb app
mpp-serverServerΓ’ΒœΒ… ProductionJVM (Ktor)
mpp-iosiOS🚧 Production ReadyNative iOS app (SwiftUI + Compose)

🌟 Key Features

  • Unified Codebase: Core logic shared across all platforms - write once, run everywhere
  • Native Performance: Compiled natively for each platform with zero overhead
  • Full AI Agent: Built-in Coding Agent, tool system, multi-LLM support (OpenAI, Anthropic, Google, DeepSeek, Ollama, etc.)
  • DevIns Language: Executable AI Agent scripting language
  • MCP Protocol: Model Context Protocol support for extensible tool ecosystem
  • Code Understanding: TreeSitter-based multi-language parsing (Java, Kotlin, Python, JS, TS, Go, Rust, C#)
  • Internationalization: Chinese/English UI support

License

This code is distributed under the MPL 2.0 license. See LICENSE in this directory.