Improve dynamic spawn_agent prompt

未關閉
#671 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍

研究方向

The config override for the spawn_agent prompt is read in src/eca/features/tools.clj near line 372, and the dynamic agent list is built in src/eca/features/tools/agent.clj near line 521. Start by tracing where the built list is joined to the base prompt, and why that join is skipped when the prompt is overridden. Done means a custom spawn_agent prompt in config.json still gets the list of agents from ~/.config/eca/agents/ appended. The issue thread has no decision on where the list should be placed, so confirm that with a maintainer first.

由索引模型根據 Issue 內容生成。

描述

The spawn_agent tool generates a dynamic list of agents to create the prompt. There is a markdown prompt file, and eca appends the lists of agents it builds from markdown files in the ~/.config/eca/agents/ folder. If I replace the prompt for spawn_agent in my local config.json, the list of agents is not appended to my custom prompt. The override for the prompt does not trigger the appending of the list of dynamic agents. So to override the spawn_agent prompt, I have to manually add all the agents to my prompt or else eca will not see them. I would like eca to allow to override the spawn_agent prompt, but still append the list of dynamic agents.

Essentially the spawn_agent prompt is partially generated, and if I use the normal override from config, the generated part is never appended.

The override is at src/eca/features/tools.clj:372
The agent build is at src/eca/features/tools/agent.clj:521

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

主要語言
Clojure
星號
1k
分支
82
平均合併
1 天 21 小時
30 天內合併 PR
25

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

editor-code-assistant/eca 的其他 Issue

查看 editor-code-assistant/eca 的全部 Issue

相似的 Issue

更多 Clojure Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。