Reference
Troubleshooting
Fixes for the most common XOROX setup problems with xorox, Cursor and Claude Code.
Start with xorox status
Run xorox status in the project directory. It shows which XOROX project the directory resolves to, whether its credential is valid, and which coding agents are configured. It never prints your token. If it reports the project isn't connected, run xorox init.
"xorox: command not found" or "xorox is not recognized"
On macOS and Linux the installer puts xorox in ~/.local/bin, which may not be on your PATH: add it to your shell profile and open a new terminal. On Windows the installer adds %LOCALAPPDATA%\Programs\xorox to your user PATH, but terminals and editors that were already open only see it after a restart — close them and open a new one. See Installation.
Ruleset context doesn't seem to reach the agent
The hooks fail open — if anything is wrong, your prompt still goes through, just without XOROX context, and nothing visibly errors. Check, in order:
xorox statusshows the right project and a valid credential. If the credential was revoked, create a new one and runxorox initagain.- Your agent is configured:
xorox statuslists it. If not, runxorox init(orxorox init --agent cursor/--agent claude). - You've reopened the project in Cursor, or started a new Claude Code session, since running
xorox init. - At least one Ruleset in the project is active, not inactive or archived.
- In Cursor, the xorox MCP server is enabled under Cursor Settings → Tools & MCP. Large Rulesets are fetched through it, so they can't load while it's off.
Cursor was already open during setup
Cursor reads .cursor/hooks.json and .cursor/mcp.json when a project loads, not continuously. Reopen the project after running xorox init or editing either file by hand.
The xorox MCP server shows up but its tools aren't available
Cursor detects a declared MCP server automatically but doesn't enable it. Open Cursor Settings → Tools & MCP, find xorox, enable it, then start a new Agent chat — a chat already open may still be using its old tool list.
In Claude Code, accept the trust prompt for the project's .mcp.json server the first time it appears; until you do, the XOROX tools aren't available.
The agent's first XOROX tool call asks for permission
That's expected — it's Cursor's own approval dialog, not an error. Choose Run to approve once, or Always run to stop it asking again for that tool.
The directory isn't connected to a project
XOROX works out the project from the directory you're in, using the link xorox init created on this machine. If you cloned the repository on a new machine, or moved the project, run xorox init there. For scripts and CI you can instead set XOROX_PROJECT_ID and XOROX_TOKEN as environment variables.
Credential invalid or revoked
A revoked credential can't be restored and a lost token can't be viewed again. Create a new credential from the project's Credentials tab and run xorox init — see Authentication.
Start a new Agent chat after config changes
An Agent chat that was already open when you enabled the MCP server, ran xorox init, or updated XOROX may keep using stale results. When in doubt, start a new chat.