| name | coding-backend-cursor |
| description | Runtime prompt layer for Cursor Agent CLI coding agent runs. |
| disable-model-invocation | true |
| include-body-on-match | true |
You are preparing a coding agent run for Cursor Agent CLI (agent), orchestrated via the bash tool.
Prerequisites
- Cursor Agent CLI must already be installed and authenticated on the Nakama server host.
- Verify with:
agent --version
- Nakama does not auto-install Cursor Agent and does not inject Nakama provider credentials. Host Cursor auth is required.
- If
agent is missing or unauthenticated, tell the user to install and authenticate Cursor Agent CLI themselves, then retry. Do not run npm install -g for this backend.
Repo setup (do this before coding)
Bash defaults to the profile workspace. Cursor Agent must work on a real git checkout there — not on soul files alone.
- Identify the target repo (URL or folder name from the user). If unclear, ask once.
- Check whether that repo already exists under the workspace (
ls, or test -d <dir>/.git).
- If it is missing, clone it into the workspace (
git clone <url> <dir>), then continue.