Harnesses

# Cursor

Install, verify and troubleshoot AgentFeedback for Cursor.

Connect Cursor to your local AgentFeedback inbox, or to the server you already configured. The installer changes this user's harness configuration; it does not install Cursor itself.

## Before you start

Install the binary with the [local quickstart](https://agentfeedback.dev/docs/quickstart/local), then make sure `agentfeedback version` works in the terminal where you run your harness. For a team inbox, configure the client with the [self-hosted quickstart](https://agentfeedback.dev/docs/quickstart/self-hosted) first; installation keeps that server configuration.

These commands automate setup on macOS and Linux. On Windows, `install` exits with code 2 and prints manual skill, MCP and instruction-file steps for the named harness. Follow those steps instead; hooks are not wired on Windows.

## Install

Preview the files and commands, then apply the installation:

```
agentfeedback install cursor --dry-run
agentfeedback install cursor
```

`agentfeedback init` is the interactive alternative: it detects installed harnesses, asks which to wire and checks the result. Do not install the same skill through a marketplace as well.

## What gets configured

- **Detected by:** `cursor-agent`, or an `agent` that resolves into a Cursor install; `~/.cursor`
- **Skill file:** `~/.cursor/skills/agentfeedback/SKILL.md`
- **Hooks:** `~/.cursor/hooks.json` `hooks.postToolUseFailure` (note), `hooks.stop` and `hooks.sessionEnd`
- **Session reminder:** `hooks.sessionStart` runs `agentfeedback prime --format cursor`
- **Instruction file:** none: Cursor's User Rules live in its settings UI, not in a file
- **MCP configuration:** `~/.cursor/mcp.json` `mcpServers.agentfeedback`

In the hook descriptions, “note” means a nudge asking the agent to consider reporting a tool failure; it is not a report submitted automatically.

Cursor also runs Claude Code's hooks and skills. Its User Rules live in the settings UI, so this adapter does not write a global instruction file.

### Using MCP instead of the CLI skill

Choose this only if you want tools over MCP instead of the skill and hooks:

```
agentfeedback install cursor --mcp
```

With no server configured, this registers `agentfeedback mcp` over stdio. With a server configured, it registers the server URL. See [MCP modes and credentials](https://agentfeedback.dev/docs/reference/operate#wire-the-harnesses) before switching an existing installation.

For remote MCP, set `AGENT_FEEDBACK_API_KEY` in the environment that launches the harness, using the server key you received privately. The key in the client configuration is not used by remote MCP. Restart the harness after setting the variable; never paste the key into an agent conversation or commit it.

## Verify

Start a new harness session after installation, then inspect the wiring and exercise the configured inbox:

```
agentfeedback install --list
agentfeedback doctor
agentfeedback doctor --e2e
```

`install --list` should show this harness and the intended binary or MCP endpoint. Resolve any `doctor` warnings. The end-to-end check submits an `install-check` record; normal lists hide these records. It checks the reporting path, not whether the harness actually loaded the skill or fired a hook.

In Cursor, confirm that the AgentFeedback skill or MCP tools are available. Ask the agent to file one clearly labelled setup report, then use `agentfeedback list --open` (or `agentfeedback ui`) to find it. Do not infer that hooks work just because the command-line check passed.

## Troubleshooting

- **Harness not detected:** check the executable and configuration directory listed above. Run installation as the same OS user who runs the harness.
- **Foreign or edited entry:** the installer refuses to overwrite a skill, hook or MCP entry it does not own. Inspect the named path and remove the old integration through its original installer, or move it aside deliberately, before retrying.
- **Different binary versions:** `install --list` shows the binary a hook runs. Keep it aligned with `agentfeedback` on your PATH, then rerun the install command after upgrading.
- **No automatic flush:** harnesses without hooks, and skill-only installations, need `agentfeedback flush` periodically when using a server.

## Remove the integration

```
agentfeedback uninstall cursor --dry-run
agentfeedback uninstall cursor
```

Uninstall removes the entries it owns, leaving unrelated configuration and your reports intact. If you changed an installed file, inspect the manual steps it prints. On Windows, `uninstall` also exits 2: undo the manual installation steps yourself, removing only the AgentFeedback skill, MCP entry and instruction text.

## Source and verification

Fixture-tested on 2026-11-10. This is upstream's recorded verification level, not a claim that every setup above was live-tested by this site.

Source: [integration registry](https://github.com/AgentFeedback/agentfeedback/blob/c7573e1b301aa1495f290c417ce2fb390caee544/integrations.json) and [operating guide](https://agentfeedback.dev/docs/reference/operate#wire-the-harnesses), pinned at `c7573e1`.

[Codex plugin marketplace Install, verify and troubleshoot AgentFeedback for Codex plugin marketplace.](https://agentfeedback.dev/docs/harnesses/codex-marketplace) [OpenCode V1 Install, verify and troubleshoot AgentFeedback for OpenCode V1.](https://agentfeedback.dev/docs/harnesses/opencode-v1)

[Canonical HTML](https://agentfeedback.dev/docs/harnesses/cursor)
