branch: externals/ellama
commit 8f2ab35b197b863fbc2b9905645d1adb9cc63075
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    Add configuration options for sub-agent auto-continue behavior
    
    Added two new customization variables to control sub-agent 
auto-continuation:
    `ellama-subagent-default-max-steps` for setting the maximum number of
    continuation steps, and `ellama-subagent-continue-prompt` for customizing 
the
    prompt sent to sub-agents to keep them working.
---
 ellama.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/ellama.el b/ellama.el
index 4ce5142f05..ba26fd6d35 100644
--- a/ellama.el
+++ b/ellama.el
@@ -468,6 +468,16 @@ It should be a function with single argument generated 
text string."
   "Enable debug."
   :type 'boolean)
 
+(defcustom ellama-subagent-default-max-steps 30
+  "Default maximum number of auto-continue steps for a sub-agent."
+  :type 'integer
+  :group 'ellama)
+
+(defcustom ellama-subagent-continue-prompt "Task not marked complete. Continue 
working. If you are done, YOU MUST use the `report_result` tool."
+  "Prompt sent to sub-agent to keep the loop going."
+  :type 'string
+  :group 'ellama)
+
 (defun ellama--set-file-name-and-save ()
   "Set buffer file name and save buffer."
   (interactive)

Reply via email to