Cursor Origin

Connect a Cursor Origin repository so the AI can reference your code and its structure — and so Delivery can open pull requests against it.

Overview

Origin is Cursor's code host for repositories and pull requests. The Origin Connection gives Hamster two things at once:

  • Read access for the AI. Once connected, the AI can answer questions about the codebase, reference file structure and content when generating Briefs, and ground its suggestions in the repository you're actually working on.
  • A delivery target. When you deliver a Brief with Hamster Cloud against a connected Origin repository, Hamster pushes a delivery branch and opens a pull request on it.

The Origin Connection is separate from the Cursor Connection, which hands deliveries to Cursor Agents. You can use either or both. Cursor Agents deliver GitHub repositories only, so they can't deliver a repository that lives on Origin.

Origin connects by installing the Hamster Origin App. One installation can include multiple repositories, and the Connection can see the repositories you granted access to during installation. The same installation can be used by multiple Hamster teams, and each team chooses its own repositories.

What It Syncs

  • Files and content — The contents of files in the repository at the branch you select, indexed for AI search and context.
  • Repository structure — Directory layout and file organization.
  • Code symbols — Functions, classes, and other named symbols indexed for AI search and context.

Each repository tracks one branch, which you choose when you connect it.

Once a repository is indexed, ask about it in Chat and Hamster answers from that code.

How to Connect

  1. Go to Knowledge > Connections in your workspace and click the Cursor Origin tile. You need permission to manage connections.
  2. Review the access Hamster asks for: what it reads, then what it writes only when you choose to (branches and commits, pull requests, comments and reviews). Then click Install Origin App. Origin's app installation page opens in a new window and shows the exact permissions (see Origin App Permissions).
  3. On Origin, choose the owner, choose whether the app can access all repositories or only the ones you select, and install the Hamster Origin App.
  4. Origin's window closes, and Hamster opens the repository picker on the Connections page in your original tab.
  5. Select repositories. Choose the repositories and branches to index, then confirm:
    • Hamster Free plan: You can index 1 repository across GitHub, GitLab, Bitbucket, and Origin. Selecting more than one offers you an upgrade before you can confirm.
    • Paid Hamster plan: The picker lets you index up to 100 repositories per connection.

If installation fails, Hamster shows why. Whether you cancelled or it failed, start again from the Cursor Origin tile.

This recording predates the write-access list in Hamster's connect dialog and Origin's install window closing on its own.

Starting from Origin

You can also install the Hamster Origin App on Origin first, from Origin Apps (the Apps page in your codebase settings) or from the app's install link. Origin then sends you to Hamster:

  1. If you aren't signed in to Hamster, sign in or create an account in the same browser. Hamster holds the install for 30 minutes while you do.
  2. Hamster checks that you're signed in with the same email as the Cursor account that installed the app. If the emails differ, Hamster opens the Cursor Origin connect dialog on Connections instead, so you can connect from Hamster.
  3. Hamster connects the installation to the team you last opened in Hamster, otherwise to another team you belong to. If you belong to several teams, open the right one in Hamster before you install. You need permission to manage connections in that team.
  4. Hamster opens that team's Connections page, shows Cursor Origin connected to followed by the team's name, and opens the repository picker for the new installation. Choose the repositories to index. If you close the picker first, the new Origin card shows 0 repositories; click the card to choose them later.

If Hamster can't finish the connection, it adds no card, shows a message saying why, and leaves the app installed on Origin. See Troubleshooting.

Repository Selection and Branches

For each repository you select, choose the branch to track — by default the repository's own default branch. Hamster indexes code from that branch.

Confirming the selection starts indexing each repository. Repositories you clear from the selection stop syncing and drop out of code search, without affecting the Connection itself. Hamster keeps what it already indexed, so selecting a repository again picks it back up. To stop indexing everything, clear every repository; the button then reads Stop indexing repositories.

Keeping the Index Fresh

Code updates normally appear after a push to the tracked branch. There are no per-repository webhooks to set up. Pushes to other branches, tag pushes, and branch deletions do not update the index. If you delete the tracked branch, its last indexed code remains searchable; choose another tracked branch to keep your code context current. If you delete a repository on Origin, Hamster stops indexing it and removes its indexed code.

If an update is delayed, Hamster checks again automatically. Check the connection's indexing status if changes aren't appearing.

Connection Health

The connected Origin card shows how many repositories are connected and a rollup of indexing state across them: Indexing, Embedding, Indexed, Index stale, or Sync failed. A failed sync surfaces the reason so you can act on it.

If Hamster can no longer use the installation, the card reads Reconnect to continue syncing. Click the card: the picker shows Cursor Origin authorization expired with a Reconnect Cursor Origin button. If you can't manage connections, the card reads Ask an admin or creator on this account to reconnect instead.

If the installation is suspended on Origin, the card reads Suspended in Cursor Origin. Hamster keeps your repositories selected and syncs them again once the installation is resumed.

Managing the Connection

Click the connected Origin card to reopen the repository picker. Only people who can manage connections can open the picker or see the × on the card.

The repositories the app can see are chosen on Origin, with Manage on the Hamster Origin App in Origin Apps. The repositories Hamster indexes are chosen in the picker. If you remove a repository from the app on Origin, Hamster stops indexing it and it drops out of code search.

