Skip to content

feat(hooks): add omp (Oh My Pi) agent support - #3736

Closed
abcabc0330 wants to merge 1 commit into
rtk-ai:developfrom
abcabc0330:feat/omp-agent-support
Closed

feat(hooks): add omp (Oh My Pi) agent support#3736
abcabc0330 wants to merge 1 commit into
rtk-ai:developfrom
abcabc0330:feat/omp-agent-support

Conversation

@abcabc0330

Copy link
Copy Markdown

Summary

Add support for Oh My Pi (omp) — the successor to the Pi coding agent — to the RTK hook installer. omp exposes the same extension API as Pi, so the existing rtk.ts extension works unchanged; this PR wires up rtk init --agent omp to install it into the omp agent directory.

What changed

  • AgentTarget::Omp + --agent omp CLI value
  • run_omp_mode / uninstall_omp in src/hooks/init.rs — mirror Pi mode but target the omp agent directory:
    • global: ~/.omp/agent/extensions/rtk.ts (honors PI_CODING_AGENT_DIR)
    • local: .omp/agent/extensions/rtk.ts
  • Constants: OMP_DIR (.omp/agent), OMP_EXTENSIONS_SUBDIR, OMP_PLUGIN_FILE
  • Docs: hooks/omp/README.md, cross-reference in hooks/pi/README.md, supported-agents table + install list in hooks/README.md and root README.md
  • Tests: 5 unit tests covering global/local install, uninstall, and dry-run

Notes

  • The extension file itself is shared with Pi (hooks/pi/rtk.ts); omp only differs in install location.
  • omp honors PI_CODING_AGENT_DIR (the same env var Pi uses), defaulting to ~/.omp/agent.

Verification

  • cargo clippy clean
  • Full test suite passes (2649 + 5 new omp tests)
  • Manual: rtk init --agent omp --global installs to ~/.omp/agent/extensions/rtk.ts; rtk init --uninstall --agent omp --global removes it

omp is the successor to the Pi coding agent and exposes the same extension
API. Add an `rtk init --agent omp` install/uninstall path that writes the
shared rtk extension to the omp agent directory (`~/.omp/agent/extensions`
or project-local `.omp/agent/extensions`), honoring PI_CODING_AGENT_DIR.

- AgentTarget::Omp variant + --agent omp CLI value
- run_omp_mode / uninstall_omp (mirrors Pi mode, omp directory)
- hooks/omp/README.md, hooks/pi/README.md cross-reference
- README + hooks README: supported-agents table and install list
- 5 unit tests covering global/local install, uninstall, dry-run

Closes: omp extension parity with Pi
@CLAassistant

CLAassistant commented Aug 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@abcabc0330

Copy link
Copy Markdown
Author

Closing in favor of #3707 (feat(omp): add Oh My Pi (OMP) support by @alvins82), which is a superset of this PR:

No unique content in this PR that #3707 lacks. Merging #3707 fully covers omp support. Thanks @alvins82 for the thorough implementation.

@abcabc0330 abcabc0330 closed this Aug 28, 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.

2 participants