In this guide you’ll connect a repo, plan a feature with AI, and hand off the work to coding agents that open PRs for you. It takes about ten minutes. By the end you’ll have a connected repo, a configured agent, and a clear path from rough idea to merged code.Documentation Index
Fetch the complete documentation index at: https://docs.ref.tools/llms.txt
Use this file to discover all available pages before exploring further.
Sign up
Create an account at plan.ref.tools. You’ll land on a blank doc — your space to think through what you want to build.

Connect your codebase
Link a GitHub repo so Ref can read your code and write plans that match your architecture.
- Go to ref.tools/resources
- Click Connect GitHub and authorize Ref
- Select the repos you want to index and click Add to Ref

Pick a coding agent
Choose which coding agent Ref should use to implement your tasks.
- Open Settings (gear icon)
- Click the Agents tab
- Select an agent and follow the setup instructions below
- Cursor
- Devin
- Warp OZ
- Claude Code, Codex, and more
1. Add your API keyPaste your Cursor API key in the Agents settings tab. Get one from cursor.com/dashboard under the Cloud Agents tab.
2. (Optional) Install MCP server so agents can send messages and access the plan directly
2. (Optional) Install MCP server so agents can send messages and access the plan directly
Installing the Ref Plans MCP server lets Cursor read, write, and collaborate on plan documents. It’s optional for single-agent workflows but required for multi-agent orchestration.Add the MCP serverOpen cursor.com, click MCPs, click the Replace
+ button and select Custom MCP then fill in the form or json as follows.YOUR_REF_API_KEY with your key from ref.tools/keys.Configure security rulesCursor’s cloud agents run in a sandbox that blocks external network requests by default. You need to allowlist api.plan.ref.tools so the agent can reach the MCP server.In the Cursor dashboard, go to Cloud Agents > Security Rules and add api.plan.ref.tools to the allowed domains.See the full Cursor MCP install guide for details.Write down what you're working on
No need for perfect formatting — just get your ideas down:
- A rough description of the feature or bug
- Links to a Linear ticket or GitHub issue
- A schema, API shape, or data model
- Bullet points, stream of consciousness, whatever gets it across
Build the plan with Ref
Open the chat panel and ask Ref to turn your notes into tasks. For example:Ref reads through your indexed repos, finds the patterns that matter — auth flows, DB models, API routes — and turns your notes into concrete tasks with file paths and verification steps. Ask it to split a task, add more detail, or reconsider an approach until the plan feels right.Once the draft is down, use comments to leave feedback or tag teammates for review. Ref can address comments directly, updating the plan based on what you and your team surface.



Ship it
When your tasks are ready, tell Ref to start implementing. You can pick specific tasks or hand off the whole plan:Ref spins up a separate coding agent for each task, pre-loaded with the task details, file references, and repo context. Multiple tasks run in parallel, each on its own branch.You can keep working while implementation runs. Progress flows back automatically — watch status updates come in, and continue refining upcoming tasks.When a task finishes, a PR appears directly in your plan. You can provide higher-level feedback as work progresses, or enable auto-merge to let Ref review and merge PRs on your behalf.
- Cursor
- Devin

What’s next?
Best Practices
Learn how to write plans that get great results.
Multi-Agent Orchestration
Set up fully automated multi-agent orchestration.
Integrations
Connect Linear or GitHub issues for richer context.
Local Agents
Using Claude Code, Codex, or another local agent? Install the MCP server to connect them to Ref.
