You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1fd1128
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/opencode/src/tool/task.txt
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,11 @@ Usage notes:
23
23
5. Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent
24
24
6. If the agent description mentions that it should be used proactively, then you should try your best to use it without the user having to ask for it first. Use your judgement.
25
25
26
+
Task lifecycle management:
27
+
- If new information makes a running task obsolete, cancel it with cancel_task before launching a replacement. Do not leave stale tasks running.
28
+
- Use check_task to inspect task status before deciding to cancel or wait.
29
+
- When cancelling and re-launching, provide the updated context in the new task's prompt.
30
+
26
31
Example usage (NOTE: The agents below are fictional examples for illustration only - use the actual agents listed above):
0 commit comments