Skip to content

feat(omp): add Oh My Pi extension plugin#1099

Draft
JackieJK wants to merge 2 commits into
rohitg00:mainfrom
JackieJK:feat/omp-plugin
Draft

feat(omp): add Oh My Pi extension plugin#1099
JackieJK wants to merge 2 commits into
rohitg00:mainfrom
JackieJK:feat/omp-plugin

Conversation

@JackieJK

@JackieJK JackieJK commented Jul 22, 2026

Copy link
Copy Markdown

feat(omp): add Oh My Pi extension plugin

Add a new omp integration with 15 lifecycle hooks, bringing it from zero
to surpassing Pi integration parity and approaching OpenCode plugin
capability where omp's ExtensionAPI permits.

Problem

agentmemory had no omp integration. The existing Pi integration
(integrations/pi/) uses @mariozechner/pi-coding-agent which is
incompatible with omp's fork (@oh-my-pi/pi-coding-agent). As a result:

  • Zero observation coverage — omp sessions produced no memory data
  • No session lifecycle — no /session/start or /session/end calls
  • No smart-search recall — no memory injection into system prompts
  • No per-tool granularity — no tool-level observation capture

Changes

Hook API call Origin
session_start POST /session/start PR #604
before_agent_start POST /smart-search + POST /observe Pi integration
tool_call stash file paths for enrichment Claude pre-tool-use pattern
tool_result POST /observe PR #604
context truncation + POST /enrich (opt-in) omp-only
session_before_compact POST /context (cache) PR #604
session.compacting inject cached context omp-only
agent_end POST /observe Pi integration
session_shutdown drain → summarize → session/end → optional consolidation PR #604
tool_approval_requested POST /observe omp-only
tool_approval_resolved POST /observe omp-only
auto_compaction_start POST /observe omp-only
auto_compaction_end POST /observe omp-only
auto_retry_start POST /observe omp-only
auto_retry_end POST /observe omp-only

Also registers 3 tools (memory_health, memory_search, memory_save)
and 1 command (/agentmemory-status) via omp's ExtensionAPI with zod
schemas.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

@JackieJK is attempting to deploy a commit to the rohitg00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8d3dedfb-4195-43e4-a5f9-9ebbcc421f42

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JackieJK JackieJK changed the title feat(omp): add Oh My Pi agentmemory extension plugin feat(omp): add full lifecycle hooks to omp integration Jul 22, 2026
@JackieJK JackieJK changed the title feat(omp): add full lifecycle hooks to omp integration feat(omp): add Oh My Pi extension plugin Jul 22, 2026
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