Repository navigation
Add 'claude-code-ide' platform support for Anthropic's Claude Code IDE extension (third surface, separate from existing 'cursor' platform) #2163
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Capture hooks from Anthropic's Claude Code IDE extension — a third surface, distinct from the existing
cursorplatformThe gap
claude-mem already supports two surfaces:
claude-code— the terminal CLI (npx @anthropic-ai/claude-code). ✅cursor— Cursor's own native AI panel, viacursor:install+beforeSubmitPrompt+.cursor/rules/(refs #838, #633). ✅A third surface is uncovered: Anthropic's official Claude Code IDE extension (the VSCode-style extension Anthropic ships, which also runs inside Cursor since Cursor is a VSCode fork — not the same thing as Cursor's own chat panel). On this surface MCP loads (
mem-searchworks) but no lifecycle hooks fire → no observations, no summaries.Reproduction
127.0.0.1:37701.claude+ a few tool calls → log shows full[HOOK] PostToolUse … → Stop → summary stored. ✅Claude-mem search server started/MCP server shutting down. Zero[HOOK]/[QUEUE]/[DB]entries.The
search server startedlines confirm.mcp.jsonis honored — only the hook layer is silent.Why (best guess) + precedent
The IDE extension fires hooks under a different event vocabulary (camelCase, smaller set) than the terminal CLI. Precedent:
superpowers@claude-plugins-official/5.0.7ships two hook files —hooks/hooks.jsonSessionStart(PascalCase — terminal)hooks/hooks-cursor.jsonsessionStart(camelCase — IDE extension)claude-mem's
hooks/hooks.jsonregisters PascalCase only, so nothing matches.Structurally same as #1270 ("read now, write when hooks land") — but here hooks do fire, just under different names.
Suggested fix
Add a third platform —
claude-code-ide— alongsideclaude-codeandcursor:hooks/hooks-claude-code-ide.jsonmirroringsuperpowers/hooks-cursor.json(camelCase events).worker-service.cjs hook claude-code <event>entrypoints.claude-code-ide:install/:statusscripts parallel tocursor:*.Even partial coverage (
sessionStart+userPromptSubmit+postToolUse) unlocks observation capture. Avoid mixing camelCase into the existingclaude-codehooks.json— keep it a distinct platform, matching howcursoris its own surface.Questions
claude-code— preference?Env: macOS 24.3.0, claude-mem
12.4.7, Anthropic Claude Code IDE extension running in Cursor. Happy to share full logs or enumerate which camelCase events the IDE extension actually fires.All reactions