Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

docs(web): update agent documentation for setup flow

Richie McIlroy35c0cfc1b7c7
diff --git a/apps/web/content/docs/agents.mdx b/apps/web/content/docs/agents.mdx
index b9941a016..6b2f2f081 100644
--- a/apps/web/content/docs/agents.mdx
+++ b/apps/web/content/docs/agents.mdx
@@ -12,10 +12,10 @@ Cap can be used end to end from an AI agent. Your agent can record your screen,
1. Select **Copy Agent Setup Prompt** above.
2. Paste it into Codex, Claude Code, Cursor, OpenCode, or another agent that can run shell commands.
-3. Review the exact CLI and agent-configuration changes it proposes, then approve them.
-4. Complete the focused Cap browser login when prompted and tell the agent what you want to do.
+3. Let the agent install the official CLI and the persistent integration for the current agent. The copied prompt is your authorization for those local setup changes, so you do not need to copy commands or approve the same setup again.
+4. Complete the focused Cap browser login when prompted. Restart the agent if it cannot hot-load the new skill or MCP server, then tell it what you want to do.
-The prompt handles CLI discovery or installation, least-privilege authentication, the full Cap skill, local MCP configuration, and setup verification. It then teaches the agent to use Cap as an ongoing recording, video-understanding, collaboration, and organization helper. If you prefer to configure each piece yourself, follow [Set Up Your Agent](/docs/agents/setup).
+The prompt handles CLI discovery or installation, least-privilege authentication, the full Cap skill, local MCP configuration, and setup verification. The installed skill is the durable memory that routes future Cap tasks through Cap CLI or MCP first. The browser is reserved for focused authentication and provider handoffs returned by Cap, not for reading or managing Cap through dashboard automation. If you prefer to configure each piece yourself, follow [Set Up Your Agent](/docs/agents/setup).
## What your agent can do
@@ -48,7 +48,7 @@ Agents should discover the current contract from those commands instead of guess
### Cap skill
-The Cap skill teaches a compatible agent when to reach for Cap and how to handle confirmation, secrets, passwords, and long-running jobs. It deliberately delegates command details to `cap guide --json`, so the instructions stay aligned with the installed version.
+The Cap skill teaches a compatible agent to reach for Cap CLI or MCP before browser automation or computer-use tools, and how to handle confirmation, secrets, passwords, and long-running jobs. Because it is installed in the agent's global skill directory, this routing persists across conversations. It deliberately delegates command details to `cap guide --json`, so the instructions stay aligned with the installed version.
### Local MCP
diff --git a/apps/web/content/docs/agents/safety.mdx b/apps/web/content/docs/agents/safety.mdx
index d3937db32..74c973ee1 100644
--- a/apps/web/content/docs/agents/safety.mdx
+++ b/apps/web/content/docs/agents/safety.mdx
@@ -8,7 +8,9 @@ tags: "Agents"
## Read first, then propose changes
-An agent should begin with `cap guide --json`, current state, and the narrowest relevant read command. Reads and waits do not need confirmation. Everything that changes state does.
+Pasting Cap's official setup prompt is explicit approval for the agent to install the official Cap CLI and add or update the Cap skill and local MCP entry for the current agent only. The agent should perform that local bootstrap itself after checking the dry-run output. It must not ask the user to run the installer manually, request the same setup approval again, install into other detected agents, or replace unrelated agent configuration.
+
+That one-time setup approval does not authorize changes to Cap data or account state. After setup, an agent should begin with `cap guide --json`, current state, and the narrowest relevant read command. Reads and waits do not need confirmation. Everything that changes Cap content, processing, recording, uploads, sharing, library state, organizations, billing, storage, developer resources, credentials, or account state does.
Before a mutation, the agent must show:
@@ -109,7 +111,7 @@ CLI login, Stripe checkout and billing portal flows, Google Drive authorization,
### `cap` is not found
-Install it from [Set Up Your Agent](/docs/agents/setup#install-the-cap-cli), open a new terminal, and run `cap version --json`.
+When running the official setup prompt, the agent should select and run the platform installer from [Set Up Your Agent](/docs/agents/setup#install-the-cap-cli), refresh the shell environment, and run `cap version --json`. It should not switch to browser automation or ask the user to copy the installer command. Outside the setup flow, show the user the official installer and obtain approval before changing the local machine.
### Authentication fails
@@ -128,7 +130,7 @@ The installed binary is the source of truth.
### MCP is unavailable
-Verify that the client launches the local command `cap mcp serve`, that `cap` is on the client's PATH, and that stdout is not wrapped or logged by another process. Use direct CLI commands as a fallback.
+Verify that the client launches the local command `cap mcp serve`, that `cap` is on the client's PATH, and that stdout is not wrapped or logged by another process. Use direct CLI commands as the fallback, not browser automation or computer-use tools. A newly installed MCP server may require an agent restart before it appears in the current process.
### A Cap is password protected
diff --git a/apps/web/content/docs/agents/setup.mdx b/apps/web/content/docs/agents/setup.mdx
index 13c6aba86..886878da4 100644
--- a/apps/web/content/docs/agents/setup.mdx
+++ b/apps/web/content/docs/agents/setup.mdx
@@ -4,11 +4,11 @@ summary: "Install Cap, authenticate with least privilege, and connect your prefe
tags: "Agents"
---
-> **Agent-readable page:** You can send this URL to your agent. It should follow the verification and confirmation rules below, never overwrite an existing agent configuration blindly, and stop for you when a browser or secure terminal handoff is required.
+> **Agent-readable page:** You can send this URL to your agent. Pasting the setup prompt authorizes the official CLI install and the Cap skill and MCP configuration for the current agent only. It should perform those local setup steps itself, preserve unrelated configuration, and stop for you only when a browser or secure terminal handoff is required.
<CopyablePrompt />
-The prompt above can perform this setup with you. The rest of this page documents every step for manual installation and troubleshooting.
+The prompt above performs the setup itself. You should not need to copy an installer command or approve the same local setup twice. It installs the persistent skill and MCP configuration before starting browser login, so a delayed login does not leave the agent unconfigured. The rest of this page documents the underlying steps for manual installation and troubleshooting.
## Install the Cap CLI
@@ -74,7 +74,7 @@ Preview exactly what Cap will change:
cap agents install --target codex --component all --dry-run --json
```
-After reviewing the paths and values, apply the integration:
+When using the copied setup prompt, the agent inspects the paths and values and immediately applies the authorized integration:
```sh
cap agents install --target codex --component all --yes --json
@@ -89,7 +89,7 @@ cap agents install --target claude --component all --dry-run --json
cap agents install --target claude --component all --yes --json
```
-Review the preview first, then restart Claude Code after applying it.
+The copied setup prompt treats the preview as a conflict check and applies it without a second approval. Restart Claude Code after applying it.
## Cursor
@@ -98,7 +98,7 @@ cap agents install --target cursor --component all --dry-run --json
cap agents install --target cursor --component all --yes --json
```
-Review the preview first, then restart Cursor after applying it.
+The copied setup prompt treats the preview as a conflict check and applies it without a second approval. Restart Cursor after applying it.
## OpenCode