To stop indexing a repository, clear it from the selection. To change which branch a repository tracks, reopen the picker and choose a different one.

Removing the Connection

  • From Hamster. Hover over the connected Origin card, click ×, then confirm with Delete in the Delete Connection dialog. Hamster stops indexing every repository from that connection, removes its indexed code, and uninstalls the Hamster Origin App from Origin. If another Hamster team still uses the same installation, the app stays installed on Origin for that team. To move a connection to another team, connect it there first, then remove it here; in the other order, removing it uninstalls the app.
  • From Origin. Uninstall the Hamster Origin App in Origin Apps. Hamster removes the connection from every Hamster team that uses that installation: the card goes away, syncing stops, and the indexed code is removed.

Either way, Briefs, Tasks, and other data are kept, and Hamster doesn't delete the branches, pull requests, or comments it created on Origin. To connect again, start from the Cursor Origin tile.

Delivery and Pull Requests

Delivering a Brief with Hamster Cloud against a connected Origin repository pushes the delivery branch and opens a draft pull request. It stays a draft when the run finishes; mark it ready yourself when you want reviewers on it. If a pull request is already open for that branch, Hamster reuses it instead of opening a second one.

The pull request is opened by the Hamster Origin App, not by your Cursor account. Commits are authored as Hamster Agent.

The pull request is linked back to the Brief that produced it. In the Brief header, the pull request control shows Draft, Open, Merged, or Closed and links out to Origin.

You can also start the delivery from chat by asking Hamster to deliver the Brief to your Origin repository through Hamster Cloud.

Review on a Pull Request

Review reads that pull request's reviews, comments, and checks. Comments you post from Review are published by the Hamster Origin App, so there is no separate sign-in. On Origin the author is the app, not you; in Hamster your comments show Hamster (Cursor app) as the author. The toast says Comment posted to Cursor Origin.

Your Ready or Not yet vote stays in Hamster; Hamster doesn't post either vote to Origin. Hamster reads check runs but does not post them.

Starting Routines

A push to a connected repository's tracked branch fires the Push to branch Routine trigger. Pull requests, comments, and reviews on Origin don't start routines.

Importing Skills

From the Skills tab, click New skill and select Sync repo skills, then pick your Origin repository. Hamster reads each SKILL.md inside a subfolder of .agents/skills/, .claude/skills/, or skills/ (for example skills/my-skill/SKILL.md) from the last indexed snapshot and adds it to your Skills library.

Import from GitHub only takes public GitHub links, so it can't read an Origin repository.

Origin App Permissions

Hamster reads repository contents for code context and needs write access to publish delivery branches and pull requests. For Review, it reads reviews, comments, and checks, and posts comments. These permissions also let an app do more, including merging pull requests, turning on auto-merge, re-requesting check runs, dismissing reviews, and posting review decisions. Hamster does none of these. The Hamster Origin App asks for:

  • Read repository contents, branches, and commits
  • Create, update, and delete repository contents and branches
  • Read pull requests and changed files
  • Create and update pull requests
  • Read pull request comments and reviews
  • Create and update pull request comments and reviews
  • Read check suites and runs

Origin adds read access to repository metadata on every install and shows the exact permissions on its install screen. The permissions apply to every repository the app can access on Origin, not only the ones Hamster indexes. To limit them, give the app access only to the repositories you plan to use.

Troubleshooting

  • An install you started on Origin didn't connect. Hamster adds no card, shows a message saying why, and leaves the app installed on Origin. If you don't plan to connect, uninstall the app in Origin Apps.
    • You had no Hamster team yet. Hamster creates one and opens the Cursor Origin connect dialog so you can connect from Hamster. If you have a pending invitation, Hamster takes you to it instead; accept it, then connect from Hamster.
    • Your Hamster email doesn't match the Cursor account that installed the app. Hamster opens the Cursor Origin connect dialog so you can connect from Hamster.
    • More than 30 minutes passed before you signed in. Hamster opens the Cursor Origin connect dialog so you can connect from Hamster.
    • You can't manage connections in the team Hamster picked. Ask an admin or creator on that team to connect Origin from its Connections page, or remove the app in Origin Apps.
  • Removing the connection didn't uninstall the app. Hamster still removes the connection and shows a warning with an Open Apps button. Click it to open Origin Apps, then uninstall the Hamster Origin App.
  • Delivery is blocked because the repository owner can't push to Origin. The owner needs a paid Cursor plan without Privacy Mode Legacy, with Origin turned on. Retry once that's fixed.
  • Delivery is blocked because the repository is a read-only mirror. A repository that is still a read-only mirror can't accept delivery changes. Wait until it becomes a stable outbound mirror, or detach the mirror, then retry.

Tips

  • Track the branch you develop on — usually main or develop, not a feature branch.
  • You can connect GitHub, GitLab, and Origin side by side. They are separate Connections with separate repository selections.
  • Connecting a repository indexes it, it does not run it. Indexing reads and references the code for context; running code is Delivery's job, not the Connection's.
  • Pair Origin with Linear or Jira so the issue and the code that addresses it are both in reach when you ask.