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

@chronova/omp-comment-checker

v1.1.3

Published

Comment checker hook extension for oh-my-pi (omp). Runs @code-yeongyu/comment-checker after write, edit, multiedit, apply_patch, hashline, patch, and replace, then self-heals via omp's session_compact + TUI notifications.

Downloads

614

Readme

omp-comment-checker

license: MIT

Comment checker hook for oh-my-pi (omp) and the upstream pi coding agent. Forked from code-yeongyu/pi-comment-checker v0.1.0 and retargeted at the omp extension API.

Runs @code-yeongyu/comment-checker before and after every mutation tool, surfaces the warning back into the tool result so the agent must react, and self-heals the warning across the next session compaction so the LLM sees it again on the next turn.

Why this fork

Pi and omp share the same extension shape, but omp ships two extra capabilities this checker uses to recover from comment-detected output:

| Capability | What the checker does with it | | --- | --- | | pi.appendEntry(customType, data) | Persists each unfired warning to the session file. | | pi.sendMessage(content, options) | Re-injects unresolved warnings as a custom message on session_compact. |

The fork detects the host at load time. If appendEntry / sendMessage are absent (plain pi), the self-heal loop is a no-op and behavior matches upstream 0.1.0 exactly.

Behavior

| Case | Result | |------|--------| | write / edit called (pre-exec) | blocks the call when the checker flags the proposed content; the LLM sees the rejection reason and self-corrects on the next turn | | write succeeds | checks the written content | | edit succeeds | checks oldString / newString | | multiedit succeeds | checks the complete edits payload | | apply_patch succeeds with OMO metadata | checks each metadata file using before / after, skips deletes | | apply_patch succeeds without metadata | falls back to raw Codex patch parsing | | omp edit tool (any mode: hashline / patch / replace / apply_patch) | reads details.perFileResults for oldText / newText per affected file | | checker exits 2 (post-exec) | appends the warning message to the tool result, marks the result isError: true, and fires the self-heal path | | checker binary missing | leaves tool output unchanged, no self-heal, pre-exec passes through | | checker exits unexpectedly | leaves tool output unchanged, no self-heal |

Self-heal flow

1. Mutation tool (write / edit / multiedit / apply_patch) is about to run.
2. omp-comment-checker inspects the proposed content, runs the
   @code-yeongyu/comment-checker binary, exit code 2.
3. If the binary flags the content, return { block: true, reason } so
   the host aborts the tool call before the file is written. The
   rejection reason is fed back to the LLM so it can self-correct on
   the next turn.
4. If the binary passes, let the tool run. On the matching tool_result,
   re-run the checker against the post-mutation content for modes we
   could not pre-check (apply_patch, hashline). Append the warning to
   the existing tool result content AND mark isError:true so the LLM
   treats the result as a failed tool call.
5. Persist each warning via pi.appendEntry("omp-comment-checker:warning", …).
6. On the next session_compact event, re-inject any unfired warnings
   via pi.sendMessage(...) so the LLM sees them again as fresh
   context. The store is cleared on session_start.

The session_compact listener only fires under omp. Under plain pi, the listener registration is skipped and the store is local-only. Per-call overrides: pass skipCommentCheck: true in the tool input to opt out of the pre-exec check for that call.

Installation

The package targets both the omp extension loader and the upstream pi extension loader.

# 1. From npm
omp install npm:@chronova/omp-comment-checker
pi  install npm:@chronova/omp-comment-checker

# 2. From git
omp install git:github:nx-solutions-ug/omp-comment-checker
pi  install git:github:nx-solutions-ug/omp-comment-checker

# 3. omp settings.json (~/.omp/settings.json)
{
  "packages": [
    "git:github:nx-solutions-ug/omp-comment-checker"
  ]
}

# 4. Dev / one-shot test
omp -e /path/to/omp-comment-checker/src/index.ts
pi  -e /path/to/omp-comment-checker/src/index.ts

After installation, restart the agent or run /reload inside an interactive session.

Command

/omp-comment-checker

Shows binary availability, the current warning count, and the list of unfired warnings. If the binary is missing, the command prints setup guidance.

Development

npm install
npm test
npm run typecheck
npm run check
npm pack --dry-run
omp -e ./src/index.ts
pi  -e ./src/index.ts

Origin

Ported from code-yeongyu/pi-comment-checker v0.1.0 and adapted to the public oh-my-pi extension API. Upstream checker behavior is preserved; the fork adds the omp self-heal loop and the omp edit-tool details.perFileResults extraction path.

License

MIT.

Related

Acknowledgements

  • Mario Zechner (@badlogic) — author of pi-mono and the pi-coding-agent extension API.
  • Can Bölük (@can1357) — author of oh-my-pi and the self-heal / session_compact contract this fork uses.
  • Yeongyu Kim (@code-yeongyu) — author of the upstream extension and the comment-checker binary.