Skip to content

Commit e2c01a2

Browse files
committed
docs
1 parent 60ec413 commit e2c01a2

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/config/context-management.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ECA manages the context window through three layers of defense, each addressing
99
1. **Output Truncation** — prevents individual tool outputs from being too large.
1010
2. **Auto-compact** — proactively summarizes the conversation before it reaches the model's limit.
1111
3. **Context overflow recovery** — reactively handles the case when the context exceeds the limit despite the above.
12+
4. **Max lines for read_file** — sets a max number of lines that when LLM tries to full read the file will use (default: 2000).
1213

1314
## Output Truncation
1415

@@ -80,3 +81,20 @@ Instead of showing this error to the user, ECA automatically recovers:
8081
This happens transparently — the user sees a brief "Context window exceeded. Auto-compacting conversation..." notice, and the task continues without manual intervention.
8182

8283
If recovery itself fails (e.g., the conversation is too large even after pruning), ECA falls back to displaying the error so the user can manually compact or start a new chat.
84+
85+
## File Reading
86+
87+
You can configure the maximum number of lines returned by the `eca__read_file` tool:
88+
89+
```javascript title="~/.config/eca/config.json"
90+
{
91+
"toolCall": {
92+
"readFile": {
93+
"maxLines": 1000
94+
}
95+
}
96+
}
97+
```
98+
99+
Default: `2000` lines
100+

docs/config/tools.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -196,21 +196,3 @@ Check some examples:
196196
Also check the `plan` agent which is safer.
197197

198198
__The `manualApproval` setting was deprecated and replaced by the `approval` one without breaking changes__
199-
200-
## File Reading
201-
202-
You can configure the maximum number of lines returned by the `eca__read_file` tool:
203-
204-
```javascript title="~/.config/eca/config.json"
205-
{
206-
"toolCall": {
207-
"readFile": {
208-
"maxLines": 1000
209-
}
210-
}
211-
}
212-
```
213-
214-
Default: `2000` lines
215-
216-

0 commit comments

Comments
 (0)