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 dd41f17
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Peli
committed
Require crypto-generated delimiters for agent heredocs
Use fresh quoted RIG_ delimiters, check for complete-line collisions, and preserve literal closing tokens in guidance and launcher help.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,12 +97,19 @@ Its [integration guide](skills/rig/references/runtime.md#choosing-an-integration
97
97
compares engine capabilities, model selection, tool ownership, and output
98
98
enforcement.
99
99
100
+
For every heredoc below, replace `RIG_<generated-hex>` with a fresh `RIG_`
101
+
delimiter generated using `node:crypto`'s `randomBytes(16).toString("hex")`.
102
+
Check it is not an entire line of the contents, single-quote the opener, and
103
+
repeat the exact unquoted delimiter alone on the closing line. See the
104
+
[inline-program guide](skills/rig/references/runtime.md#inline-programs) for the
105
+
generation command; do not reuse fixed delimiters or shell variables.
106
+
100
107
**Design on the fly** — just describe what you want as a string and let the model figure out the rest:
101
108
102
109
```bash
103
-
node skills/rig/run.ts <<'RIG'
110
+
node skills/rig/run.ts <<'RIG_<generated-hex>'
104
111
export default "Run npm test, diagnose any failures, apply the smallest safe fix, and repeat up to 3 times.";
105
-
RIG
112
+
RIG_<generated-hex>
106
113
```
107
114
108
115
Or ask Copilot (with the skill) to generate a full program foryou. Describe your goalin natural language and Copilot returns a runnable `rig` markdown fence like this:
@@ -137,17 +144,17 @@ export default ralfLoop;
137
144
Pass the fence contents directly to the launcher with a heredoc:
0 commit comments