gori has no chat window. The model runs outside gori and connects over MCP. You bring the model and the client, and gori exposes the project as tools, so you choose what runs and your traffic isn't shipped anywhere you didn't intend. Sends and important state changes are tagged as agent activity in the same TUI you're already watching, and read-only lookups are not presented as mutations. This playbook connects an agent to a project you already captured and puts it to work in about ten minutes, most of it a one-time install.
Before you begin. You need an existing project with captured traffic (ideally the one from the earlier playbooks) and an MCP-capable client (Claude Code, Claude Desktop, OpenAI Codex, Antigravity, Grok, Hermes, and others). An agent can send real requests, so keep the project scoped to a target you are authorized to test.
1. Install the MCP server
gori mcp is a JSON-RPC server the client spawns over stdio. The client sends requests on STDIN and reads results on STDOUT. gori can write each client's config for you:
gori mcp --install-claude-code # Claude Code
Other hosts install the same way: --install-claude (Claude Desktop), --install-codex (OpenAI Codex), --install-agy (Antigravity), --install-grok (Grok), --install-hermes (Hermes), --install-pi (Pi, which reads its MCP servers through an adapter package). Each command prints the file it wrote and the launch command it recorded. Codex and Grok write a TOML [mcp_servers.gori] table and Hermes a YAML mcp_servers: entry. The other clients use JSON. Restart the client (or reopen the session) afterward so it reloads its MCP servers.
Three choices are recorded in that command. Read-only vs. full access: by default the agent also gets the action tools (send_request, issue and note writes). Add --read-only to expose only the read tools. How many tools: the full catalogue sits in the model's context for the whole session, so the installer writes the small --tools=@recon set unless you pass --tools. Install with --tools='*' for every tool (the workbench, rules, the intercept mutators) or --tools=@minimal for less. Choosing which tools are exposed compares them. Which project: run the install from inside your engagement's Git repository and gori path-binds that workspace to its own project. From anywhere else the server starts unbound and the agent picks a project over tools. Name one with --project (recorded as the name you typed) or --db (recorded as an absolute path), and add --pin-project if the agent must not switch away from it:
gori mcp --project my-engagement --install-codex
Checkpoint. Your client lists gori's tools: list_history, get_flow, send_request, project_info, and the rest. If they don't appear, confirm the client restarted and that gori is on the PATH it uses.
2. Give the agent a task
With the tools live, prompt the agent in plain language. It maps your intent onto the same tools you drive by hand, against the same project database rather than a copy:
"List the last 20 POSTs to
/login, resend the newest with a different password, and open an issue if the status code changes."
A capable agent turns that into a short, ordered sequence:
β list_history method:POST path~/login (newest 20)
β get_flow <the newest flow>
β send_request POST /login (edited body)
β create_issue "Auth bypass on /login" severity:high
Tools run one at a time, in the order they arrive, so a slow send_request never overlaps the next call.
Checkpoint. A new flow from the agent's send_request appears in your History, and any issue it filed shows up on the Issues tab.
3. Watch what it does
When the co-pilot connects, an mcp:claude-code chip appears on the top bar, and clicking it lists every agent attached to the project. Its consequential actions appear in gori's notification center tagged as coming from an agent and rendered differently from your own, so you can see what a co-pilot changed (a request it sent, an issue it filed, a rule it wrote) while you were reading another tab.
The same holds inside the intercept loop, for an agent installed with the intercept tools (--tools='*'). An agent can sit in the queue next to you, and each intercept_forward_edit it makes is marked as its own. Once an agent attaches to the intercept queue, gori arms a 30-second auto-forward for held items nobody is watching, so a client that dies mid-hold can't wedge the connection indefinitely.
Checkpoint. Open the notification center from the command palette (Ctrl-P β notifications) and the agent's actions are there, visibly tagged apart from your own.
4. Hand off safely
To hand the project to an agent, or a teammate, you don't fully trust with the target, install read-only:
gori mcp --read-only --install-claude-code
Read-only keeps the inspection tools (list_history, get_flow, list_sitemap, compare_flows) and the pure-compute helpers (decode, jwt_decode) while disabling send_request, issue writes, and the intercept mutators. The agent can read and reason about the whole engagement but cannot touch the target or change your records. To set this from gori itself, Settings β AI β MCP permissions turns each group of tools (sending traffic, intercept control, editing project data, scope, projects) on, ask or off for the next gori mcp start. ask puts each call in front of you as an approval card (Permissions from Preferences).
Scope is the second guardrail, and it holds even with the action tools enabled. An active tool aimed at a host outside your project scope, or without one, is refused with a SCOPE_BLOCKED error, whether or not the sandbox is on, unless the call passes the explicit waiver allow_unscoped:true (the sandbox still applies even then, and explicit excludes still hold for sweeps). So even a full-access agent cannot quietly send a stray request to a host you never scoped. Only MCP checks this strictly up front. gori run refuses an out-of-scope target only once a scope is configured, and the TUI's Repeater and Fuzzer have no up-front check, only the sandbox and explicit excludes.
Checkpoint. A read-only agent can list history and analyze flows, but send_request comes back disabled. With the action tools on, a request to an out-of-scope host returns SCOPE_BLOCKED.
Next Steps
- Playbooks: back to the full list of workflows
- MCP Server: the full tool catalog, live intercept, and why gori uses an MCP seam
- AI Setup: the step-by-step connect-and-drive walkthrough