Skip to content

Commit 0cefc97

Browse files
committed
docs
1 parent c2698de commit 0cefc97

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/features.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Custom tools are configured in your `config.json` file. For a detailed guide on
6666

6767
![](./images/features/contexts.png)
6868

69-
User can include contexts to the chat (`@`), including images and MCP resources, which can help LLM generate output with better quality.
69+
ECA supports contexts (`@`), including images and MCP resources, which can help LLM generate output with better quality.
7070
Here are the current supported contexts types:
7171

7272
- `file`: a file in the workspace, server will pass its content to LLM (Supports optional line range) and images.
@@ -75,6 +75,13 @@ Here are the current supported contexts types:
7575
- `cursor`: Current file path + cursor position or selection.
7676
- `mcpResource`: resources provided by running MCPs servers.
7777

78+
User can include those in 3 different ways that can be used for different purposes:
79+
80+
- `#` in prompt: When completing with `#` in the prompt, when sending 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__.
81+
- `@` in prompt: When completing with `@` in the prompt, when sending ECA will append a user-message with the context content. __Useful for chat history context__.
82+
- `@` in context area (above prompt): When completing `@` in the context area, when sending ECA will use it in the instructions/system prompt of LLM request. __Useful for one-time only context__.
83+
84+
7885
#### AGENTS.md automatic context
7986

8087
ECA will always include if found the `AGENTS.md` file as context, searching for both `/project-root/AGENTS.md` and `~/.config/eca/AGENTS.md`, it will recursively check for any `@some-file.md` mention as well.

0 commit comments

Comments
 (0)