diff --git a/agents.mdx b/agents.mdx index 7b34f3a..a60c733 100644 --- a/agents.mdx +++ b/agents.mdx @@ -37,7 +37,7 @@ Projects built on pre.dev already have the key as `PREDEV_API_KEY`. It spends th ## Plan access -Browser tasks and AI Gateway calls work on every plan, Free included: a Free personal account can spend 2 credits on browser tasks, and a Free workspace 5 credits on AI calls, before it needs a plan. Specifications and the MCP server need Premium, Pro, Team or Enterprise; Plus and team workspaces without a plan get 3 trial specifications. The MCP memory tools work on every plan, Free included, and use no credits. See [API and MCP access](/coding-agent/plans-and-credits#api-and-mcp-access). +Browser tasks and AI Gateway calls work before you subscribe, up to a small allowance: 2 credits on browser tasks for a personal account and 5 credits on AI calls for a workspace. Specifications and the MCP server need Premium, Pro, Team or Enterprise; Plus and team workspaces without a plan get 3 trial specifications. The MCP memory tools work on every plan, Free included, and use no credits. See [API and MCP access](/coding-agent/plans-and-credits#api-and-mcp-access). ## Choose an interface diff --git a/ai-gateway/overview.mdx b/ai-gateway/overview.mdx index 3e98681..c43ab15 100644 --- a/ai-gateway/overview.mdx +++ b/ai-gateway/overview.mdx @@ -20,7 +20,7 @@ The pre.dev AI Gateway is an OpenAI-compatible API for hundreds of models from e Call models from apps built on pre.dev, with the key already in place. - Credits per call, the free allowance, and what happens when credits run out. + Credits per call, the allowance before you subscribe, and what happens when credits run out. Browse the catalog with credit prices attached. diff --git a/ai-gateway/quickstart.mdx b/ai-gateway/quickstart.mdx index a09888b..8bbe430 100644 --- a/ai-gateway/quickstart.mdx +++ b/ai-gateway/quickstart.mdx @@ -12,7 +12,7 @@ Send one chat completion to `deepseek/deepseek-v4.1-flash-1017` and read the cre -Store it as `PREDEV_API_KEY`. A Free workspace can spend 5 credits on gateway calls in total, whatever its balance; after that, calls return `402` until the workspace subscribes. See [authentication](/api-reference/authentication) and [pricing](/coding-agent/plans-and-credits#ai-gateway-calls). +Store it as `PREDEV_API_KEY`. A workspace without a plan can spend 5 credits on gateway calls in total, whatever its balance; after that, calls return `402` until the workspace subscribes. See [authentication](/api-reference/authentication) and [pricing](/coding-agent/plans-and-credits#ai-gateway-calls). ## Send a request diff --git a/api-reference/authentication.mdx b/api-reference/authentication.mdx index 48b875c..2b365a0 100644 --- a/api-reference/authentication.mdx +++ b/api-reference/authentication.mdx @@ -43,11 +43,11 @@ Authentication and feature access are separate checks. | Interface | Accepts | | --- | --- | -| Browser Agents REST | Every account, including Free. Task submission then applies its own trial, credit, and queue checks. | -| AI Gateway | Every account, including Free. Free workspaces have a small lifetime allowance for gateway calls. | -| Architect REST and the MCP server | Personal accounts on a paid plan, and team workspaces. The MCP server also accepts Free accounts, for the memory tools | +| Browser Agents REST | Every account, with a small allowance before you subscribe. Task submission then applies its own trial, credit, and queue checks. | +| AI Gateway | Every account. A workspace without a plan has a small lifetime allowance for gateway calls. | +| Architect REST and the MCP server | Personal accounts on a paid plan, and team workspaces. The MCP server also accepts accounts without a plan, for the memory tools | -A Free account can call Browser Agents, the AI Gateway, and the MCP memory tools, while an Architect REST call returns `401` and the other MCP tools return an error result with a link to subscribe. Which plans can generate specifications is covered in [plans, credits, and pricing](/coding-agent/plans-and-credits#api-and-mcp-access). Read the response message for the required action. +An account without a plan can call Browser Agents, the AI Gateway, and the MCP memory tools, while an Architect REST call returns `401` and the other MCP tools return an error result with a link to subscribe. Which plans can generate specifications is covered in [plans, credits, and pricing](/coding-agent/plans-and-credits#api-and-mcp-access). Read the response message for the required action. ## Account and team context diff --git a/api-reference/errors.mdx b/api-reference/errors.mdx index 9ebb78a..18520ff 100644 --- a/api-reference/errors.mdx +++ b/api-reference/errors.mdx @@ -71,7 +71,7 @@ Errors from `https://api.pre.dev/v1` use the OpenAI error shape with an extra `p | `missing_api_key` | `401` | No `Authorization` or `x-api-key` header | | Send the key; see [authentication](/api-reference/authentication) | | `invalid_api_key` | `401` | Key unknown, or rotated more than 15 minutes ago | | Copy the current key from **Integrations → Built-in** | | `insufficient_credits` | `402` | The balance cannot cover the call; nothing was sent to the model | `credits_remaining`, `estimated_credits`, `topup_url` | Add credits or enable auto-recharge | -| `subscription_required` | `402` | A Free workspace used its 5-credit gateway allowance | `credits_remaining`, `trial_credits_used`, `topup_url` | Subscribe | +| `subscription_required` | `402` | A workspace without a plan used its 5-credit gateway allowance | `credits_remaining`, `trial_credits_used`, `topup_url` | Subscribe | | `not_found` | `404` | Unknown path, or a file, job, response, or generation that belongs to another workspace, including one a request refers to; nothing ran. On `GET /v1/generation`, also a call that recorded no stats (a failed call, for example) or a streamed call that is still running | | Check the path and id; look up a streamed call after its stream ends | | `not_ready` | `404` or `502` | `GET /v1/generation` found the call, but its stats are not available yet (`404`) or could not be read (`502`) | | Retry in a few seconds | | `rate_limit_exceeded` | `429` | More than the per-minute request limit | `retry_after` | Wait `Retry-After` seconds, then retry | diff --git a/architect-agent/mcp-setup.mdx b/architect-agent/mcp-setup.mdx index a8f446c..2be8f98 100644 --- a/architect-agent/mcp-setup.mdx +++ b/architect-agent/mcp-setup.mdx @@ -106,7 +106,7 @@ With the local server, try [your own Chrome](/browser-agents/local): List my Chrome profiles and the tabs I have open. ``` -Tool execution uses your account's credits and access. Connecting a server does not change your plan. A Free account can use browser REST, the local Chrome tools, and the memory tools, but not the other hosted tools; see [authentication](/api-reference/authentication#which-accounts-each-interface-accepts). +Tool execution uses your account's credits and access. Connecting a server does not change your plan. An account without a plan can use browser REST, the local Chrome tools, and the memory tools, but not the other hosted tools; see [authentication](/api-reference/authentication#which-accounts-each-interface-accepts). ## Connection lifecycle diff --git a/browser-agents/local.mdx b/browser-agents/local.mdx index e15cdc3..b452878 100644 --- a/browser-agents/local.mdx +++ b/browser-agents/local.mdx @@ -332,7 +332,7 @@ Two tools use your pre.dev account to understand the page, through the key saved ### Credits -Among the Chrome tools, plain-words actions are the only ones that call pre.dev. Each one costs a small fraction of a credit. Free workspaces get 10 credits of plain-words actions, enough for hundreds of them, separate from the AI Gateway trial. When they run out, your agent tells you and offers to open the billing page in your Chrome so you can subscribe; every other tool keeps working. They share the [rate limits](/coding-agent/plans-and-credits#limits) of your other API calls. Every other Chrome tool runs on your computer, never calls pre.dev, and is free. +Among the Chrome tools, plain-words actions are the only ones that call pre.dev. Each one costs a small fraction of a credit. Before you subscribe, a workspace gets 10 credits of plain-words actions, enough for hundreds of them, separate from the AI Gateway trial. When they run out, your agent tells you and offers to open the billing page in your Chrome so you can subscribe; every other tool keeps working. They share the [rate limits](/coding-agent/plans-and-credits#limits) of your other API calls. Every other Chrome tool runs on your computer, never calls pre.dev, and is free. @@ -378,8 +378,8 @@ Browser Agents Local drives your real, signed-in Chrome. Read this before you tu | Another server already uses the name `predev` | Setup leaves it alone and registers this one as `pre-dev` | | You had the hosted pre.dev MCP or an older Browser Agents Local install (`chrome` or `predev-chrome`) | Setup replaced it. This server carries all of its tools | | Codex says a tool call timed out | Run `setup`, which sets `tool_timeout_sec = 900`, or set it in `~/.codex/config.toml` | -| A plain-words action returns `402` with `subscription_required` | The free plan's 10 credits of plain-words actions are used up. Subscribe with the link in the error; your agent can open it in your Chrome | -| A plain-words action returns `402` with `insufficient_credits` | Your workspace is out of credits. Open the link in the error: on the free plan, subscribe; on a paid plan, add credits or turn on auto-recharge | +| A plain-words action returns `402` with `subscription_required` | The 10 credits of plain-words actions before subscribing are used up. Subscribe with the link in the error; your agent can open it in your Chrome | +| A plain-words action returns `402` with `insufficient_credits` | Your workspace is out of credits. Open the link in the error: without a plan, subscribe; on a plan, add credits or turn on auto-recharge | | A plain-words action returns `429`, rate limited or busy | Wait a few seconds and retry, or use `chrome_snapshot` refs with `chrome_click` and `chrome_type` | | Anything else | Run the [setup check](#check-your-setup) and read `~/.predev/mcp/predev-mcp.log` | diff --git a/coding-agent/building/publish.mdx b/coding-agent/building/publish.mdx index b667f3b..f5cb180 100644 --- a/coding-agent/building/publish.mdx +++ b/coding-agent/building/publish.mdx @@ -28,10 +28,10 @@ Set access in the Publish sheet. It applies to both links Share offers, the publ | Plan | Published app | | --- | --- | -| Free and Plus | Stays live for 7 days, with a small "Built on pre.dev" badge. Republishing starts a new 7-day window. | +| Plus | Stays live for 7 days, with a small "Built on pre.dev" badge. Republishing starts a new 7-day window. | | Premium, Pro, Team, and Enterprise | Stays live with no badge, and can use a custom domain | -When a free window ends, the address shows a paused page until you republish. +When a 7-day window ends, the address shows a paused page until you republish. ## What gets published diff --git a/coding-agent/plans-and-credits.mdx b/coding-agent/plans-and-credits.mdx index 1156558..39434ac 100644 --- a/coding-agent/plans-and-credits.mdx +++ b/coding-agent/plans-and-credits.mdx @@ -16,14 +16,13 @@ Check your balance with `/balance` in the workspace or CLI. | Plan | Monthly | Annual | Credits | Adds | | --- | --- | --- | --- | --- | -| Free | $0 | $0 | 20 a month | Coding agent in the browser and terminal, browser agents, publishing for 7 days | | Plus | $10 | $99 | 100 a month | More monthly credits | | Premium | $49 | $499 | 500 a month | Model selection, published apps that stay live, custom domains | | Pro | $199 | $1,999 | 2,500 a month | More monthly credits | | Team | $499 | $4,990 | 5,000 a month, pooled | Unlimited team seats | | Enterprise | Custom | Custom | Per agreement | A dedicated solutions engineer | -Each plan includes everything in the plans above it. A team workspace without a plan gets its 20 free credits once, not every month. See [pricing](https://pre.dev/pricing) for current offers, and manage your plan, top-ups, and auto-recharge in **Billing**. +pre.dev is paid only: building with the agent starts with Plus. Each plan includes everything in the plans above it. See [pricing](https://pre.dev/pricing) for current offers, and manage your plan, top-ups, and auto-recharge in **Billing**. ## What uses credits @@ -55,7 +54,7 @@ Worked example: a model whose row lists `credits_per_m_input: 20` and `credits_p Non-streaming responses report the charge in `x-predev-credits-charged` and the balance in `x-predev-credits-remaining`. [`GET /v1/usage`](/ai-gateway/api/usage) breaks the last 1 to 90 days down by model and path. -**Free allowance.** A Free workspace can spend 5 credits on gateway calls in total, whatever its credit balance. After that, every call returns `402` with code `subscription_required` until the workspace subscribes. +**Before you subscribe.** A workspace without a plan can spend 5 credits on gateway calls in total, whatever its credit balance. After that, every call returns `402` with code `subscription_required` until the workspace subscribes. **Out of credits.** A workspace without enough credits for a call gets `402` with code `insufficient_credits` before anything is sent to the model, so nothing is generated or charged. Turn on auto-recharge in billing to keep a live app running when the balance would otherwise reach zero. See [AI Gateway errors](/api-reference/errors#ai-gateway-errors). @@ -76,6 +75,6 @@ For integrations, [GET /credits-balance](/architect-agent/api/credits-balance) r ## API and MCP access -The Architect API and the MCP server are included with the Premium, Pro, Team, and Enterprise plans. Plus accounts, and team workspaces without an active plan, can connect and generate 3 specifications as a trial; after that, generation returns `403`. Free accounts cannot authenticate to the Architect API. They can connect to MCP for the [memory tools](/mcp/tools#memory_list), which work on every plan and use no credits; the other MCP tools answer with a link to subscribe. +The Architect API and the MCP server are included with the Premium, Pro, Team, and Enterprise plans. Plus accounts, and team workspaces without an active plan, can connect and generate 3 specifications as a trial; after that, generation returns `403`. Accounts without a plan cannot authenticate to the Architect API. They can connect to MCP for the [memory tools](/mcp/tools#memory_list), which work on every plan and use no credits; the other MCP tools answer with a link to subscribe. -Browser Agents REST and the AI Gateway accept every account, including Free. See [authentication](/api-reference/authentication) for how each interface checks keys and [errors and retries](/api-reference/errors) for access errors. +Browser Agents REST and the AI Gateway accept every account, with a small allowance before you subscribe. See [authentication](/api-reference/authentication) for how each interface checks keys and [errors and retries](/api-reference/errors) for access errors. diff --git a/docs.json b/docs.json index 76ec230..62b1579 100644 --- a/docs.json +++ b/docs.json @@ -345,49 +345,26 @@ "navigation": { "tabs": [ { - "tab": "Start", + "tab": "Docs", "groups": [ { - "group": "Get started", + "group": "Start", "pages": [ "overview", - "agents" - ] - }, - { - "group": "Quickstarts", - "pages": [ "coding-agent/quickstart", - "architect-agent/quickstart", - "browser-agents/quickstart", - "ai-gateway/quickstart" - ] - }, - { - "group": "Essentials", - "pages": [ - "api-reference/authentication", - "api-reference/errors", - "coding-agent/plans-and-credits" - ] - }, - { - "group": "Resources", - "pages": [ + "cli/overview", + "coding-agent/plans-and-credits", "changelog" ] - } - ] - }, - { - "tab": "Build with pre.dev", - "groups": [ + }, { - "group": "Coding Agent", + "group": "How it works", "pages": [ "coding-agent/overview", + "coding-agent/memory", "coding-agent/workspace", - "coding-agent/memory" + "coding-agent/building/sessions-and-parallel-agents", + "coding-agent/building/pro-mode" ] }, { @@ -395,47 +372,32 @@ "pages": [ "coding-agent/projects/creating-a-project", "coding-agent/projects/importing-repos", - "coding-agent/projects/github-integration" + "coding-agent/projects/github-integration", + "cli/existing-repos", + "cli/chat-only-projects" ] }, { - "group": "Work locally", - "pages": [ - "cli/overview", - "cli/chat-only-projects", - "cli/commands", - "cli/existing-repos" - ] - }, - { - "group": "Plan", - "pages": [ - "coding-agent/specifications/fast-vs-deep", - "coding-agent/specifications/understanding-specs" - ] - }, - { - "group": "Build, verify, ship", + "group": "Plan and build", "pages": [ + "coding-agent/specifications/understanding-specs", "coding-agent/building/build-modes", - "coding-agent/building/pro-mode", - "coding-agent/building/sessions-and-parallel-agents", + "coding-agent/building/progress-tracking", "coding-agent/building/acceptance-criteria", "coding-agent/building/pull-requests", - "coding-agent/building/preview-and-hosting", - "coding-agent/building/publish", - "coding-agent/building/custom-domains" + "coding-agent/building/collaboration" ] }, { - "group": "Collaborate and track", + "group": "Ship", "pages": [ - "coding-agent/building/collaboration", - "coding-agent/building/progress-tracking" + "coding-agent/building/preview-and-hosting", + "coding-agent/building/publish", + "coding-agent/building/custom-domains" ] }, { - "group": "Integrations", + "group": "Connect", "pages": [ "coding-agent/integrations/overview", "coding-agent/integrations/oauth", @@ -449,33 +411,38 @@ "group": "In your app", "pages": [ "coding-agent/built-in", - { - "group": "Payments", - "pages": [ - "payments/overview", - "payments/webhooks", - "payments/go-live" - ] - } + "payments/overview", + "payments/webhooks", + "payments/go-live" ] } ] }, { - "tab": "API & SDKs", + "tab": "Reference", "groups": [ + { + "group": "CLI", + "pages": [ + "cli/commands" + ] + }, { "group": "API", "pages": [ "api-reference/overview", + "api-reference/authentication", + "api-reference/errors", "architect-agent/api/credits-balance" ] }, { - "group": "Specs (Architect)", + "group": "Planning API", "pages": [ + "architect-agent/quickstart", "architect-agent/overview", "architect-agent/inputs-and-outputs", + "coding-agent/specifications/fast-vs-deep", "architect-agent/api/fast-spec", "architect-agent/api/deep-spec", "architect-agent/api/spec-status", @@ -485,8 +452,35 @@ ] }, { - "group": "Browser Agents", + "group": "SDKs", + "pages": [ + "architect-agent/sdks/overview", + "architect-agent/sdks/node", + "architect-agent/sdks/python" + ] + }, + { + "group": "MCP", + "pages": [ + "architect-agent/mcp-setup", + "mcp/tools" + ] + }, + { + "group": "For agents", "pages": [ + "agents" + ] + } + ] + }, + { + "tab": "Browser agents", + "groups": [ + { + "group": "Browser agents", + "pages": [ + "browser-agents/quickstart", "browser-agents/overview", "browser-agents/local", "browser-agents/switch-from-claude-in-chrome", @@ -499,10 +493,16 @@ "browser-agents/api/capacity", "browser-agents/migrate-from-browser-use" ] - }, + } + ] + }, + { + "tab": "AI Gateway", + "groups": [ { "group": "AI Gateway", "pages": [ + "ai-gateway/quickstart", "ai-gateway/overview", "ai-gateway/models", "ai-gateway/streaming", @@ -575,21 +575,6 @@ ] } ] - }, - { - "group": "SDKs", - "pages": [ - "architect-agent/sdks/overview", - "architect-agent/sdks/node", - "architect-agent/sdks/python" - ] - }, - { - "group": "MCP", - "pages": [ - "architect-agent/mcp-setup", - "mcp/tools" - ] } ] }, @@ -642,10 +627,6 @@ { "label": "Changelog", "href": "/changelog" - }, - { - "label": "pre.dev", - "href": "https://pre.dev" } ], "primary": { @@ -676,7 +657,7 @@ "discord": "https://discord.gg/ejVTRJ6WXS" } }, - "description": "Documentation for pre.dev: the Long Horizon Coding Agent on the web and in the terminal, Browser Agents, the AI Gateway (hundreds of models from every major lab through one OpenAI-compatible API), built-in payments, the REST and MCP APIs, and pre.dev Labs, which sells verified RL coding tasks to frontier AI labs.", + "description": "Documentation for pre.dev: one long-horizon coding agent (the pre.dev harness) you can use from the web, the CLI and your own code, plus browser agents, the AI Gateway and pre.dev labs.", "seo": { "metatags": { "twitter:site": "@predotdev" diff --git a/images/diagrams/product-map-dark.svg b/images/diagrams/product-map-dark.svg deleted file mode 100644 index 19c9933..0000000 --- a/images/diagrams/product-map-dark.svg +++ /dev/null @@ -1,77 +0,0 @@ - -pre.dev products -Five products and how to reach them. Coding Agent: web and CLI; returns pull requests and published apps. Architect: API and MCP; returns Markdown and JSON specs. Browser Agents: API and MCP; returns results and an event timeline. AI Gateway: API; returns OpenAI-compatible model responses. Payments and sign-in: built into apps made in the web workspace; provides Checkout, payouts, and user accounts. - - -PRODUCT -WAYS IN -YOU GET - - -Web - - -CLI - - -API - - -MCP -Coding Agent -plans, builds, verifies - - -Pull requests, -published apps - -Architect -fast or deep specs - - -Markdown and -JSON specs - -Browser Agents -tasks on live websites - - -Results and an -event timeline - -AI Gateway -hundreds of models - -Model responses, -OpenAI-compatible - -Payments, sign-in -built into your apps - -Checkout, payouts, -user accounts - -API: REST at api.pre.dev and the Node and Python SDKs. -One pre.dev account works across every product. - diff --git a/images/diagrams/product-map-light.svg b/images/diagrams/product-map-light.svg deleted file mode 100644 index cc37a49..0000000 --- a/images/diagrams/product-map-light.svg +++ /dev/null @@ -1,77 +0,0 @@ - -pre.dev products -Five products and how to reach them. Coding Agent: web and CLI; returns pull requests and published apps. Architect: API and MCP; returns Markdown and JSON specs. Browser Agents: API and MCP; returns results and an event timeline. AI Gateway: API; returns OpenAI-compatible model responses. Payments and sign-in: built into apps made in the web workspace; provides Checkout, payouts, and user accounts. - - -PRODUCT -WAYS IN -YOU GET - - -Web - - -CLI - - -API - - -MCP -Coding Agent -plans, builds, verifies - - -Pull requests, -published apps - -Architect -fast or deep specs - - -Markdown and -JSON specs - -Browser Agents -tasks on live websites - - -Results and an -event timeline - -AI Gateway -hundreds of models - -Model responses, -OpenAI-compatible - -Payments, sign-in -built into your apps - -Checkout, payouts, -user accounts - -API: REST at api.pre.dev and the Node and Python SDKs. -One pre.dev account works across every product. - diff --git a/overview.mdx b/overview.mdx index 174faa0..ab68f4a 100644 --- a/overview.mdx +++ b/overview.mdx @@ -1,48 +1,27 @@ --- -title: "pre.dev documentation" +title: "pre.dev docs" sidebarTitle: "Introduction" -description: "The Long Horizon Coding Agent, plus APIs for specifications, browser tasks and hundreds of AI models. pre.dev Labs sells verified RL coding tasks to frontier AI labs." +description: "One coding agent that plans, builds, verifies and ships. Use it from the web, your terminal, or your own code." --- -import BaseUrls from "/snippets/base-urls.mdx"; +pre.dev is one long-horizon coding agent: the pre.dev harness. It plans a project, builds it in sprints, checks its own work and publishes it. -pre.dev is the Long Horizon Coding Agent: it builds software and exposes the pieces behind it as APIs. pre.dev Labs also builds and sells verified RL coding tasks to frontier AI labs for model post-training; see [pre.dev for AI labs](/labs/overview). +You can drive it from several places, and they share the same projects and sessions. Start in the terminal, check on the web, continue from a script. -| Product | What it does | Start with | +| From | Use | Start | | --- | --- | --- | -| Coding Agent | Builds, verifies, and publishes apps, in the web workspace or your terminal | [Build your first project](/coding-agent/quickstart) | -| Architect | Turns a description into a specification with milestones, stories, and architecture | [Generate a spec](/architect-agent/quickstart) | -| Browser Agents | Runs tasks on websites and returns structured data, or lets your coding agent use your own Chrome | [Run a browser task](/browser-agents/quickstart) | -| AI Gateway | One OpenAI-compatible API for hundreds of models from every major lab, paid with pre.dev credits | [Call a model](/ai-gateway/quickstart) | -| Payments and Authentication | Stripe payments and user sign-in, built into every app you build on pre.dev | [Built into every app](/coding-agent/built-in) | +| The web | [pre.dev](https://pre.dev) | [Build your first project](/coding-agent/quickstart) | +| Your terminal | `curl -fsSL https://pre.dev/install \| bash` | [Install the CLI](/cli/overview) | +| Scripts and CI | `predev run "…" --output-format json` | [Run headless](/cli/overview) | +| Your code | REST, Node and Python SDKs | [API overview](/api-reference/overview) | +| Another agent | The pre.dev MCP server | [Connect MCP](/architect-agent/mcp-setup) | -Five products and how to reach them. Coding Agent through the web workspace and the CLI, returning pull requests and published apps. Architect and Browser Agents through the API and MCP, returning specs and task results. AI Gateway through the API, returning model responses. Payments and sign-in built into apps made in the web workspace. -Five products and how to reach them. Coding Agent through the web workspace and the CLI, returning pull requests and published apps. Architect and Browser Agents through the API and MCP, returning specs and task results. AI Gateway through the API, returning model responses. Payments and sign-in built into apps made in the web workspace. +Today the REST API and SDKs cover planning, browser agents and model calls. Driving the coding agent itself from your code goes through `predev run`; a native API for it is coming. -The Coding Agent works in the web workspace and the CLI, and its [memory](/coding-agent/memory) of how you work and what matters in each project also reaches Claude Code, Cursor, and other agents through MCP. Architect and Browser Agents are available over REST, the Node and Python SDKs, and MCP; the AI Gateway over REST. Payments and sign-in come built into apps you create in the web workspace. +## Also on pre.dev -## Choose your interface +- [Browser agents](/browser-agents/quickstart): run tasks on websites and get structured data back. +- [AI Gateway](/ai-gateway/quickstart): one OpenAI-compatible API for hundreds of models, paid in pre.dev credits. +- [pre.dev labs](/labs/overview): verified RL coding tasks for frontier labs. -| Work from | Use | Start with | -| --- | --- | --- | -| A browser | The web workspace for code, plans, previews, and publishing | [Build your first project](/coding-agent/quickstart) | -| A local repository | The CLI and your existing Git workflow | [Install the CLI](/cli/overview) | -| Your application | REST, the AI Gateway, or the Node and Python SDKs | [API overview](/api-reference/overview) | -| Another AI assistant | The pre.dev MCP server, set up with one command | [Connect MCP](/architect-agent/mcp-setup) | - - - -The public API covers specifications, browser tasks, and AI model calls. For code implementation, start in the web workspace or CLI. - -## Build an integration - - - - Find your key, send it, and check which accounts each interface accepts. - - - Recognize terminal states, recover from failures, and retry safely. - - - -Giving these docs to a coding assistant? Start with the [guide for agents](/agents) and the OpenAPI files for the [REST API](/api-reference/openapi.json) and the [AI Gateway](/api-reference/ai-gateway.openapi.json). For plans and usage, see [plans, credits, and pricing](/coding-agent/plans-and-credits). +Pricing: [plans and credits](/coding-agent/plans-and-credits). Giving these docs to an agent: [guide for agents](/agents). diff --git a/scripts/diagrams/diagrams.mjs b/scripts/diagrams/diagrams.mjs index e73eb9a..5d85c2c 100644 --- a/scripts/diagrams/diagrams.mjs +++ b/scripts/diagrams/diagrams.mjs @@ -501,7 +501,6 @@ function codebaseFlow() { } export default { - 'product-map': productMap, 'life-of-a-change': lifeOfAChange, 'async-jobs': asyncJobs, 'browser-task-states': browserTaskStates, diff --git a/site/app/(docs)/[...slug]/page.tsx b/site/app/(docs)/[...slug]/page.tsx index 5f008e7..c0776ee 100644 --- a/site/app/(docs)/[...slug]/page.tsx +++ b/site/app/(docs)/[...slug]/page.tsx @@ -75,7 +75,7 @@ export default async function Page(props: { params: Promise<{ slug: string[] }> const body = ; return ( - +