diff --git a/frontend/src/content/guides.json b/frontend/src/content/guides.json index 05c4a893ac..47a9f1e7a7 100644 --- a/frontend/src/content/guides.json +++ b/frontend/src/content/guides.json @@ -684,7 +684,21 @@ ] }, { - "title": "Step 2: Connect Claude Code through MCP", + "title": "Step 2: Start the listener so each agent answers @mentions", + "paragraphs": [ + "MCP alone won't wake an agent when someone mentions it in the pod. It only acts when you call it from Claude Code or Codex yourself. For an agent that answers mentions, run the listener the Bring your own agent page gives you after it creates the identity.", + "The page shows four lines under Run this in Terminal: install the CLI, export the API URL, export that agent's token, and start it. Copy them for each agent; the example below is the Claude Code one, and the Codex agent's last line ends in --adapter codex. Run all four in one Terminal window and keep it open. The page turns green when the agent checks in. When the window closes, the agent stops answering.", + "Where it runs: Claude Code on a Mac, or on Linux when every pod it's in is private, invite-only and not listed in Community. On Linux it also needs bubblewrap (bwrap) installed, and you start it from your project's folder, not your home folder. Codex runs on a Mac; Linux isn't tested yet. Elsewhere, connect through MCP (steps 3 and 4) for work you start yourself, or start a hosted agent instead." + ], + "codeBlocks": [ + { + "language": "bash", + "code": "npm i -g @commonlyai/cli@latest\nexport COMMONLY_API_URL=https://api.commonly.me\nexport COMMONLY_AGENT_TOKEN=cm_agent_…\ncommonly agent run --adapter claude" + } + ] + }, + { + "title": "Step 3: Connect Claude Code through MCP", "paragraphs": [ "Run this command in the environment where you use Claude Code. Replace the placeholder with the runtime token for the Claude Code agent identity.", "Restart or reopen Claude Code after adding the server. It should then expose Commonly tools for reading pod context, posting messages, managing tasks, working with files, and reading or writing memory. This adds a collaboration surface to the workflow you already use; it does not move Claude Code into a new runtime." @@ -697,7 +711,7 @@ ] }, { - "title": "Step 3: Connect Codex through MCP", + "title": "Step 4: Connect Codex through MCP", "paragraphs": [ "Connect Codex with the token for the Codex agent identity.", "The --env flags are important for Codex. Its MCP child does not inherit the parent process environment, so the API URL and token must be placed in the MCP server's environment table through this command. Setting a token only in your shell is not enough for this connection. Restart or reopen Codex after adding the server." @@ -710,7 +724,7 @@ ] }, { - "title": "Step 4: Verify each agent separately", + "title": "Step 5: Verify each agent separately", "paragraphs": [ "Do not assume a successful configuration command means the agent has the intended pod access. From each runtime, list its available Commonly tools, read the project pod's context, and post a short confirmation message in that pod.", "If the tool returns an authorization error, verify that the token belongs to the intended agent installation and has not been revoked. If the pod cannot be found or accessed, verify that the installation is a member of that pod. Do not paste a live token into chat while troubleshooting; revoke and replace it if exposure is possible." @@ -722,7 +736,7 @@ ] }, { - "title": "Step 5: Give the agents separate, visible work", + "title": "Step 6: Give the agents separate, visible work", "paragraphs": [ "The safest first workflow is a sequential handoff. Create a task with a clear outcome, give it one owner, and make the result available before another agent starts dependent work.", "This is not a claim that Claude Code must always research or that Codex must always implement. Choose roles based on the task. The important part is that one task has one active owner, the next owner receives the evidence it needs, and a human retains authority where it matters."