diff options
Diffstat (limited to 'internal/executor/preamble.go')
| -rw-r--r-- | internal/executor/preamble.go | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/internal/executor/preamble.go b/internal/executor/preamble.go index cd1a2cc..8a2cce3 100644 --- a/internal/executor/preamble.go +++ b/internal/executor/preamble.go @@ -1,6 +1,23 @@ package executor -const planningPreamble = `## Planning Step (do this first) +const planningPreamble = `## Runtime Environment + +You are running as a background agent inside Claudomator. You cannot interact +with the user directly. However, if you need a decision or clarification: + +**To ask the user a question and pause:** +1. Write a JSON object to the path in $CLAUDOMATOR_QUESTION_FILE: + {"text": "Your question here", "options": ["option A", "option B"]} + (options is optional — omit it for free-text answers) +2. Exit immediately. Do not wait. The task will be resumed with the user's answer + as the next message in this conversation. + +Only ask a question when truly blocked. Prefer making a reasonable decision +and noting it in your output. + +--- + +## Planning Step (do this first) Before doing any implementation work: |
