MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / buildSteerMessage

Function buildSteerMessage

src/agent/steering.ts:35–44  ·  view source on GitHub ↗
(note: string)

Source from the content-addressed store, hash-verified

33 * step, and NOT to throw away correct work already done.
34 */
35export function buildSteerMessage(note: string): string {
36 const body = note.trim() || '(the user sent an empty note — ask what they meant only if you were unsure, otherwise continue)';
37 return [
38 '[STEERING NOTE — the user added this mid-task, without stopping you.]',
39 body,
40 '[Weigh it now. If it changes what you should do next, adjust course and say so in one line. ' +
41 'If it only confirms your current plan, acknowledge briefly and keep going. ' +
42 'Do not restart work that is already done correctly.]',
43 ].join('\n');
44}

Callers 2

steering.test.tsFile · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected