Skip to content

Commit f159ef4

Browse files
committed
drop in favor of behaviors customizations in the future.
1 parent 3c86c6e commit f159ef4

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- drop `agentFileRelativePath` in favor of behaviors customizations in the future.
6+
57
## 0.39.0
68

79
- Fix session-tokens in usage notifications.

docs/configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ There are 3 possible ways to configure rules following this order of priority:
200200
defaultBehavior?: string;
201201
welcomeMessage?: string;
202202
};
203-
agentFileRelativePath?: string;
204203
index?: {
205204
ignoreFiles: [{
206205
type: string;
@@ -243,7 +242,6 @@ There are 3 possible ways to configure rules following this order of priority:
243242
"defaultBehavior": "agent"
244243
"welcomeMessage" : "Welcome to ECA!\n\nType '/' for commands\n\n"
245244
},
246-
"agentFileRelativePath": "AGENTS.md"
247245
"index" : {
248246
"ignoreFiles" : [ {
249247
"type" : "gitignore"

docs/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Here are the current supported contexts types:
6666

6767
#### AGENTS.md automatic context
6868

69-
ECA will always include if found the `AGENTS.md` file (configurable via `agentFileRelativePath` config) as context, searching for both `/project-root/AGENT.md` and `~/.config/eca/AGENT.md`.
69+
ECA will always include if found the `AGENTS.md` file as context, searching for both `/project-root/AGENTS.md` and `~/.config/eca/AGENTS.md`.
7070

7171
You can ask ECA to create/update this file via `/init` command.
7272

src/eca/config.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
:mcpServers {}
6363
:chat {:defaultBehavior "agent"
6464
:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}
65-
:agentFileRelativePath "AGENTS.md"
6665
:index {:ignoreFiles [{:type :gitignore}]
6766
:repoMap {:maxTotalEntries 800
6867
:maxEntriesPerDir 50}}})

src/eca/features/context.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
(defn ^:private agents-file-contexts
1717
"Search for AGENTS.md file both in workspaceRoot and global config dir."
1818
[db config]
19-
(let [local-agent-files (keep (fn [{:keys [uri]}]
20-
(let [agent-file (fs/path (shared/uri->filename uri) (:agentFileRelativePath config))]
19+
;; TODO make it customizable by behavior
20+
(let [agent-file "AGENTS.md"
21+
local-agent-files (keep (fn [{:keys [uri]}]
22+
(let [agent-file (fs/path (shared/uri->filename uri) agent-file)]
2123
(when (fs/readable? agent-file)
2224
(fs/canonicalize agent-file))))
2325
(:workspace-folders db))

0 commit comments

Comments
 (0)