Skip to content

Commit e109520

Browse files
committed
feat(devins-lang): introduce DevIns Lang as the AI Agent language #101
DevIns Lang, a significant enhancement to our AutoDev AI Agent, has been introduced, aiming to elevate the agent's capabilities through a comprehensive language for defining and enhancing its behavior. This new language, designed to interact with Large Language Models (LLMs), allows developers to craft intricate instructions for the AI Agent, making it more intelligent and efficient in executing complex tasks. The language, previously known as DevInputLanguage, has been renamed to DevIns to avoid confusion with Devin AI, a renowned AI company. The documentation has been updated to reflect this change, providing a clear and concise overview of DevIns Lang and its key features, including enhanced intelligence and task segmentation.
1 parent 07a549d commit e109520

File tree

3 files changed

+48
-17
lines changed

3 files changed

+48
-17
lines changed

docs/devins/devins-language.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Based on: [JetBrains' Markdown Util](https://github.com/JetBrains/intellij-commu
2727
## Language spec
2828

2929
```bnf
30-
DevInsFile ::= (used | code | TEXT_SEGMENT | NEWLINE)*
30+
DevInFile ::= (used | code | TEXT_SEGMENT | NEWLINE)*
3131
3232
used ::= (
3333
AGENT_START AGENT_ID
@@ -45,19 +45,28 @@ code_contents ::= (NEWLINE | CODE_CONTENT)*
4545

4646
### Introduce file
4747

48+
For example:
49+
4850
```devin
4951
Explain code /file:src/main/java/com/example/Controller.java
5052
```
5153

54+
will call LLM to explain the code in the file `src/main/java/com/example/Controller.java`.
55+
5256
### Edit file
5357

54-
```devin
55-
/edit /file:src/main/java/com/example/Controller.java#L1-L12
56-
\`\`\`java
57-
public class Controller {
58-
public void method() {
59-
System.out.println("Hello, World!");
58+
If AI Agent returns a code snippet, AutoDev can edit the file with the code snippet.
59+
60+
For example:
61+
62+
/edit /file:src/main/java/com/example/Controller.java#L1-L12
63+
```java
64+
public class Controller {
65+
public void method() {
66+
System.out.println("Hello, World!");
67+
}
6068
}
61-
}
62-
\`\`\`
63-
```
69+
```
70+
71+
will edit the file `src/main/java/com/example/Controller.java` with the code snippet.
72+
The `#L1-L12` is the line range to edit. The code snippet is in Java language.

docs/devins/devins.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ permalink: /devins
88

99
{: .no_toc }
1010

11-
# DevIn Language
11+
# DevIns Language
1212

13-
DevIn lang is the AutoDev AI Agent language, which means Development Intelligence.
14-
DevIn can make the AI Agent more intelligent and more powerful. It is a language that can be used to describe
13+
DevIns lang is the AutoDev AI Agent language, which means Development Intelligence.
14+
DevIns can make the AI Agent more intelligent and more powerful. It is a language that can be used to describe
1515
the AI Agent's behavior and capabilities.
1616

17+
An AI Agent task can split into multiple instructions, and each instruction can be description by a DevIn file,
18+
which is a markdown file with DevIn language.
19+
20+

exts/devins-lang/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
1-
# DevIns Language
1+
# DevIns Lang: Enhancing AI Agent Capabilities
22

3-
> DevIn lang is the AutoDev AI Agent language, which means Development Intelligence.
4-
> DevIn can make the AI Agent more intelligent and more powerful. It is a language that can be used to describe
5-
> the AI Agent's behavior and capabilities.
3+
DevIns Lang, short for Development Intelligence Language, is the driving force behind our AutoDev AI Agent's advanced
4+
capabilities. It serves as a comprehensive tool for defining and enhancing the behavior and functionalities of the AI
5+
Agent.
66

7+
## What is DevIns?
78

9+
DevIns Lang empowers developers to craft intricate instructions for the AI Agent, enabling it to perform tasks with
10+
greater intelligence and efficiency. By breaking down tasks into manageable instructions, developers can leverage the
11+
full potential of the AI Agent in various scenarios.
12+
13+
### Key Features:
14+
15+
- **Enhanced Intelligence**: DevIns Lang equips the AI Agent with a higher level of intelligence, enabling it to
16+
understand and execute complex instructions effectively.
17+
- **Task Segmentation**: Complex AI tasks are divided into smaller, more manageable instructions, each defined using
18+
DevIns language within markdown files.
19+
20+
### Why DevIns?
21+
22+
Originally named DevInputLanguage in Issue [#101](https://github.com/unit-mesh/auto-dev/issues/101) for better
23+
interaction with LLM, we later renamed it to DevIns. This change was prompted by the discovery of Devin AI, a renowned
24+
AI company, to avoid confusion. The name DevIns, derived from DevInstruction, succinctly captures the essence of the
25+
language in guiding the AI Agent's actions.
826

0 commit comments

Comments
 (0)