Skip to content

docs(agents): add Prime Agent page - #335

Open
OndrejDrapalik wants to merge 1 commit into
mainfrom
docs/prime-agent-page
Open

docs(agents): add Prime Agent page#335
OndrejDrapalik wants to merge 1 commit into
mainfrom
docs/prime-agent-page

Conversation

@OndrejDrapalik

Copy link
Copy Markdown
Contributor

What

Adds a docs page for Prime Agent, Prime Intellect's open-source coding and research agent (MIT, persistent IPython kernel + recursive subagents).

  • docs/agents/prime.mdx — new page
  • images/icons/prime.svg — Prime Intellect mark, dark rounded-square treatment matching pi.svg
  • docs.json — nav entry after docs/agents/pi

Page follows the grok.mdx / amp.mdx shape exactly: intro → CLI → Run headless (+ sandbox-isolation <Note>) → cloned-repo example → Streaming JSON → Session management → Build a custom template → Related guides.

Why

Prime Agent has no approval prompts and no auto-approve flag — it executes model-generated Python and project commands with the permissions of the user it runs as. Upstream's README says this outright and recommends running it in an external sandbox, so E2B is the vendor-endorsed way to run it unattended. The <Note> is adapted from grok/amp accordingly (they describe an auto-approve flag, which Prime Agent doesn't have).

Slug choice

agents/prime, title "Prime Agent". Sibling pages are named after the template (grok, amp, pi), and the template is prime.

Template status

⚠️ The prime template is currently org-internal (US prod). The public naked alias lands with the customer-starter-templates PR + Orbit promotion — separate track. This page should not be merged until the template is public, hence draft.

Verified against upstream (PrimeIntellect-ai/prime-agent@main)

  • -p, --print = "Print response and exit" (docs/usage.md, Modes table)
  • --mode json / --mode rpc; JSONL event names and shapes (toolName, message.role, agent_end.messages, leading {"type":"session",...} header) — docs/json.md
  • --provider <name>, --model <pattern>docs/usage.md, Model Options
  • -c/--continue, -r/--resume [path|id], prime-agent agents, attach <agent>docs/usage.md, Session Options + Shell Commands
  • Env vars ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, XAI_API_KEY, OPENROUTER_API_KEY, PRIME_API_KEYdocs/providers.md
  • /login first-run flow (Claude Pro/Max, ChatGPT Plus/Pro, GitHub Copilot) — docs/quickstart.md

Not yet verified — please flag if you disagree

  1. prime-agent -c -p "..." in the Session management example. Both flags are documented, but upstream never shows them combined. Should be confirmed with a live run; fallback is -r <id> -p "...".
  2. --mode json with a positional prompt under cd /home/user/repo — upstream shows prime-agent --mode json "prompt"; the example prepends cd, same as the amp page. Worth one live run.
  3. Template publicity, per above.

Document running Prime Agent (PrimeIntellect-ai/prime-agent) in an E2B
sandbox via the pre-built `prime` template: CLI, headless `-p` runs,
cloned-repo example, `--mode json` event stream, session management, and
building a custom template on top.

Adds the Prime Intellect mark as images/icons/prime.svg and the nav entry
after docs/agents/pi.
@mintlify

mintlify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
e2b 🟢 Ready View Preview Aug 6, 2026, 5:45 PM

@matthewlouisbrockman matthewlouisbrockman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - think that someone pointed out that the /agents in the docs section is getting big, we're gonna need to figure out how to chunk that up but outside the scope of this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants