Skip to content

[upstream PR 291] Add multi-IDE installer support for OpenCode, Cursor, Codex, Roo, and Kilo #757

@wbugitlab1

Description

@wbugitlab1

Source: Source pull request number: 291 in rohitg00/agentmemory (URL omitted to avoid GitHub cross-reference)
Title: Add multi-IDE installer support for OpenCode, Cursor, Codex, Roo, and Kilo
Author: RaviTharuma
State: closed
Draft: no
Merged: no
Head: RaviTharuma/agentmemory:feat/multi-ide-installers @ e596721
Base: main @ 1c8713f
Labels: (none)
Changed files: 0
Commits: 0
Created: 2026-05-11T21:38:58Z
Updated: 2026-05-27T18:10:25Z
Closed: 2026-05-27T18:09:01Z
Merged at: (not merged)

Original PR body:

Summary

  • add a first-party agentmemory install CLI command for OpenCode, Cursor, Codex, Roo, Kilo, PI, Hermes, and OpenClaw targets
  • ship new Cursor and Codex hook entrypoints and generate the corresponding host config files plus MCP wiring
  • preserve deep native integrations for Claude/OpenClaw/Hermes/PI while adding best-available automatic capture for hosts that only expose MCP or file-watch surfaces

What changed

  • added src/installers.ts with target-specific installers
  • added new hook adapters: src/hooks/cursor.ts and src/hooks/codex.ts
  • wired agentmemory install into src/cli.ts
  • updated tsdown.config.ts so the new hook scripts are built into both dist/hooks and tracked plugin/scripts
  • added focused tests in test/installers.test.ts

QA

  • npm run build
  • npx vitest run test/installers.test.ts
  • manual installer runs for:
    • node dist/cli.mjs install opencode --project-root <tmp>
    • node dist/cli.mjs install cursor --project-root <tmp>
    • node dist/cli.mjs install codex --project-root <tmp>
    • node dist/cli.mjs install roo --project-root <tmp>
    • node dist/cli.mjs install kilo --project-root <tmp>
      and inspection of generated files/configs

Notes

  • Roo Code and Kilo Code currently receive best-available MCP config generation; they do not expose the same native lifecycle hook surface as Claude/Cursor/OpenCode
  • OpenCode gets both an MCP entry and a generated plugin that forwards session/file/command events into the existing agentmemory hook pipeline

Summary by CodeRabbit

  • New Features

    • Added an install CLI command to install Agent Memory integrations for OpenCode, Cursor, Codex, Roo, Kilo, PI, OpenClaw, and Hermes.
    • Added Cursor and Codex hook and CLI scripts to emit session start/observe/tool-use/stop events and surface returned context.
  • Chores

    • Installer generates and merges editor/plugin configuration and integration artifacts across multiple targets.
  • Tests

    • Expanded tests to verify installer outputs and safe merging into existing configs.

Review Change Stack

Local branch:
Fork PR:
Fork decision:
Verification:
Notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision-candidateFork decision has not been madeupstream-closedUpstream pull request is closed unmergedupstream-prTracks an upstream pull request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions