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
// Single grok prompt residual (CL-8296): the finish-bias bullets plus the
113
+
// three ceremony lines from the CL-7768 design (no git, no pre-plan, verify
114
+
// once), merged into one block with no line twice. The don't re-read idea
115
+
// appears exactly once (the "re-open paths" bullet) — it is not repeated.
116
+
// Grok-only: detectModelFamily has no glm family, so per the <30min rule no
117
+
// GLM row ships here. The text lives here once; buildGrokLeafAntiThrashNote
118
+
// (prompts.ts) returns it verbatim, so the prompt carries exactly one grok
119
+
// residual and the sibling CL-8297 hook resolves to the same block.
120
+
constGROK_PROMPT_RESIDUAL=[
121
+
"Finish bias (xAI / Grok worker):",
122
+
"- Once you can answer the dispatch brief, prefer the structured report over another speculative tool call.",
123
+
"- If the next call would only re-open paths you already read, write the report instead.",
124
+
"- When the dispatch brief's done-definition is met, write the report envelope instead of making one more search or micro-edit.",
125
+
"- Route file and web work through the dedicated tools, never run_shell — mining showed grok reaching for shell first when a typed tool already covered the job.",
126
+
"- Never run git add, git commit, git stash, or any other state-changing git command unless the user asks.",
127
+
"- Do not narrate a plan before acting on a small task; act, then report.",
128
+
"- Verify with the test command once at the end, not after every edit.",
129
+
].join("\n");
130
+
131
+
/**
132
+
* Minimal per-family prompt residual hook. The sibling CL-8297 owns the
133
+
* canonical hook; this local copy keeps the branch self-contained so tests
134
+
* pass standalone — the two reconcile when CL-8297 lands.
"- Once you can answer the dispatch brief, prefer the structured report over another speculative tool call.",
518
-
"- If the next call would only re-open paths you already read, write the report instead.",
519
-
"- When the dispatch brief's done-definition is met, write the report envelope instead of making one more search or micro-edit.",
520
-
"- Route file and web work through the dedicated tools, never run_shell — mining showed grok reaching for shell first when a typed tool already covered the job.",
0 commit comments