Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/felipeinf/cursor-for-claude/agentgit clone --depth 1 https://github.com/felipeinf/cursor-for-claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/felipeinf/cursor-for-claude/agent)<a href="https://agentmods.dev/commands/felipeinf/cursor-for-claude/agent"><img src="https://agentmods.dev/badge/commands/felipeinf/cursor-for-claude/agent.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.01043 |
| Opus 5 | $0.00008 | $0.00522 |
| Sonnet 5 | $0.00003 | $0.00209 |
| Haiku 4.5 | $0.00002 | $0.00104 |
Grade A, and why
agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Invoke the cursor:cursor-agent subagent via the Agent tool (subagent_type: "cursor:cursor-agent"), forwarding the natural-language prompt as described below (raw task text with routing flags stripped, or the combined context-plus-task string when --context was used).
The final user-visible response must be Cursor's output verbatim.
Raw user request: $ARGUMENTS
Context flag:
- If the request includes
--context, handle it only in this command. Do not forward--contextto the subagent or totask. - Before anything else below, if
--contextwas present: build a short (~5 lines, one per field) context block from this Claude session’s recent conversation and prepend it to the user’s task text. Use that combined string as the natural-language prompt passed to the subagent. Remove--contextfrom both routing flags and task text. - Fixed template:
## Context (from Claude session)
- Goal: <one line>
- Recent decisions: <one line>
- Files touched: <comma-separated paths, or "n/a">
- Current state: <one line>
- Open question / blocker: <one line, or "none">
## Task
<original user task text>
- Block rules: facts already stated in the conversation only; no invention. No literal transcript, no code snippets, no secrets, keys, or tokens. If a field does not apply, use
n/aornone. If nothing concrete exists to summarize (e.g. first message in session), omit the context block and tell the user briefly before continuing. - If the user combines
--contextwith--continueor--resume, still prepend the block as above. --contextis exclusive to this slash command and is never acursor-agentor companion flag.
Execution mode:
- If the request includes
--wait, run thecursor:cursor-agentsubagent in the foreground. - Otherwise (no flag or explicit
--background), run thecursor:cursor-agentsubagent in the background. Background is the default. --backgroundand--waitare execution flags for Claude Code. Do not forward them totask, and do not treat them as part of the natural-language task text.--model,--mode, and--read-onlyare runtime flags. Preserve them for the forwardedtaskcall, but do not treat them as part of the natural-language task text.--contextis handled only here (see Context flag); never forward it totask.- If the request includes
--continue,--resume <id>, or--fresh, do not ask whether to continue. The user already chose. - Otherwise, before starting Cursor, check for a resumable thread from this Claude session by running:
node "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-companion.mjs" task-resume-candidate --json
- If that helper reports
available: true, useAskUserQuestionexactly once to ask whether to continue the current Cursor thread or start a new one. - The two choices must be:
Continue current Cursor threadStart a new Cursor thread
- If the user is clearly giving a follow-up instruction such as "continue", "keep going", "resume", "apply the top fix", or "dig deeper", put
Continue current Cursor thread (Recommended)first. - Otherwise put
Start a new Cursor thread (Recommended)first. - If the user chooses continue, add
--continuebefore routing to the subagent. - If the user chooses a new thread, add
--freshbefore routing to the subagent. - If the helper reports
available: false, do not ask. Route normally.
Operating rules:
- The subagent is a thin forwarder only. It should use one
Bashcall to invokenode "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-companion.mjs" task ...and return that command's stdout as-is. - Return the Cursor companion stdout verbatim to the user.
- Do not paraphrase, summarize, rewrite, or add commentary before or after Cursor’s stdout (except building the optional session context block when
--contextwas requested). - Default to write-capable runs.
--read-onlysuppresses--force. - If the helper reports that Cursor is missing or unauthenticated, stop and tell the user to run
/cursor:setup. - If the user did not supply a request, ask what Cursor should investigate or fix.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 68 lines · 16 tokens per session scan A 502aca3e0f1a
agent is a command published in the GitHub repository felipeinf/cursor-for-claude (7 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 1,043 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
t800-start
Единая команда. Создание rules, skills, commands, subagents, hooks — для плагина, текущего проекта или глобально.
t800-doctor
Зачем: быстрый scripts-only отчёт: версия, profile, memory, STATE, counts, alwaysApply, последние audits — без narrative-агента по умолчанию.
t800-onboard
Для чата с новичками. Показывает, что настроено в Cursor (global + local), и что умеет отдел T-800.
t800-bootstrap
Запускайте один раз при установке плагина или для новичка в чате.
t-800-factory-validate
Запусти проверки и при необходимости вызови аудитора.
enrich
Enrich project memory by mining 100 recently merged PRs: extracts decisions, conventions, gotchas, and architectural facts from PR discussions, review comments, and PR bodies.