Introduce a behaviour Configuration Key
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
- I'm proposing a new top-level configuration key,
behaviour, to resolve conflicts between the system prompt and a behavior. This change would organize the agent's configuration, making it more modular and easier for users to create custom behaviors as well.
The proposed structure would look like this:
{
"behaviour": {
"agent": {
"promptFile": "path/to/prompt.txt" // if no `promptFile` for builtin provider is provided, use the default one
},
"plan": {...}
}
}
- Move most of the instructions from eca_base.txt to agent_behavior.txt and remove any configuration related to one common system prompt.
Motivation: While creating the prompt for the plan behavior, I noticed it conflicted with some instructions in the system prompt. As I started moving those elements into the agent behavior prompt, there was very little left in the original system prompt, leading me to believe a file for the main system prompt is now unnecessary.
RELATED FEATURES: I believe that adding some configuration options (e.g. defaultModel, ...) might solve those: https://github.com/editor-code-assistant/eca/issues/58 https://github.com/editor-code-assistant/eca/issues/52
Simillar to this implementation - https://opencode.ai/docs/modes/
@ericdallo WDYT?
Do you agree that there is no reason to keep a single system prompt with the {behaviour} placeholder?
-
I'm afraid the instruction for users would be confusing if we keep it: e.g. "If you have a custom system prompt, do not forget at {behaviour} placeholder otherwise behavior modes won't work."
-
I've also noticed that markdown and tool calls work fine even when I don't use eca_base.txt.
@zikajk yeah that config sounds good. About eca_base, I'm ok if we keep with good default prompts, like the eca I traduction, how to communicate etc. if we intend to solve that completely moving to behaviors, I think it's ok
Done!