Unlocking AutoDev’s AI Agent: Custom Actions to Supercharge Your IDE

This article explains how AutoDev 1.7.0 introduces a server‑side AI Agent that can be integrated into the IDE, offering three response types—Direct, TextChunk, and WebView—through configurable JSON endpoints, with practical demos, code snippets, and guidance for extending development workflows.

phodal
phodal
phodal
Unlocking AutoDev’s AI Agent: Custom Actions to Supercharge Your IDE

Background

General large language models lack internal domain knowledge; Retrieval‑Augmented Generation (RAG) can extend them but is unsuitable for constantly changing data inside an IDE. Therefore a server‑side AI Agent is needed, exposing APIs that the IDE can call.

Custom AI Agent Design

AutoDev adds a customizable AI Agent that can be configured with different response actions. Three response types are demonstrated.

1. Direct Result – Internal API Integration

Direct result demo
Direct result demo

Typical scenarios: knowledge the model does not know, internal domain knowledge, API specifications.

{
  "name": "内部 API 集成",
  "url": "http://127.0.0.1:8765/api/agent/api-market",
  "responseAction": "Direct"
}

Using Direct returns the raw response from the specified endpoint.

2. TextChunk Result – Component Library Query

Component library query demo
Component library query demo

Typical scenario: knowledge retrieval where a list of components is needed for further coding.

{
  "name": "组件库查询",
  "url": "http://127.0.0.1:8765/api/agent/component-list",
  "responseAction": "TextChunk"
}

Using TextChunk returns a chunk of retrieved text that can be used in subsequent dialogue.

3. WebView Result – Low‑Code Page Generation

Low‑code page generation demo
Low‑code page generation demo

Typical scenarios: front‑end page generation or low‑code UI creation where the AI returns a full page URL.

{
  "name": "页面生成",
  "url": "http://127.0.0.1:8765/api/agent/ux",
  "auth": {
    "type": "Bearer",
    "token": "eyJhbGci"
  },
  "responseAction": "WebView"
}

Using WebView returns a URL that the IDE can display inside a web view component.

Conclusion

In the IDE, AI Agents act as modular plugins that accelerate development by delegating specific tasks to external services. The three response actions—Direct, TextChunk, and WebView—cover common use cases such as internal API calls, knowledge retrieval, and low‑code UI generation.

For JetBrains users awaiting marketplace approval, the plugin can be downloaded directly from GitHub: https://github.com/unit-mesh/auto-dev/releases.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ai-agentIDEdeveloper toolsJSON APIAutoDevCustom Actions
phodal
Written by

phodal

A prolific open-source contributor who constantly starts new projects. Passionate about sharing software development insights to help developers improve their KPIs. Currently active in IDEs, graphics engines, and compiler technologies.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.