Skip to content
This repository was archived by the owner on Sep 6, 2026. It is now read-only.

chore(adapters): remove Cursor adapter - #161

Merged
ikroal merged 2 commits into
mainfrom
chore/remove-cursor-adapter
May 20, 2026
Merged

ikroal merged 2 commits into
mainfrom
chore/remove-cursor-adapter

Conversation

@ikroal

@ikroal ikroal commented May 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • 移除 Cursor 适配器:Cursor 的 rules 系统是纯 prompt 层面的上下文注入,不支持 tool call 拦截,can_block=True 的假设不成立
  • 删除 Cursor 源码、模板、快照和测试(7 个文件删除,27 个文件修改)
  • 更新所有文档(README、getting-started、design doc)

Context

经网络调研确认:

  • Cursor 的 rules 系统仅支持 prompt 层面的上下文注入(Project Rules、User Rules、Team Rules、AGENTS.md)
  • 不支持 tool call 拦截机制(无 PreToolUse/PostToolUse 等 hook)
  • ai-guard 假设的 .cursor/hooks/check.sh 在 Cursor 官方文档中不存在

Test plan

  • 1132 个单元测试全部通过
  • pre-commit 格式化和 lint 检查通过
  • pre-push pytest 通过(1216/1216, cov: 98%)
  • grep 确认源码和测试中无 cursor/CursorAdapter 残留引用

🤖 Generated with Claude Code

Cursor's rules system is purely prompt-level context injection with no
tool call interception capability. The adapter's can_block=True was based
on a non-existent .cursor/hooks/check.sh mechanism.

Remove the Cursor adapter, its templates, snapshots, and all references
across source code, tests, and documentation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ikroal

ikroal commented May 20, 2026 •

Copy link
Copy Markdown
Owner Author

🤖 AI Code Guard 检查报告

📅 生成时间: 2026-05-20 06:36:22

🔍 阶段: pre-push | 结果: ✅ 通过


📋 检查清单

项目 状态
Linting ✅
Tests ✅ 98%

📊 检查详情

检查项 状态 耗时 指标
pre-commit:lint-python ✅ 通过 251ms
pytest ✅ 通过 14824ms cov: 98%

2/2 项检查通过

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ikroal
ikroal merged commit 2ed3a8a into main May 20, 2026
14 checks passed
@ikroal
ikroal deleted the chore/remove-cursor-adapter branch May 20, 2026 06:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant