Skip to content

Commit 9486636

Browse files
committed
docs
1 parent b631d89 commit 9486636

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/features.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,22 @@ ECA support built-in tools to avoid user extra installation and configuration, t
7070

7171
![](./images/features/contexts.png){ align=right }
7272

73-
ECA supports contexts (`@`) and files (`#`), including images and MCP resources, which can help LLM generate output with better quality.
73+
ECA supports contexts(`@`) including files, dirs, images, MCP resources, which can help LLM generate output with better quality/precision.
74+
7475
Here are the current supported contexts types:
7576

7677
- `file`: a file in the workspace, server will pass its content to LLM (Supports optional line range) and images.
7778
- `directory`: a directory in the workspace, server will read all file contexts and pass to LLM.
7879
- `cursor`: Current file path + cursor position or selection.
7980
- `mcpResource`: resources provided by running MCPs servers.
8081

81-
User can include those in 3 different ways that can be used for different purposes:
82+
Besides thoses, ECA supports filepaths(`#`) which are just file paths mentions in the user prompt.
83+
84+
So user can include those contexts in 3 different ways for different purposes:
8285

83-
- `#` in prompt: ECA will just mention the full file path in the mesage, LLM may use tools to read the file. __Useful for file path only mention in chat history__.
84-
- `@` in prompt: ECA will append a user-message with the context full content. __Useful for chat history context__.
85-
- `@` in context area (above prompt): ECA will use it in the instructions/system prompt of LLM request. __Useful for one-time only context__.
86+
- `#` in user prompt: ECA will just mention the absolute file path in the user message, LLM may use tools to read the file. __Useful for file path only mention in chat history__.
87+
- `@` in user prompt: ECA will append a user-message with the context full content. __Useful for chat history context__.
88+
- `@` in system prompt (above user prompt): ECA will use it in the instructions/system prompt of LLM request. __Useful for one-time only context__.
8689

8790
<img src="../images/features/contexts-files.gif" width="600">
8891

0 commit comments

Comments
 (0)