cursor-agent.nvim
A minimal Neovim plugin to run the Cursor Agent CLI inside a centered floating terminal.
Install / Use
npx skills add xTacobaco/cursor-agent.nvimInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of cursor-agent.nvim
cursor-agent.nvim scores 70/100 on our quality scale, 3815th of 4,617 Development & Engineering skills we index.
Its .cursorrules is 4.5 KB long, well organised into 16 sections with 9 code examples: a solid amount of guidance for an agent.
It has 57 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated about 15 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-10-21 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 71/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
cursor-agent.nvim compared with similar skills
All 4 of these similar skills score higher than cursor-agent.nvim; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cursor-agent.nvim (this skill)by xTacobaco | 70 | 57 | 15mo ago | .cursorrules |
| taste-skillby Leonxlnx | 100 | 110.6k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 69.8k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 46.6k | 2d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 44d ago | SKILL.md |
Frequently asked questions
- How do I install cursor-agent.nvim?
- Run
npx skills add xTacobaco/cursor-agent.nvim. The install tabs above show the steps for each supported agent. - Which AI agents does cursor-agent.nvim work with?
- It is written for Cursor, as a .cursorrules file. Other agents that read the same format can often use it too.
- Is cursor-agent.nvim safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 71/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cursor-agent.nvim still maintained?
- The repository was last updated about 15 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubCursor Agent Neovim Plugin
A minimal Neovim plugin to run the Cursor Agent CLI inside a centered floating terminal. Toggle an interactive terminal at your project root, or send the current buffer or a visual selection to Cursor Agent.
Requirements
- Cursor Agent CLI:
cursor-agentavailable on your$PATH
Installation
lazy.nvim
{
"xTacobaco/cursor-agent.nvim",
config = function()
vim.keymap.set("n", "<leader>ca", ":CursorAgent<CR>", { desc = "Cursor Agent: Toggle terminal" })
vim.keymap.set("v", "<leader>ca", ":CursorAgentSelection<CR>", { desc = "Cursor Agent: Send selection" })
vim.keymap.set("n", "<leader>cA", ":CursorAgentBuffer<CR>", { desc = "Cursor Agent: Send buffer" })
end,
}
packer.nvim
use({
"xTacobaco/cursor-agent.nvim",
config = function()
require("cursor-agent").setup({})
end,
})
vim-plug
Plug 'xTacobaco/cursor-agent.nvim'
Then in your init.lua:
require("cursor-agent").setup({})
Note: The plugin auto-initializes with defaults on load (via after/plugin/cursor-agent.lua). Calling setup() yourself lets you override defaults.
Quickstart
- Run
:CursorAgentto toggle an interactive floating terminal in your project root. Type directly into thecursor-agentprogram. - Visually select code, then use
:CursorAgentSelectionto ask about just that selection. - Run
:CursorAgentBufferto send the entire current buffer (handy for files likecursor.md). - Press
qin normal mode in the floating terminal to close it or run :CursorAgent<leader>cato toggle it away.
All interactions happen in a centered floating terminal.
Commands
- :CursorAgent: Toggle the interactive Cursor Agent terminal (project root).
- :CursorAgentSelection: Send the current visual selection (writes to a temp file and opens terminal rendering).
- :CursorAgentBuffer: Send the full current buffer (writes to a temp file and opens terminal rendering).
Configuration
Only set what you need. For typical usage, cmd and args are enough.
require("cursor-agent").setup({
-- Executable or argv table. Example: "cursor-agent" or {"/usr/local/bin/cursor-agent"}
cmd = "cursor-agent",
-- Additional arguments always passed to the CLI
args = {},
})
Advanced (for lower-level CLI helpers present in the codebase but not required for terminal mode):
require("cursor-agent").setup({
-- Whether to send content via stdin when using non-terminal helpers
use_stdin = true,
-- Reserved for future concurrency control
multi_instance = false,
-- Timeout for non-streaming helpers (ms)
timeout_ms = 60000,
-- Auto-scroll behavior for certain UI helpers
auto_scroll = true,
})
Examples
- Use an absolute path for the CLI:
require("cursor-agent").setup({ cmd = "/usr/local/bin/cursor-agent" })
Suggested keymaps
-- Toggle the interactive terminal
vim.keymap.set("n", "<leader>ca", ":CursorAgent<CR>", { desc = "Cursor Agent: Toggle terminal" })
-- Ask about the visual selection
vim.keymap.set("v", "<leader>ca", ":CursorAgentSelection<CR>", { desc = "Cursor Agent: Send selection" })
-- Ask about the current buffer
vim.keymap.set("n", "<leader>cA", ":CursorAgentBuffer<CR>", { desc = "Cursor Agent: Send buffer" })
Programmatic usage
You can call the API directly if you prefer:
-- Launch a one-off run passing a prompt as argv (opens a floating terminal)
require("cursor-agent").ask({ prompt = "How can I refactor this function?" })
This opens a floating terminal using termopen, with the working directory set to the detected project root.
Troubleshooting
- CLI not found: Ensure
cursor-agentis on your$PATH. - No output appears: Verify your CLI installation by running it in a normal terminal.
- Wrong directory: The terminal starts in your project root (LSP root if available, otherwise common markers like
.git).
How it works
- A floating terminal is created with
termopen, centered, wrapped, and ready for immediate input. - The terminal starts in the detected project root so Cursor Agent has the right context.
- For selection/buffer commands, the text is written to a temporary file and its path is passed to the CLI as a positional argument.
Contributing
Contributions are welcome! If you have ideas or improvements, please open an issue or submit a PR.
Acknowledgements
- Cursor Agent CLI by Cursor - This plugin was build entirely using GPT-5 in Cursor Agent CLI. Development cost: $0.45 with 10m 34s of API time.
Related Skills
taste-skill
110.6kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
69.8kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
46.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
