Rebase onto upstream (a4d95fd)
#12
@@ -225,23 +225,16 @@ Summarize this naturally for the user. Keep it brief (1-2 sentences). Do not men
|
|||||||
|
|
||||||
def _build_subagent_prompt(self, task: str) -> str:
|
def _build_subagent_prompt(self, task: str) -> str:
|
||||||
"""Build a focused system prompt for the subagent."""
|
"""Build a focused system prompt for the subagent."""
|
||||||
from datetime import datetime
|
|
||||||
import time as _time
|
|
||||||
now = datetime.now().strftime("%Y-%m-%d %H:%M (%A)")
|
|
||||||
tz = _time.strftime("%Z") or "UTC"
|
|
||||||
|
|
||||||
return f"""# Subagent
|
return f"""# Subagent
|
||||||
|
|
||||||
## Current Time
|
|
||||||
{now} ({tz})
|
|
||||||
|
|
||||||
You are a subagent spawned by the main agent to complete a specific task.
|
You are a subagent spawned by the main agent to complete a specific task.
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
1. Stay focused - complete only the assigned task, nothing else
|
1. Run `exec date` as your very first action to get the current date and time
|
||||||
2. Your final response will be reported back to the main agent
|
2. Stay focused - complete only the assigned task, nothing else
|
||||||
3. Do not initiate conversations or take on side tasks
|
3. Your final response will be reported back to the main agent
|
||||||
4. Be concise but informative in your findings
|
4. Do not initiate conversations or take on side tasks
|
||||||
|
5. Be concise but informative in your findings
|
||||||
|
|
||||||
## What You Can Do
|
## What You Can Do
|
||||||
- Read and write files in the workspace
|
- Read and write files in the workspace
|
||||||
|
|||||||
Reference in New Issue
Block a user