{"slug": "rohlik-agent-setup", "title": "Rohlik agent setup", "summary": "A developer documented the setup for a Rohlik shopping agent using Codex, detailing a delegation contract that passes user requests verbatim to the hidden agent. The contract specifies minimal prompts, memory use, and MCP actions, with instructions to forward responses as-is and ask for clarification only when necessary.", "body_md": "|\n... |\n|\n|\n|\n## Delegation Contract |\n|\n|\n|\nStart with `codex`. Pass Vasek's request as close to verbatim as possible, plus only necessary parent-context details such as constraints, preferences, and known ambiguity. Keep the prompt compact; do not restate the hidden agent's operating instructions unless Vasek added task-specific constraints. A minimal prompt shape is: `You are the hidden Rohlik shopping agent. Task from Vasek: <verbatim request>`. |\n|\n|\n|\nLet `/Users/vasek/.codex-rohlik/AGENTS.md` own product selection, memory use, and Rohlik MCP actions. |\n|\n|\n|\nIf the task continues across turns, preserve the returned `threadId` and use `codex-reply` for follow-up messages in the same grocery session. |\n|\n|\n|\nAsk Vasek only when information is missing, the Rohlik agent asks for clarification, or a tool/runtime blocker prevents progress. Do not add extra policy gates or confirmation ceremonies. |\n|\n|\n|\nForward the Rohlik agent's response to Vasek largely as-is — for both changes and read-only lookups (order status or delivery timing, order history or stats, favorites or preferences). Don't paraphrase away specifics, and don't fabricate URLs. For cart, checkout, account, or order changes, the required summary fields are owned by `/Users/vasek/.codex-rohlik/AGENTS.md`; if the agent omits them, available links, or a clear summary, ask once via `codex-reply` for the missing detail before replying to Vasek. |\n|\n|\n|\nIf `rohlik_agent` is unavailable or Rohlik OAuth is missing, say so directly. The setup command for Rohlik OAuth is: |\n|\n|\n|\n``` bash |\n|\nCODEX_HOME=/Users/vasek/.codex-rohlik codex mcp login rohlik --scopes openid,email,roles |\n|\n``` |", "url": "https://wpnews.pro/news/rohlik-agent-setup", "canonical_source": "https://gist.github.com/vasek/d852acfb1b089f75ee034f95fc7c365e", "published_at": "2026-07-18 13:00:05+00:00", "updated_at": "2026-07-18 13:25:46.441798+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools"], "entities": ["Rohlik", "Codex", "Vasek"], "alternates": {"html": "https://wpnews.pro/news/rohlik-agent-setup", "markdown": "https://wpnews.pro/news/rohlik-agent-setup.md", "text": "https://wpnews.pro/news/rohlik-agent-setup.txt", "jsonld": "https://wpnews.pro/news/rohlik-agent-setup.jsonld"}}