agent-office 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/routes.js +38 -0
- package/package.json +1 -1
package/dist/server/routes.js
CHANGED
|
@@ -102,6 +102,20 @@ export function generateSystemPrompt(name, status, humanName, humanDescription,
|
|
|
102
102
|
` Who to respond to when done: <respond-to>`,
|
|
103
103
|
``,
|
|
104
104
|
`════════════════════════════════════════════════════════`,
|
|
105
|
+
` IMPORTANT: BASH ESCAPING IN COMMAND ARGUMENTS`,
|
|
106
|
+
`════════════════════════════════════════════════════════`,
|
|
107
|
+
``,
|
|
108
|
+
` The shell processes --body, --message, and --respond-to`,
|
|
109
|
+
` before the CLI receives them. Be mindful of bash special`,
|
|
110
|
+
` characters in these values:`,
|
|
111
|
+
` $var, \${x} variable expansion → escape as \\$ or use single quotes`,
|
|
112
|
+
` \`cmd\`, $(x) command substitution → escape backticks or use single quotes`,
|
|
113
|
+
` !, \\, " history/escape chars → escape or use single quotes`,
|
|
114
|
+
` The safest option is always single quotes:`,
|
|
115
|
+
` --body 'your message here'`,
|
|
116
|
+
` Single quotes prevent all shell interpretation.`,
|
|
117
|
+
``,
|
|
118
|
+
`════════════════════════════════════════════════════════`,
|
|
105
119
|
` IMPORTANT: YOUR SESSIONS ARE PRIVATE`,
|
|
106
120
|
`════════════════════════════════════════════════════════`,
|
|
107
121
|
``,
|
|
@@ -135,6 +149,30 @@ export function generateSystemPrompt(name, status, humanName, humanDescription,
|
|
|
135
149
|
` jobs. Run 'agent-office worker cron list ${token}' to`,
|
|
136
150
|
` get started.`,
|
|
137
151
|
``,
|
|
152
|
+
`════════════════════════════════════════════════════════`,
|
|
153
|
+
` IMPORTANT: WAIT FOR A MESSAGE BEFORE DOING ANYTHING`,
|
|
154
|
+
`════════════════════════════════════════════════════════`,
|
|
155
|
+
``,
|
|
156
|
+
` When you first start up, do nothing. Do not send messages,`,
|
|
157
|
+
` do not begin tasks, do not check in. Simply wait until`,
|
|
158
|
+
` you receive a message assigning you work.`,
|
|
159
|
+
``,
|
|
160
|
+
`════════════════════════════════════════════════════════`,
|
|
161
|
+
` IMPORTANT: AVOID MESSAGE SPIRALS WITH COWORKERS`,
|
|
162
|
+
`════════════════════════════════════════════════════════`,
|
|
163
|
+
``,
|
|
164
|
+
` Be careful not to get into back-and-forth messaging loops`,
|
|
165
|
+
` with coworkers. Each message you send triggers their session`,
|
|
166
|
+
` which may trigger another message back to you, and so on.`,
|
|
167
|
+
` To avoid spiraling out of control:`,
|
|
168
|
+
` • Consolidate your thoughts — send one clear, complete`,
|
|
169
|
+
` message rather than multiple short ones.`,
|
|
170
|
+
` • Do not send a message just to acknowledge receipt.`,
|
|
171
|
+
` • If a coworker's reply doesn't require action from you,`,
|
|
172
|
+
` do not respond.`,
|
|
173
|
+
` • When delegating, give full context upfront so the`,
|
|
174
|
+
` coworker doesn't need to ask follow-up questions.`,
|
|
175
|
+
``,
|
|
138
176
|
].join("\n");
|
|
139
177
|
}
|
|
140
178
|
/** Load human_name and human_description from the config table. */
|