eca icon indicating copy to clipboard operation
eca copied to clipboard

Introduce a behaviour Configuration Key

Open zikajk opened this issue 1 year ago • 3 comments

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

  1. 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": {...}
  }
}
  1. 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/

zikajk avatar Aug 24 '25 12:08 zikajk

@ericdallo WDYT?

Do you agree that there is no reason to keep a single system prompt with the {behaviour} placeholder?

  1. 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."

  2. I've also noticed that markdown and tool calls work fine even when I don't use eca_base.txt.

zikajk avatar Aug 24 '25 12:08 zikajk

@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

ericdallo avatar Aug 24 '25 13:08 ericdallo

Done!

ericdallo avatar Sep 07 '25 22:09 ericdallo