{"_id":"@5x-ai/provider-cursor-agent","name":"@5x-ai/provider-cursor-agent","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@5x-ai/provider-cursor-agent","version":"1.0.0","description":"Cursor Agent CLI provider plugin for @5x-ai/5x-cli","license":"MIT","author":{"name":"Flying Banana Productions"},"homepage":"https://github.com/Flying-Banana-Productions/5x-engineer/tree/main/5x-cli/packages/provider-cursor-agent","repository":{"type":"git","url":"git+https://github.com/Flying-Banana-Productions/5x-engineer.git","directory":"5x-cli/packages/provider-cursor-agent"},"bugs":{"url":"https://github.com/Flying-Banana-Productions/5x-engineer/issues"},"keywords":["5x","cursor","cursor-agent","provider","plugin","ai"],"type":"module","types":"./src/index.ts","exports":{".":"./src/index.ts"},"engines":{"bun":">=1.1.0"},"peerDependencies":{"@5x-ai/5x-cli":"^1.3.0"},"_id":"@5x-ai/provider-cursor-agent@1.0.0","gitHead":"11f218fb587d083a464054a3e3b88b40829432d9","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-Ug7mZo+AzWMEKj+NJThlCrJ5bKM3ib+yfhqpxVgqqJRmR0ex3WLqKw2N9noyNZudAJBMFP44jl/lMKbXxjzeEQ==","shasum":"f1d24a9debbd7c752c322eb874d3af47f62a9ca3","tarball":"https://registry.npmjs.org/@5x-ai/provider-cursor-agent/-/provider-cursor-agent-1.0.0.tgz","fileCount":11,"unpackedSize":38553,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDhiqDyBfoLnKI0ykHzozXvz9QUtBKAF118hD+RwIpEIAiB8WLKmzPv/kbDPfPAsabgEx0omNHgOT0EgjnB13Iq3aQ=="}]},"_npmUser":{"name":"reichert-fbp","email":"spalmer@flyingbananaproductions.com"},"directories":{},"maintainers":[{"name":"reichert-fbp","email":"spalmer@flyingbananaproductions.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/provider-cursor-agent_1.0.0_1786408041020_0.5644921688784375"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-11T00:27:20.865Z","1.0.0":"2026-08-11T00:27:21.159Z","modified":"2026-08-11T00:27:21.407Z"},"maintainers":[{"name":"reichert-fbp","email":"spalmer@flyingbananaproductions.com"}],"description":"Cursor Agent CLI provider plugin for @5x-ai/5x-cli","homepage":"https://github.com/Flying-Banana-Productions/5x-engineer/tree/main/5x-cli/packages/provider-cursor-agent","keywords":["5x","cursor","cursor-agent","provider","plugin","ai"],"repository":{"type":"git","url":"git+https://github.com/Flying-Banana-Productions/5x-engineer.git","directory":"5x-cli/packages/provider-cursor-agent"},"author":{"name":"Flying Banana Productions"},"bugs":{"url":"https://github.com/Flying-Banana-Productions/5x-engineer/issues"},"license":"MIT","readme":"# @5x-ai/provider-cursor-agent\n\nCursor Agent CLI provider plugin for [`@5x-ai/5x-cli`](https://github.com/Flying-Banana-Productions/5x-engineer/tree/main/5x-cli). Runs 5x author/reviewer invocations through the `agent` binary (`cursor-agent`) in headless print mode with streamed JSON output.\n\n## Requirements\n\n- [Bun](https://bun.sh) >= 1.1.0 (same runtime as the CLI)\n- The Cursor `agent` CLI installed and authenticated (or credentials supplied via config, see below)\n- `@5x-ai/5x-cli` >= 1.3.0 (peer dependency)\n\n## Install\n\n```bash\nnpm install @5x-ai/provider-cursor-agent\n# or\nbun add @5x-ai/provider-cursor-agent\n```\n\nInstall it in the project where you run `5x` so the CLI can resolve it.\n\n## Configure\n\nSet the provider on a role in `5x.toml`. The short name `cursor-agent` resolves to this package automatically:\n\n```toml\n[author]\nprovider = \"cursor-agent\"\nmodel = \"...\"          # passed to `agent --model`\n\n[reviewer]\nprovider = \"cursor-agent\"\nmodel = \"...\"\n```\n\nProvider options live in an optional `[cursor-agent]` table:\n\n```toml\n[cursor-agent]\n# agentBinary = \"cursor-agent\"   # path or name of the `agent` executable\n# force = true                   # default true: pass --force for headless file/command execution\n# trust = true                   # default true: pass --trust in print mode\n# sandbox = \"enabled\"            # \"enabled\" | \"disabled\" → --sandbox\n# approveMcps = false            # pass --approve-mcps\n# pluginDir = [\"path/to/dir\"]    # repeated --plugin-dir entries\n```\n\nCredentials can be forwarded to the subprocess via config instead of relying on ambient login state — they are passed as environment variables, never argv:\n\n```toml\n[cursor-agent]\n# apiKey = \"...\"       # forwarded as CURSOR_API_KEY\n# authToken = \"...\"    # forwarded as CURSOR_AUTH_TOKEN\n```\n\nPrefer putting credentials in `5x.toml.local` (gitignored) rather than `5x.toml`.\n\n## Behavior notes\n\n- Sessions are created with `agent create-chat` and resumed per invocation with `--resume`, so continued reviews keep their session context.\n- Prompts exceeding the CLI's argv-safe size limit fail fast with a structured error instead of a truncated invocation.\n- Structured output is extracted from the streamed assistant output, including output emitted in the final assistant flush.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-a965bb1c62b67e90cd2770f8d3c43d04"}