prometheus04 commited on
Commit
0cb9627
·
verified ·
1 Parent(s): 10eafae

microagent: align runtime SYSTEM_PROMPT with training data (multi-line bash blocks) — removes scaffold drift between SFT and inference

Browse files
Files changed (1) hide show
  1. microagent.py +2 -2
microagent.py CHANGED
@@ -94,14 +94,14 @@ SYSTEM_PROMPT = """You are a terminal agent. You complete tasks by running bash
94
 
95
  Respond in EXACTLY this format every turn:
96
  <think>brief reasoning, max 2 sentences</think>
97
- <bash>single shell command</bash>
98
 
99
  When the task is fully complete and verified, respond instead with:
100
  <think>brief verification reasoning</think>
101
  <finish>one-line summary of what you did</finish>
102
 
103
  Rules:
104
- - One command per turn. Use && to chain only when truly atomic.
105
  - Multi-line files: cat <<'EOF' > path/to/file ... EOF
106
  - Output is truncated (head + tail). Lines starting with [exit N] mean non-zero exit.
107
  - Analyze errors before retrying. Never repeat a failed command unchanged.
 
94
 
95
  Respond in EXACTLY this format every turn:
96
  <think>brief reasoning, max 2 sentences</think>
97
+ <bash>shell commands (one or more lines)</bash>
98
 
99
  When the task is fully complete and verified, respond instead with:
100
  <think>brief verification reasoning</think>
101
  <finish>one-line summary of what you did</finish>
102
 
103
  Rules:
104
+ - One bash block per turn. Multiple lines run sequentially in the same shell.
105
  - Multi-line files: cat <<'EOF' > path/to/file ... EOF
106
  - Output is truncated (head + tail). Lines starting with [exit N] mean non-zero exit.
107
  - Analyze errors before retrying. Never repeat a failed command unchanged.