Source: Source pull request number: 135 in rohitg00/agentmemory (URL omitted to avoid GitHub cross-reference)
Title: Feat/opencode systemd integration
Author: linuxdevel
State: closed
Draft: no
Merged: no
Head: linuxdevel/agentmemory:feat/opencode-systemd-integration @ 616b5dc
Base: main @ 3935aec
Labels: (none)
Changed files: 0
Commits: 0
Created: 2026-04-13T21:14:20Z
Updated: 2026-04-27T09:29:58Z
Closed: 2026-04-13T21:14:36Z
Merged at: (not merged)
Original PR body:
This pull request introduces major improvements to OpenCode and Claude integrations with agentmemory, enhances health monitoring, and adds planning documentation for upcoming dashboard and circuit breaker work. The most significant changes include new agentmemory integration plugins and hooks for OpenCode and Claude, improved health memory reporting, and detailed plans for reducing dashboard flicker and improving circuit breaker accuracy.
Agentmemory Integration for OpenCode and Claude:
- Added a comprehensive OpenCode plugin (
integrations/opencode/plugin.js) that connects to the agentmemory backend, handling session lifecycle, context enrichment, and tool usage observation for memory-aware actions.
- Introduced new shell hooks for Claude (
integrations/claude-code/hooks/agentmemory-pretool.sh, agentmemory-posttool.sh, agentmemory-prompt.sh) to call agentmemory REST APIs for tool context enrichment, observation, and session context injection. [1] [2] [3]
- Added OpenCode skill instructions (
integrations/opencode/instructions-agentmemory-skills.md) describing when to use explicit agentmemory skills versus plugin-driven recall/capture.
- Updated the OpenCode installer documentation and logic to automate plugin and skill deployment, and to merge configuration safely. [1] [2]
Health Monitoring Enhancements:
- Improved memory health reporting by including Node.js heap size limit (
heapLimit) in the health snapshot and using it for more accurate memory usage thresholds. [1] [2] [3] [4]
Dashboard and Circuit Breaker Planning:
- Added detailed design and implementation plans for making the dashboard live updates flicker-free and improving circuit breaker accuracy, including test-driven development steps and manual verification instructions. [1] [2]
Documentation and Usability:
- Expanded the
README.md to clarify OpenCode agentmemory installation steps and configuration merging, ensuring users understand the deployment and update process.
Agentmemory Integration:
- Implemented a robust OpenCode plugin for agentmemory session, context, and tool observation (
integrations/opencode/plugin.js).
- Added Claude shell hooks for pre-tool, post-tool, and prompt events to integrate with agentmemory REST API (
integrations/claude-code/hooks/agentmemory-pretool.sh, agentmemory-posttool.sh, agentmemory-prompt.sh). [1] [2] [3]
- Created OpenCode instructions for explicit memory skills use (
integrations/opencode/instructions-agentmemory-skills.md).
- Automated OpenCode plugin/skill deployment and config merging, with helper utilities (
src/integrations/opencode-installer.js).
Health Monitoring:
- Enhanced health snapshot to report heap size limit and use it for memory threshold calculation (
src/health/monitor.ts, src/health/thresholds.ts). [1] [2] [3] [4]
Planning and Documentation:
- Added design and implementation plans for flicker-free dashboard updates and more accurate circuit breaker state (
docs/plans/2026-04-13-dashboard-live-updates-and-circuit-breaker-design.md, docs/plans/2026-04-13-dashboard-live-updates-and-circuit-breaker-plan.md). [1] [2]
- Clarified OpenCode agentmemory installer usage and configuration in
README.md.
Summary by CodeRabbit
Release Notes
-
New Features
- Added automated installer script for streamlined deployment and configuration
- Integrated AgentMemory with Claude Code through new integration hooks
- Added OpenCode plugin for automatic context enrichment and memory capture
- Introduced explicit memory operation skills (remember, recall, forget, session-history)
- Enhanced dashboard rendering with incremental updates to reduce flickering
- Added graph-building capability to API
-
Bug Fixes
- Improved circuit breaker state tracking and failure window management
- Enhanced memory utilization monitoring with heap limit awareness
-
Documentation
- Updated setup instructions with new installer-based configuration workflow
- Added design documentation for dashboard and system improvements
Local branch:
Fork PR:
Fork decision:
Verification:
Notes:
Source: Source pull request number: 135 in rohitg00/agentmemory (URL omitted to avoid GitHub cross-reference)
Title: Feat/opencode systemd integration
Author: linuxdevel
State: closed
Draft: no
Merged: no
Head: linuxdevel/agentmemory:feat/opencode-systemd-integration @ 616b5dc
Base: main @ 3935aec
Labels: (none)
Changed files: 0
Commits: 0
Created: 2026-04-13T21:14:20Z
Updated: 2026-04-27T09:29:58Z
Closed: 2026-04-13T21:14:36Z
Merged at: (not merged)
Original PR body:
This pull request introduces major improvements to OpenCode and Claude integrations with agentmemory, enhances health monitoring, and adds planning documentation for upcoming dashboard and circuit breaker work. The most significant changes include new agentmemory integration plugins and hooks for OpenCode and Claude, improved health memory reporting, and detailed plans for reducing dashboard flicker and improving circuit breaker accuracy.
Agentmemory Integration for OpenCode and Claude:
integrations/opencode/plugin.js) that connects to the agentmemory backend, handling session lifecycle, context enrichment, and tool usage observation for memory-aware actions.integrations/claude-code/hooks/agentmemory-pretool.sh,agentmemory-posttool.sh,agentmemory-prompt.sh) to call agentmemory REST APIs for tool context enrichment, observation, and session context injection. [1] [2] [3]integrations/opencode/instructions-agentmemory-skills.md) describing when to use explicit agentmemory skills versus plugin-driven recall/capture.Health Monitoring Enhancements:
heapLimit) in the health snapshot and using it for more accurate memory usage thresholds. [1] [2] [3] [4]Dashboard and Circuit Breaker Planning:
Documentation and Usability:
README.mdto clarify OpenCode agentmemory installation steps and configuration merging, ensuring users understand the deployment and update process.Agentmemory Integration:
integrations/opencode/plugin.js).integrations/claude-code/hooks/agentmemory-pretool.sh,agentmemory-posttool.sh,agentmemory-prompt.sh). [1] [2] [3]integrations/opencode/instructions-agentmemory-skills.md).src/integrations/opencode-installer.js).Health Monitoring:
src/health/monitor.ts,src/health/thresholds.ts). [1] [2] [3] [4]Planning and Documentation:
docs/plans/2026-04-13-dashboard-live-updates-and-circuit-breaker-design.md,docs/plans/2026-04-13-dashboard-live-updates-and-circuit-breaker-plan.md). [1] [2]README.md.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Local branch:
Fork PR:
Fork decision:
Verification:
Notes: