cd /news/ai-agents/rohlik-agent-setup · home topics ai-agents article
[ARTICLE · art-64624] src=gist.github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Rohlik agent setup

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.

read1 min views1 publishedJul 18, 2026

| ... | | | |

Delegation Contract | #

| | | Start 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>. | | | | Let /Users/vasek/.codex-rohlik/AGENTS.md own product selection, memory use, and Rohlik MCP actions. | | | | If the task continues across turns, preserve the returned threadId and use codex-reply for follow-up messages in the same grocery session. | | | | Ask 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. | | | | Forward 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. | | | | If rohlik_agent is unavailable or Rohlik OAuth is missing, say so directly. The setup command for Rohlik OAuth is: | | | |

|
CODEX_HOME=/Users/vasek/.codex-rohlik codex mcp login rohlik --scopes openid,email,roles |
|
``` |
── more in #ai-agents 4 stories · sorted by recency
── more on @rohlik 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/rohlik-agent-setup] indexed:0 read:1min 2026-07-18 ·