feat(types): add Cursor (cursor-agent CLI) support (#131)#189
Merged
Conversation
Cursor's CLI agent (cursor-agent, Composer 2.5) joins the agmsg mesh as a turn-mode type. Thanks to the #181 manifest-driven type registry, this is a pure plugin: a new scripts/drivers/types/cursor/ directory, no core changes. - type.conf: turn/off delivery, detect_proc=cursor-agent, hooks_file points at .cursor/rules/agmsg.mdc, cli=cursor-agent (metadata; not spawnable yet). - _delivery.sh: writes an always-apply .mdc rule (`alwaysApply: true` frontmatter) so the Cursor CLI auto-loads the inbox-check instruction every turn — the cursor-agent analogue of gemini/opencode's rules file. - template.md: the /agmsg command doc, typed for cursor. - Tests mirror the opencode delivery suite plus an .mdc-frontmatter assertion; type-registry known-types updated (seven → eight built-ins). - Docs: agent-types.md and install.sh --agent-type help list cursor. Local (cursor-agent hooks are beta); the reporter offered to verify on a real Cursor install. Requested by @kurochan001.
…is honored The two TPL_TYPE case arms in install.sh listed gemini|antigravity|opencode|hermes but not cursor, so --agent-type cursor fell through to the codex template and shipped a codex-typed SKILL.md — the documented Cursor install path would then join/deliver as codex, defeating #131. Add cursor to both arms and a regression test. (co1 review on #189.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Cursor (
cursor-agentCLI, Composer 2.5) as a first-class agmsg agent type, as requested in #131. With the #181 manifest-driven type registry now onmain, this is a pure plugin — a singlescripts/drivers/types/cursor/directory, no core code changes.How Cursor integrates
Cursor's local CLI auto-loads project rules from
.cursor/rules/*.mdc. An.mdcwithalwaysApply: trueis applied every turn — the always-on instruction channel agmsg needs, the cursor-agent analogue of gemini/opencode's markdown rules file. Maps cleanly to agmsgturndelivery.type.conf—delivery_modes=turn off,detect_proc=cursor-agent,hooks_file=.cursor/rules/agmsg.mdc,cli=cursor-agent(metadata)._delivery.sh— writes the.mdcwithalwaysApply: truefrontmatter + the inbox-check instruction.template.md— the/agmsgcommand doc, typed for cursor.Scope
cursor-agentonly (Cloud agents don't fire lifecycle hooks), per the issue.spawn.shlaunch ofcursor-agentis left as a follow-up; this PR is about joining the mesh and turn-mode delivery.Tests
Mirrors the opencode delivery suite (accept turn / off removes / reject monitor+both / idempotent) plus an assertion that the rule file is an always-apply
.mdc. Updated the type-registry built-ins test (7 → 8). Full suite green except two pre-existingtest_watch.batstiming flakes (unrelated — this PR touches no watcher code).@kurochan001 offered to verify on a real Cursor install — would be very welcome once this is in.
Closes #131.