Skip to content

Commit 234999f

Browse files
committed
Minor docs
1 parent c8844f2 commit 234999f

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

docs/configuration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,11 @@ To configure, add your OTLP collector config via `:otlp` map following [otlp aut
560560
"toolCall": {
561561
"approval": {
562562
"byDefault": "ask",
563-
"allow": {"directory_tree": {},
564-
"read_file": {},
565-
"grep": {},
566-
"preview_file_change": {},
567-
"editor_diagnostics": {}},
563+
"allow": {"eca__directory_tree": {},
564+
"eca__read_file": {},
565+
"eca__grep": {},
566+
"eca__preview_file_change": {},
567+
"eca__editor_diagnostics": {}},
568568
"ask": {},
569569
"deny": {}
570570
},
@@ -583,7 +583,7 @@ To configure, add your OTLP collector config via `:otlp` map following [otlp aut
583583
"disabledTools": ["preview_file_change"]},
584584
"plan": {"systemPromptFile": "prompts/plan_behavior.md",
585585
"disabledTools": ["edit_file", "write_file", "move_file"],
586-
"toolCall": {"approval": {"deny": {"shell_command":
586+
"toolCall": {"approval": {"deny": {"eca__shell_command":
587587
{"argsMatchers": {"command" [".*>.*",
588588
".*\\|\\s*(tee|dd|xargs).*",
589589
".*\\b(sed|awk|perl)\\s+.*-i.*",

docs/features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Behavior affect the prompt passed to LLM and the tools to include, ECA allow to
2828
ECA leverage tools to give more power to the LLM, this is the best way to make LLMs have more context about your codebase and behave like an agent.
2929
It supports both MCP server tools + ECA native tools.
3030

31+
When passing tools to LLM, ECA will always prefix the tool with the server name, like `eca__directory_tree` or `my-mcp__foo_bar`.
32+
3133
!!! info "Approval / permissions"
3234

3335
By default, ECA ask to approve all non-read only tools or mcp tools, you can easily configure that, check `toolCall approval` [config](./configuration.md) or try the `plan` behavior.

src/eca/config.clj

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@
8484
:disabledTools ["preview_file_change"]}
8585
"plan" {:systemPromptFile "prompts/plan_behavior.md"
8686
:disabledTools ["edit_file" "write_file" "move_file"]
87-
:toolCall {:approval {:allow {"shell_command"
87+
:toolCall {:approval {:allow {"eca__shell_command"
8888
{:argsMatchers {"command" ["pwd"]}}
89-
"preview_file_change" {}
90-
"grep" {}
91-
"read_file" {}
92-
"directory_tree" {}}
93-
:deny {"shell_command"
89+
"eca__preview_file_change" {}
90+
"eca__grep" {}
91+
"eca__read_file" {}
92+
"eca__directory_tree" {}}
93+
:deny {"eca__shell_command"
9494
{:argsMatchers {"command" ["[12&]?>>?\\s*(?!/dev/null($|\\s))\\S+"
9595
".*>.*",
9696
".*\\|\\s*(tee|dd|xargs).*",
@@ -101,7 +101,7 @@
101101
".*-c\\s+[\"'].*open.*[\"']w[\"'].*",
102102
".*bash.*-c.*>.*"]}}}}}}}
103103
:defaultModel nil
104-
:hooks {}
104+
:hooks {}
105105
:rules []
106106
:commands []
107107
:disabledTools []
@@ -139,7 +139,6 @@
139139
:rewrite {:systemPromptFile "prompts/rewrite.md"}
140140
:netrcFile nil
141141
:env "prod"})
142-
143142

144143
(def ^:private fallback-behavior "agent")
145144

0 commit comments

Comments
 (0)