Repository navigation
fix(grok): pass --rules as system prompt text, not path - #97
Merged
Merged
Conversation
Grok Build 1.0.89 takes rules text on --rules, not a file path. Read system.md and pass those bytes as one argv element so the system prompt reaches the model. Co-authored-by: rimusz <rimusz@users.noreply.github.com>
Linux still caps one --rules argument at 32 pages. macOS uses ARG_MAX only, so the page-size binding is computed on Linux alone. Co-authored-by: rimusz <rimusz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Grok CLI 1.0.89
--rulestakes the system prompt as text. atr passed the path tosystem.md, so atr's system prompt never reached Grok. Seen on prod Mini session970c35f0.Fix
Read
system.mdand pass those bytes as one argv element. Refuse NUL or over-long text before spawn. Othersystem_prompt_flagvalues are unchanged (still a path).Tests
993 pass on the branch (Cursor cloud agent bc-b176bf6b), including
grok_rules_argv_is_file_text_not_path.Docs
Docs updated for the Grok
--rulestext contract.Branch
termo/grok-rules-textatabc7aa046da9062f6a7496a5e3dfe00b3f064f9e.