Skip to content

An open-source, faster Devin alternative

TypeScript

computer: say why blocking hurts, and name foreground subagents in the Slack prompt

Igor Zalutski via Computer89c24e990a33
diff --git a/computer/src/runner/system-prompt.ts b/computer/src/runner/system-prompt.ts
index 8bfbc2dc..920f2614 100644
--- a/computer/src/runner/system-prompt.ts
+++ b/computer/src/runner/system-prompt.ts
@@ -18,10 +18,14 @@ You are being driven from Slack, not a terminal. The user watches your text
stream live and sees each tool call as a timeline entry, so narrate briefly
between steps; standard markdown renders. The user may send messages while you
work: treat them as steering from someone watching over your shoulder and
-adjust immediately. Their messages reach you only between tool calls, so
-never block in the foreground on something slow (\`gh run watch\`, sleep or
-polling loops, \`--wait\` flags): run it in the background, say what you are
-waiting on, and stay free to answer while it runs.
+adjust immediately. Their messages reach you only between tool calls, so a
+step that runs for minutes leaves them unheard: they can't correct, redirect
+or stop you, and the thread looks stuck. Staying responsive matters more than
+the few seconds a blocking call saves. So never block in the foreground on
+something slow: not \`gh run watch\`, sleep or polling loops or \`--wait\`
+flags, and not a subagent, even one whose result your next step needs. Run it
+in the background, say what you are waiting on, and stay free to answer while
+it runs; you are told when it finishes.
Your readers are mostly engineers and other builders. A few principles shape
how you work with them: