AI prompts
base on π§β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! π <p align="center">
<img src="src/main/resources/META-INF/pluginIcon.svg" width="160px" height="160px" alt="logo" />
</p>
<h1 align="center">AutoDev for Intellij</h1>
<p align="center">
<a href="https://codecov.io/gh/unit-mesh/auto-dev" >
<img src="https://codecov.io/gh/unit-mesh/auto-dev/graph/badge.svg?token=5RzcndjFPx"/>
</a>
<a href="https://github.com/unit-mesh/auto-dev/actions/workflows/build.yml">
<img src="https://github.com/unit-mesh/auto-dev/actions/workflows/build.yml/badge.svg" alt="Build" />
</a>
<a href="https://github.com/unit-mesh/chocolate-factory">
<img src="https://img.shields.io/badge/powered_by-chocolate_factory-blue?logo=kotlin&logoColor=fff" alt="Powered By" />
</a>
</p>
> π§βAutoDev: The AI-powered coding wizard with multilingual support π, auto code generation ποΈ, and a helpful
> bug-slaying assistant π! Customizable prompts π¨ and a magic Auto Dev/Testing/Document/Agent feature π§ͺ included! π
VSCode Version: [https://github.com/unit-mesh/auto-dev-vscode](https://github.com/unit-mesh/auto-dev-vscode)
[Quick Start β](https://ide.unitmesh.cc/quick-start)
πππ: New AI agent language: [https://github.com/phodal/shire](https://github.com/phodal/shire)
## AutoDev 2.0 Sketch - the Cursor Composer in Intellij IDEA
Video demo (YouTube) β English
[](https://youtu.be/b1pO641-A54)
**AutoDev Sketch** is an IDE canvas feature provided by [Shire](https://github.com/phodal/shire), designed to simplify interactions and enhance the
developer experience within the IDE.
| Sketch Name | Description | Screenshots |
|-----------------------------|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| **Code Sketch** | Real-time code editor with syntax highlighting |  |
| **Diff Sketch** | Diff content comparison tool with patch handling |  |
| **Terminal Sketch** | Editable pop-up terminal interface and integration with other sketch, like frontend dev localhost in WebView |  |
| **WebView Sketch** | HTML/React/Ionic mockup generator with WebView display |  |
| **OpenAPI Sketch`*`** | OpenAPI editor with bidirectional code-OpenAPI synchronization |  |
| **Dependency Sketch`*`** | Security-builtin vulnerable dependency checker |  |
| **Go Playground Sketch`*`** | Go Playground with bidirectional code preview/edit |  |
| **Mermaid Sketch`*`** | Real-time flowchart preview/edit with bidirectional binding |  |
| **PlantUML Sketch`*`** | UML diagram editor with bidirectional code-diagram synchronization |  |
`*` means requires additional plugin installation.
### Unite Your Dev Ecosystem, Create Your AI Copilot

### Demos
Video demo (Bilibili) - δΈζ/Chinese
[](https://www.bilibili.com/video/BV115c6eUEps/)
## AutoDev Architecture
Here is the AutoDev architecture:

## AutoDev 1.0~ Feature Overview
<p align="center">
<img src="docs/autodev-overview.svg" width="100%" height="100%" alt="Overview" />
</p>
Features:
- Languages support: Java, Kotlin, JavaScript/TypeScript, Rust, Python, Golang, C/C++/OC (TBC), or others...
- Auto development mode
- AutoCRUD (Spring frameworkοΌ. With DevTi Protocol (like `devti://story/github/1102`) will auto
generate Model-Controller-Service-Repository code.
- AutoSQL (required Database plugin). Context-aware SQL generation.
- AutoPage (React). Context-aware Web Page generation.
- AutoArkUI (HarmonyOS). Auto generate HarmonyOS ArkUI code.
- AutoTesting. create unit test intention, auto run unit test and try to fix test.
- AutoDocument. Auto generate document.
- Copilot mode
- AutoDev will help you find bug, explain code, trace exception, generate commits, and more.
- Pattern specific. Based on your code context like (Controller, Service `import`), AutoDev will suggest the best
code to you.
- Related code. Based on recent file changes, AutoDev will call calculate similar chunk to generate the best code.
- Chat with AI. Chat with selection code and context-aware code.
- Customize.
- Custom specification of prompt. For example, Controller, Service, Repository, Model, etc.
- Custom intention action. You can add your own intention action.
- Custom LLM Server. You can customize your LLM Server in `Settings` -> `Tools` -> `AutoDev`
- Custom Living documentation. Customize your own living documentation, like annotation.
- Team AI. Customize your team prompts in codebase, and distribute to your team.
- Prompt override. You can override AutoDev's prompt in your codebase.
- SDLC
- VCS. Generate/improve commit message, release note, and more.
- Code Review. Generate code-review content.
- Smart Refactoring. AI based Rename, refactoring with code smell, refactoring suggetion and more.
- Dockerfile. Based on your project, generate Dockerfile.
- CI/CD config. Based on build tool, generate CI/CD config file, like `.github/workflows/build.yml`.
- Terminal. In Terminal ToolWindow, you can use custom input to generate shell/command
- Custom AI Agent
- Executable AI Agent language: DevIns.
- Custom AI Agent. You can integrate your own AI Agent into AutoDev.
- Model
- Built-in LLM Fine-tune
- [UnitEval](https://github.com/unit-mesh/unit-eval) evaluate llm result
- [UnitGen](https://github.com/unit-mesh/unit-gen) generate code-llm fine-tune data.
AutoDev fine-tune models:
download from [HuggingFace](https://huggingface.co/unit-mesh)
| name | model download (HuggingFace) | model download (OpenBayes) |
|---------------|-----------------------------------------------------------------|------------------------------------------------------------------------------------|
| DeepSeek 6.7B | [AutoDev Coder](https://huggingface.co/unit-mesh/autodev-coder) | AutoDev Coder](https://openbayes.com/console/phodal/models/rCmer1KQSgp/9/overview) |
## Language Features
### Language Support
We follow [Chapi](https://github.com/phodal/chapi) AST analysis engine for language support tier.
| Features | Java | Python | Go | Kotlin | JS/TS | C/C++ | C# | Scala | Rust | ArkTS |
|---------------------------|------|--------|----|--------|-------|-------|----|-------|------|-------|
| Chat Language Context | β
| β
| β
| β
| β
| β
| | | β
| β
|
| Structure AST | β
| | β
| β
| β
| β
| | | | |
| Doc Generation | β
| β
| β
| β
| β
| | | | β
| β
|
| Precision Test Generation | β
| β
| β
| β
| β
| | | | β
| |
| Precision Code Generation | β
| | | β
| | | | | | |
| AutoCRUD | β
| | | β
| | | | | | |
### Extensions
see in [exts](exts)
## Demo
DevIns Language demo (Bilibili) - δΈζ
[](https://www.bilibili.com/video/BV12H4y1W7sE/)
Video demo (YouTube) β English
[](https://youtu.be/gVBTBdFV5hA)
Video demo (Bilibili) - δΈζ
[](https://www.bilibili.com/video/BV1yV4y1i74c/)
## Useful Links
- [Copilot-Explorer](https://github.com/thakkarparth007/copilot-explorer) Hacky repo to see what the Copilot extension
sends to the server.
- [GitHub Copilot](https://github.com/saschaschramm/github-copilot) a small part of Copilot Performance logs.
- [θ±δΊε€§εδΈͺζοΌζη»δΊιεεζδΊGithub Copilot](https://github.com/mengjian-github/copilot-analysis)
## Who is using AutoDev?
Welcome to add your company here.
- Thoughtworks, a leading technology consultancy.
## License
Inspired by:
- Multiple target inspired
by: [https://github.com/intellij-rust/intellij-rust](https://github.com/intellij-rust/intellij-rust)
- SimilarFile inspired by: GitHub Copilot
- DevIn Language refs
on [JetBrains' Markdown Util](https://github.com/JetBrains/intellij-community/tree/master/platform/markdown-utils),
which is licensed under the Apache 2.0 license.
- Stream Diff based on [Continue Dev](https://github.com/continuedev/continue) under the Apache 2.0 license.
- Ripgrep inspired by [Cline](https://github.com/cline/cline) under the Apache 2.0 license.
- MCP based on [JetBrains' MCP](https://plugins.jetbrains.com/plugin/26071-mcp-server)
This code is distributed under the MPL 2.0 license. See `LICENSE` in this directory.
", Assign "at most 3 tags" to the expected json: {"id":"8749","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"