Skip to content

Instantly share code, notes, and snippets.

@vasek
Created July 18, 2026 13:00
Show Gist options
  • Select an option

  • Save vasek/d852acfb1b089f75ee034f95fc7c365e to your computer and use it in GitHub Desktop.

Select an option

Save vasek/d852acfb1b089f75ee034f95fc7c365e to your computer and use it in GitHub Desktop.
Rohlik agent setup
[mcp_servers.rohlik_agent]
command = "/Users/vasek/Library/pnpm/bin/codex"
args = ["mcp-server"]
cwd = "/Users/vasek/.codex-rohlik-workspace"
startup_timeout_sec = 30
tool_timeout_sec = 300
default_tools_approval_mode = "approve"
[mcp_servers.rohlik_agent.env]
CODEX_HOME = "/Users/vasek/.codex-rohlik"
model = "gpt-5.6-terra"
model_reasoning_effort = "xhigh"
personality = "pragmatic"
service_tier = "fast"
mcp_oauth_credentials_store = "file"
approval_policy = "on-request"
approvals_reviewer = "auto_review"
sandbox_mode = "read-only"
[features]
memories = true
goals = false
multi_agent = false
[projects."/Users/vasek/.codex-rohlik-workspace"]
trust_level = "trusted"
[mcp_servers.rohlik]
url = "https://mcp.rohlik.cz/mcp"
oauth_resource = "https://mcp.rohlik.cz/mcp"
default_tools_approval_mode = "approve"
tool_timeout_sec = 180
...
## 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:
```bash
CODEX_HOME=/Users/vasek/.codex-rohlik codex mcp login rohlik --scopes openid,email,roles
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment