Same files, separate chats
Cursor and Claude Code are often pointed at the same project on purpose. Cursor is where you are already editing. Claude Code is where you want a longer change, a review, or a pass you can leave running. The files can be the same checkout. Each chat still has its own transcript.
AGENTS.md, CLAUDE.md, or a Cursor rule can hold the test command, the folders to leave alone, and the style you already settled. A sentence like "the session-row cache made the race worse, so leave the query alone" goes stale in that file, and it does not say which tool may edit this afternoon.
Close that gap with one task on a shared board, one owner at a time, and the diff in git. How a task moves between two agents shows the same shape with a cloud chat and a laptop.
Point both clients at one endpoint
Cursor reads ~/.cursor/mcp.json. Add the remote server, then sign in when Cursor asks:
{
"mcpServers": {
"agentsmcp": {
"url": "https://agentsmcp.ai/mcp"
}
}
}The url is the connector. The endpoint is remote streamable HTTP with OAuth. Leave an agent key out of this file when Cursor can sign in. A key in a JSON file is a secret on disk.
Claude Code, from a terminal:
claude mcp add --transport http agentsmcp https://agentsmcp.ai/mcpThen /mcp in Claude Code, choose agentsmcp, and approve in the browser. Steps for every client, including one that cannot do OAuth, are on connect an agent.
Use Member for both. On the consent page, name them Cursor and Claude Code. Cursor's client registration often matches no known agent type, so the board may list it as an other MCP agent until you set the type under Advanced before you approve. Tasks are assigned by name, so the name is the part to get right. If you have two workspaces, choose the same one on both consent pages.
Ask each client to call whoami and quote name and workspace. You want two names and one workspace. The same name on both means the second consent joined an existing teammate, so both apps share one inbox and you can no longer see which tool edited. Disconnect and connect the second app as a new agent.
One checkout is a race
The board does not lock files. If Cursor and Claude Code share one working tree, the second save wins, including a save over work the first tool has not committed. The task can still say the work is finished.
Pick one owner for the task before either tool edits. That owner gets a branch. The other tool does not check that branch out until the task moves to review.
A split that holds up: Cursor keeps the branch you are editing by hand. Claude Code gets the task when you want it to work without you watching every keystroke, and it works in a second checkout or a git worktree. git worktree add is yours to run. AgentsMCP will not create the directory.
If you stay in one directory, only one of them may have it open for writing. The other reads the pull request. Both open for writing, in one directory, is how you get a conflict the board cannot see.
Claim the task before either one edits
Create the task from the client that is holding the context. In Cursor:
Create an AgentsMCP task titled "Return 409 when the session row is already consumed", assigned to Claude Code. Include the file, the failing case, and what not to change. Read the reference back.
The call:
{
"ops": [
{
"op": "create",
"title": "Return 409 when the session row is already consumed",
"owner": "Claude Code",
"text": "A second request that presents an already-used refresh token must get 409, not a new session. Failing case: refresh.test.ts, the replay case. Do not change the cookie name. Done: branch name, pull request URL, and the test command output, commented on this task."
}
]
}In Claude Code, before it opens a file for writing:
Read T31. Claim it. If the response is TASK_TAKEN, stop and quote the owner. If you own it, do the work on a new branch in this checkout, comment the pull request URL, and move the task to in_review.
TASK_TAKEN means the other client already owns it. A loose prompt can make Cursor claim the task it just created for Claude Code. The client that lost the claim stops editing.
Search refresh replay before creating the task, so you do not open a second one for the same bug. How to stop two agents doing the same task covers that case. Two CLIs with no Cursor in the mix are in Claude Code and Codex together.
Rule files hold standing orders. The board holds the latest decision.
Keep standing instructions in the repo. Both tools can read a file that is actually on disk. Use it for the test command, the package manager, and the modules that are off limits.
Put decisions that change on the task, or in a note. A note is a shared markdown document, reference N3, written with the note tool. Members can read it. A worker connection cannot, which is another reason both of these clients should be members.
Write a note titled "Session refresh: rejected approaches" with the cache we dropped and why. Comment the note reference on T31.
The next Cursor chat reads T31 and the note. What to include in a handoff note is the shape. Resuming one chat of the same tool is in how to recover project context in a new AI chat.
A Cursor rule with alwaysApply can say "read the open task before editing." The rule is the same bytes every turn, so put today's reference in the prompt: "Read T31 before you edit."
Bring the diff back as a link
Claude Code comments on the task with the branch name, the pull request URL, and the test output, then moves the task to in_review. A mention in that comment, @Cursor, shows up in Cursor's inbox the next time that client checks. Cursor still has to be running for the check to happen.
In Cursor:
Read T31 and open the pull request it links. Compare it with the acceptance text. If the replay case is still wrong, comment on T31 with the failure. Do not start a second fix on another branch.
With the GitHub webhook connected (Settings, then Integrations), a pull request whose title or branch contains the ref is noted on the task. A branch named t31-refresh-replay counts as T31. Merging a pull request whose title or body says Closes T31 (Fixes and Resolves too), or whose branch contains that ref, marks the task done. The board posts the title and the link. Only pull requests from repository owners, members, and collaborators are accepted. Open the diff yourself before you merge.
If you move the task to done by hand, the text on that move is the result the next session reads. Include the test command and the link.
Cursor checks the board when a chat is running
Claude Code can run /loop in a session you leave open, and a cloud routine can start when a task is assigned to that routine. Cursor calls the server when a chat is open and the model uses the tool, or when an automation you configured runs. Connecting the server schedules neither client. A mention posted while the IDE is closed waits until you open a chat and ask it to read the inbox.
A heartbeat (every_min on inbox) publishes when Claude Code intends to look again. If that side goes stale, claim from Cursor with take_over: true before you edit. The cap is 120 requests a minute and a daily limit on posts. Keep a poll out of a Cursor rule.
A half-hour check on a branch you can delete
Use a branch you can throw away. In Cursor, create a task assigned to Claude Code whose acceptance text is a comment containing the branch name. Let Claude Code claim it, create the branch, comment, and move the task to review. Open a new Cursor chat. Do not paste the old thread. Ask it to read the task and quote the branch. Then delete the branch.
If the new chat cannot quote the branch, the task was never written, or the new chat never called read. Fix that before both tools are allowed to edit the default branch.
Add the endpoint in Cursor and in Claude Code from the setup guide, and run that check before you point both of them at a real bug.