Skip to content

Add Grok 4.6 and tighten subagent guidance - #1331

Open
mgaruccio wants to merge 2 commits into
PrimeIntellect-ai:mainfrom
mgaruccio:add-grok-46-and-subagent-guidance
Open

Add Grok 4.6 and tighten subagent guidance#1331
mgaruccio wants to merge 2 commits into
PrimeIntellect-ai:mainfrom
mgaruccio:add-grok-46-and-subagent-guidance

Conversation

@mgaruccio

@mgaruccio mgaruccio commented Aug 13, 2026

Copy link
Copy Markdown

Summary

  • Add xai/grok-4.6 to the built-in catalog on the Responses API, matching xAI's published model id, 500k context, image input, and low/medium/high/xhigh reasoning (reasoning cannot be disabled).
  • Tighten subagent prompt guidance so parents delegate context-heavy exploration and children return compact evidence.

Test plan

  • cd packages/ai && npx tsx ../../node_modules/vitest/dist/cli.js --run test/xai-models.test.ts
  • cd packages/coding-agent && npx tsx ../../node_modules/vitest/dist/cli.js --run test/system-prompt.test.ts
  • ./prime-agent.sh model list grok-4.6 lists xai grok-4.6 500K 500K yes yes

Note

Add xAI Grok 4.6 model and tighten subagent prompt guidance

  • Adds grok-4.6 to the xAI model catalog via the OpenAI Responses API with image input, reasoning enabled, xhigh thinking level support, 500k context/token limits, and pricing of $2/$6 per million input/output tokens.
  • Extends subagent guidance in rlm.ts to treat sub-agents as context boundaries, prohibit forwarding full conversation history, and require compact returns via a message or file.
  • Adds a child agent doctrine line enforcing compact replies in recursion-disabled contexts.

Macroscope summarized 1a1dbd3.

Register grok-4.6 on the Responses API with the same reasoning map, image input, and published pricing as the local Pi models.json entry.
Keep context-heavy exploration in child agents and require brief, evidence-based returns instead of loading raw material into the parent loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant