Skip to content

feat(roo-code): add Roo Code integration with MCP + rules#920

Open
benfrank241 wants to merge 3 commits intomainfrom
feat/roo-code-integration
Open

feat(roo-code): add Roo Code integration with MCP + rules#920
benfrank241 wants to merge 3 commits intomainfrom
feat/roo-code-integration

Conversation

@benfrank241
Copy link
Copy Markdown
Contributor

@benfrank241 benfrank241 commented Apr 7, 2026

Summary

  • Adds hindsight-integrations/roo-code/ — persistent long-term memory for Roo Code via Hindsight MCP
  • One-command installer (install.py) writes .roo/mcp.json (merge-safe, idempotent) and .roo/rules/hindsight-memory.md into any project
  • Rules file is injected into every Roo system prompt — instructs the agent to auto-recall before tasks and auto-retain after
  • No code changes required in the user's project

How it works

install.py → .roo/mcp.json (registers Hindsight /mcp endpoint)
           → .roo/rules/hindsight-memory.md (injected into system prompt)

Task starts → Roo calls recall (hindsight MCP server)
Task ends   → Roo calls retain (hindsight MCP server)

Test plan

  • 19 unit tests passing (tests/test_install.py, tests/test_rules.py)
  • 7/7 smoke tests passing against Hindsight Cloud (tests/test_smoke.py)
    • Health check, MCP initialize, tools/list (recall + retain present), REST round-trip, MCP recall, MCP retain

Files

File Purpose
hindsight-integrations/roo-code/install.py CLI installer
hindsight-integrations/roo-code/rules/hindsight-memory.md System prompt rules
hindsight-integrations/roo-code/tests/test_smoke.py Live smoke tests (require HINDSIGHT_SMOKE_URL)
hindsight-docs/docs-integrations/roo-code.md Docs page
.github/workflows/test.yml CI job test-roo-code-integration
scripts/release-integration.sh Added "roo-code" to VALID_INTEGRATIONS
hindsight-docs/src/data/integrations.json Integrations listing entry

Adds hindsight-integrations/roo-code — persistent long-term memory for
Roo Code via Hindsight MCP. One-command installer sets up .roo/mcp.json
and injects a rules file that auto-recalls before tasks and auto-retains
after.

- install.py: writes .roo/mcp.json (merge-safe) + .roo/rules/hindsight-memory.md
- rules/hindsight-memory.md: injected into every Roo system prompt
- 19 unit tests (all passing) + 7 smoke tests (7/7 vs Hindsight Cloud)
- CI job: test-roo-code-integration
- Docs page: docs-integrations/roo-code.md
- integrations.json entry, release-integration.sh entry
- Add type: streamable-http (required by Roo Code for HTTP MCP servers)
- Change timeout from 10000ms to 30 seconds (Roo Code expects seconds, max 3600)
- Fix tool name references in docs (recall/retain, not hindsight_recall/hindsight_retain)
- Resolve unresolved merge conflict markers in .github/workflows/test.yml
- Add tests asserting type=streamable-http and timeout in valid seconds range

Verified: 21/21 unit tests pass; installer generates valid Roo Code config.
@benfrank241 benfrank241 force-pushed the feat/roo-code-integration branch from 3395f28 to 9f8a76c Compare April 24, 2026 20:18
@benfrank241 benfrank241 marked this pull request as ready for review April 24, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant