npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-omp-session-sync

v0.1.0

Published

Bidirectional session sync between vanilla Pi (@earendil-works/pi-coding-agent) and OMP (@oh-my-pi/pi-coding-agent)

Downloads

177

Readme

pi-omp-session-sync

Bidirectional session sync between vanilla Pi (@earendil-works/pi-coding-agent) and OMP (@oh-my-pi/pi-coding-agent).

Adds a /pi-omp-sync slash command to whichever runtime you're in. When run inside Pi it imports OMP sessions; when run inside OMP it imports Pi sessions. Sessions get rewritten into the target runtime's native JSONL format with the model entry shape and title metadata each runtime expects.

Features

  • /pi-omp-sync slash command in both runtimes
  • Interactive session selector
  • list, status, all, all --dry-run, open <session-id> subcommands
  • Filters: --cwd, --since, --updated-since, --limit, --source-dir
  • Idempotent registry keyed by source session id + source mtime
  • Stale-source detection: re-imports automatically when the source file changes
  • OMP-only entry types (mode_change, service_tier_change, session_init) skipped on OMP→Pi
  • model_change reshaped both directions ({provider, modelId}model: "provider/modelId")
  • Title round-tripped: Pi's session_info entry ↔ OMP's header title

Install

Vanilla Pi

pi install /path/to/pi-omp-session-sync

…or add the absolute repo path to ~/.pi/agent/settings.json:packages[].

OMP

Add the package as a file: dependency in ~/.omp/plugins/package.json and symlink the repo into ~/.omp/plugins/node_modules/pi-omp-session-sync:

ln -s /path/to/pi-omp-session-sync ~/.omp/plugins/node_modules/pi-omp-session-sync

Then update ~/.omp/plugins/package.json:

{
  "dependencies": {
    "pi-omp-session-sync": "file:/path/to/pi-omp-session-sync"
  }
}

Verify with omp plugin doctor.

Usage

/pi-omp-sync                          # interactive selector
/pi-omp-sync <session-id>             # sync a specific session
/pi-omp-sync list [search]            # list source-runtime sessions
/pi-omp-sync status                   # show registry + pending counts
/pi-omp-sync all --dry-run            # preview bulk sync
/pi-omp-sync all                      # bulk sync, idempotent
/pi-omp-sync open <session-id>        # switch to a synced session

Flags:

--source-dir /path/to/sessions
--registry /path/to/registry.json
--limit 100
--cwd /repo/path
--since 2026-05-01
--updated-since 2026-05-15
--force
--dry-run

Behavior

When running inside Pi, the command imports OMP sessions into Pi. When running inside OMP, the command imports Pi sessions into OMP.

Each imported session becomes a new native session file in the target runtime. The source file is never modified. The registry (~/.pi/agent/pi-omp-sync-registry.json or ~/.omp/agent/pi-omp-sync-registry.json) tracks source session id → target session file, mtime, and conversion version. A bulk re-run skips sessions whose source mtime hasn't changed; --force overrides.

What's preserved

| Concept | Pi format | OMP format | Round-trip | |---|---|---|---| | Title | session_info.name entry | header title + titleSource | yes | | Model | model_change {provider, modelId} | model_change {model: "provider/modelId"} | yes | | Messages | message.message (AgentMessage) | same | yes | | Thinking level | thinking_level_change | same | yes | | Custom messages | custom_message | same | yes | | OMP-only entries | n/a | mode_change, service_tier_change, session_init | dropped on OMP→Pi |

Tests

bun test