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

@pushary/agent-hooks

v1.9.247

Published

Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.

Readme

Pushary

npm version npm downloads license

Push notifications, questions, and permission approvals for AI agents. Get a push when your agent finishes work, answer its questions from your phone, and approve risky commands before they run. Works with Claude Code, Codex, Cursor, VS Code, OpenCode, Gemini CLI, Hermes, OpenClaw, and fx.

Your agent froze waiting for a yes. This is how it reaches you.

npx -y pushary@latest setup

One command connects the MCP server, permission hooks, and agent instructions. Keep the computer running and take the agent’s question on your phone when you step away.

What it does

There are three things.

Notify. The agent sends a push when a long task finishes or when a build, test, or deploy fails. The notification can carry what changed, the error, and suggested next steps.

Ask. The agent asks you questions through push: yes/no, multiple choice, or free text. It waits for your answer. When Pushary is connected, the agent sends its questions to your phone instead of stalling in the terminal.

Gate. Risky shell commands (rm -rf, force pushes, history rewrites, database drops, deploys) are checked before they run. What happens is set by your dashboard policy: auto approve trusted read-only commands, push to your phone for approval, or hold for the phone and never auto-deny. If the check cannot run, the decision falls back to the agent's own permission prompt in the terminal; nothing is silently allowed. Without an API key configured, the hooks stay out of the way entirely and only count what they would have gated.

What you get after you sign in

  1. Run npx -y pushary@latest setup and open the link it shows on your phone. Sign in and pick a plan. New customers start with a 3-day trial.
  2. Setup connects the agents it finds on this computer: Claude Code, Codex, Cursor, VS Code, OpenCode, Gemini CLI, Hermes, OpenClaw, fx and the other agents it supports.
  3. When an agent needs a yes or an answer, the question arrives on your phone (the Pushary app for iOS and Android), on your Mac, or in the dashboard.
  4. You answer with one tap, or type a short reply, and the agent keeps going. The dashboard keeps a record of what each agent asked and what you answered.

Read the quickstart for each step, or see what Pushary does for AI agents.

Plans

Each plan starts with a 3-day trial for new customers. During the trial, Agent, Agent Pro and Team include 5 call minutes.

| Plan | Price | What you get | | --- | --- | --- | | Agent | $9.99 a month | One person and every AI agent they run. Approve, deny or answer from your phone or Mac. 10 call minutes a month. | | Agent Pro | $19.99 a month | Everything in Agent, plus unlimited notifications, budgets and priority support. 20 call minutes a month. | | Team | $59 a month for 5 people, $12 for each extra person | A shared record of what your team's agents asked and who answered, with export. 60 call minutes a month. |

Missed the push? Pushary can call you, by default within a minute of the push, and read the request. You approve it, say no or tell the agent what to do. Calls need a confirmed phone number and work in English, German, French and Dutch. Calls cover Claude Code, Codex, Gemini CLI, Hermes and the other agents listed on the calls page, not yet Cursor, VS Code, OpenCode or OpenClaw. Set it up with npx -y pushary@latest calls. Phone calls · How calls work

Just want a bell? That part is free.

If your agent runs in front of you and you only need to know when it finishes, you do not need any of the above and you should not pay for it:

npx -y pushary@latest bell

That is the whole thing. It makes a noise in your terminal and raises a desktop notification when Claude Code says an agent finished or is waiting on you. It rides Claude Code's own notification events, so it fires when you have actually stepped away rather than after every reply. No account, no API key, no network call, nothing leaves your machine. Turn it off with npx -y pushary@latest bell --off; it touches nothing else in your settings.

If you landed here from error: unknown option '--global'

You probably ran this, from a blog post or an answer somewhere:

claude config set --global preferrednotifchannel terminal_bell
error: unknown option '--global'

claude config set no longer takes --global. The setting moved into ~/.claude/settings.json, so the direct equivalent is to put it there yourself:

{ "preferredNotifChannel": "terminal_bell" }

That rings on Claude Code's own notification events. pushary bell does the same job through a hook instead, which means it also fires on Stop (the agent finished, which is the case most people actually want) and can raise a real desktop notification rather than only a beep. Either is fine. Neither costs anything.

Where the free part stops

A bell has a ceiling, and the ceiling is how many agents you run:

  • One agent. A bell is perfect. Pushary is overkill and we would rather you did not buy it.
  • Two or three. The bell rings and you cannot tell which agent. You alt-tab looking for it.
  • Four or more. The bell is noise, and you have left the room anyway.

Above three concurrent agents the bell says so, once a day, and then stops talking. Set PUSHARY_BELL_QUIET=1 if you would rather it never mentioned it.

Answer one question from your phone

After setup, open a new session with a connected agent and give it this prompt:

Use Pushary to ask whether I want bullets or a paragraph. Wait for my answer,
then repeat the option I chose. Keep this test read-only.

Answer from your paired phone. The agent should repeat your choice in the original session.

Hear a real Claude Code approval call or try the three-agent exercise.

Setup

Run setup:

npx -y pushary@latest setup

It shows a QR code and short link. Open either in the Pushary app, check that the fingerprint matches, and approve. Setup then stores the credential and configures the agents it detects. If this machine already has a key, setup reuses it and skips pairing.

For CI or another non-interactive install, pass an existing key explicitly:

npx -y pushary@latest setup --key pk_xxx.xxx --skip-phone

Verify it worked:

npx -y pushary@latest doctor

Setup installs this package globally with npm, at the version you ran, because the hooks run from that install. You never install it by hand.

Remove it

npx -y pushary@latest clean

It removes the hooks, the MCP entries, the stored key and the background service. Add --dry-run to see what it would remove first.

One package, two names

pushary and @pushary/agent-hooks are the same build, published at the same version. Every older command keeps working: npx -y @pushary/agent-hooks@latest setup does exactly what npx -y pushary@latest setup does.

pip install pushary is a different package: the Pushary Python SDK.

Supported agents

| Agent | Notify | Ask | Gate | |-------|:------:|:---:|:----:| | Claude Code | yes | yes | yes | | Codex | yes | yes | yes | | Cursor | yes | yes | yes | | Gemini CLI | yes | yes | yes | | Hermes | yes | yes | yes | | OpenClaw | no | no | yes | | VS Code | yes | yes | yes | | OpenCode | yes | yes | yes | | fx | yes | yes | no |

OpenClaw gets the approval gate from the Pushary plugin this CLI carries: setup writes it to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install, so nothing comes from npm. Any other MCP client can use notify and ask by pointing at the Pushary MCP endpoint directly.

Control an agent from your phone

The Pushary app can start an agent on a connected computer and send instructions to a running session. It is deliberately not a remote shell: the phone submits a task to the selected agent, and the agent still runs with its normal permissions, hooks, and approval policy on your computer.

| Control | Claude Code | Codex | Gemini CLI | Other agents | |---------|:-----------:|:-----:|:----------:|:------------:| | Start a new session | yes | yes | yes | no | | Send an instruction to a live session | yes | yes | yes | wrapper-dependent | | Approve, deny, and answer | yes | yes | yes | yes via MCP |

Requirements and limits:

  • Run setup once. It installs a per-user background service using LaunchAgent on macOS, systemd on Linux, or Task Scheduler on Windows.
  • The computer must be awake, logged in, online, and have the selected agent CLI installed. Pushary advertises only providers it finds on that machine.
  • Start and Send require Face ID, Touch ID, or the device passcode. Controls are hidden when the machine or session has no recent live consumer.
  • An instruction may remain queued on Pushary's server for up to one hour while delivery retries. It is delivered to the agent session, never executed as a raw terminal command.
  • Agent control requires a paid plan after the trial. Current terms are on the pricing page.

Service lifecycle is explicit and cross-platform:

pushary daemon status
pushary daemon install
pushary daemon stop
pushary daemon restart
pushary daemon uninstall

pushary setup installs and verifies the service. pushary upgrade refreshes it, and pushary clean stops and removes it.

Hook events, gated by version

Claude Code 2.1.239 names thirty-one hook events and the set grows release by release, so the ones we register are gated on the version actually installed. The version is read from disk and never by running the binary: codex --version once submitted the Codex CLI to XProtect, which killed it and moved the 181 MB binary to the Trash, so setup deleted the user's installation as a side effect of asking its version.

An unreadable version registers only the events that predate gating. Each registration records registered|<version>, which is what lets an upgrade pick up newer events without anyone re-running setup.

Admission rules

Publishing this package is a version bump merged to main, and a hook change is not live until that happens, so a hook that floods on one event would otherwise need a release to stop. ~/.pushary/admission-rules.json can disable an (agent, event) pair as data.

Deny-only by construction: a rule can silence a hook we ship, and no shape of the file can enable one we do not. A file that cannot be read admits everything, because failing closed would let one malformed download silence every hook on the machine.

Commands

cowork       Set up Claude Desktop and Cowork with the Pushary connector
setup        Configure Claude Code, Codex, Gemini CLI, Hermes, OpenClaw, Cursor, VS Code, OpenCode, or fx with Pushary
claude       Run Claude Code through Pushary, reachable from your phone even when idle
daemon       Keep this machine reachable so your phone can START a new session
status       One screen: which key is in force, whether the server accepts it, what can receive an approval
sessions     List agent sessions, their locations, and pending decisions as JSON
login        Sign in from this terminal, no key to copy (--with-token to pipe one in)
sign-out     Sign out: remove the key this machine stores, and say what it does not remove (also: logout)
pair         Pair a phone without re-running setup: the Pushary app, or --browser for push notifications in the browser (also: connect)
bell         Free local bell when an agent finishes or needs you. No account, no key, no network
doctor       Verify your Pushary installation is working
disconnect   Turn off one agent (claude|codex|gemini|cursor|opencode|qwen|codebuddy|qoder|droid|devin|antigravity|grok|openhands|fx|cline)
clean        Remove Pushary from this machine (--everything: the Mac app's setup too, --dry-run: preview)
mode         Choose where approval requests appear
wait         Show or set the "wait for your phone" ladder (pushary wait 45)
calls        Get a phone call when an approval waits: add your number, confirm it, turn calls on or off
stats        Show the approval moments your agents hit while not connected
audit        Check a verifiable audit export: every hash, every signature, and the checkpoints you verified before
suggestions  List rules mined from your own approvals
upgrade      Update the globally installed hooks to the latest version
hook         Run as a PreToolUse hook (reads stdin, writes stdout)
transcripts  Turn transcript sync on or off, or show and re-trust the keys it seals to

Run pushary <command> --help for one command's options.

Session fleet

pushary sessions --json

Uses your CLI sign-in to read the fleet and pending decisions available to its API key. data.sessions includes the server-computed status and subagent grouping. data.pendingQuestions contains the pending requests and their reported session and machine IDs. Compare a session's machineId with data.localMachineId to find sessions reported by this computer, and read cwd for the project directory when available. The command works from your existing terminal and leaves focus where it is.

Non-interactive setup

setup asks which agents you use at a terminal. With no terminal on stdin it asks nothing: it configures the agents it detects and takes every default. Pass --agents to choose the agents yourself.

# Everything detected on this machine, no prompts
npx -y pushary@latest setup --key-stdin --yes --skip-phone < key.txt

# Named agents only
npx -y pushary@latest setup --agents claude_code,codex --yes --skip-phone

# Store the key and configure nothing
npx -y pushary@latest setup --agents none --yes

# Show what would be written, change nothing
npx -y pushary@latest setup --agents auto --dry-run

# One machine-readable object on stdout; every human line goes to stderr
npx -y pushary@latest setup --agents auto --yes --json

The -y before pushary@latest is npm's own flag: it only skips npm's install question ("Ok to proceed?"), and the Pushary command never sees it.

Prefer --key-stdin over --key in CI: --key puts the secret in argv, where any other user on the box can read it out of ps.

Exit codes: 0 done, 2 bad usage, 3 no key resolvable, 4 the server rejected the key, 5 finished with problems (an inactive plan, or an installer that failed), 130 cancelled with Ctrl-C.

Examples:

npx -y pushary@latest mode push_only --for 30m
npx -y pushary@latest wait 45
npx -y pushary@latest clean

Updates

From 1.5.0, Pushary updates itself. When an agent session starts, the session-start hook checks at most once a day whether a newer version is published. If one is, it installs that version in the background into the same global npm folder your hooks already run from, then refreshes each agent's config the way pushary upgrade does. The session does not wait for it, and the new version runs from the next hook call. From 1.9.52, fx starts the same check each time it starts the Pushary server.

The refresh covers what an update can safely rewrite for an agent that is already set up: its hooks, the Pushary block in its instruction file, and the Pushary server entry for Claude Code, Codex, Gemini CLI, Cursor and VS Code. It never adds an agent or an instruction block that is not already there. Skills, editor plugins, the fx server entry and permission rules, and the server entry of the other agents are written by setup only. An instruction file that is read-only, is not UTF-8 text, or holds Pushary markers that do not form exactly one block is left as it is and named.

  • It stays within the same major version. A new major shows in pushary doctor, and you move to it with npx -y pushary@latest upgrade.
  • It only updates a global npm install. A copy run through npx, a plugin, or the Mac app updates by its own route.
  • It never uses sudo. If npm cannot write to the global folder, the attempt is recorded as failed and nothing changes.
  • It does not run on Windows yet, or when CI is set. Linux automatic updates are paused because restarting the systemd daemon can terminate phone-started sessions. On Linux, finish running sessions before upgrading manually.
  • If installation succeeds but configuration refresh fails, the next automatic check or manual upgrade retries the refresh before checking for another release.

Turn it off with either of these:

pushary upgrade --auto=off           # turn it back on with --auto=on
export PUSHARY_DISABLE_AUTOUPDATE=1  # in the environment your agents start from

pushary doctor shows whether it is on and the result of the last check. The state is kept in ~/.pushary/auto-update.json, and the output of recent updates in ~/.pushary/logs/auto-update.log.

Manual MCP setup

If you only want notifications and questions (no permission gating), add Pushary to your MCP config directly:

{
  "mcpServers": {
    "pushary": {
      "type": "http",
      "url": "https://pushary.com/api/mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

The MCP server exposes send_notification, ask_user, wait_for_answer, and cancel_question. Full tool reference is in the docs.

Security

If a policy cannot be fetched or a hook errors, the decision falls back to the agent's native permission prompt, never a silent allow. The Cursor gate is the strictest surface: it blocks matched risky commands outright when its check cannot run. Secrets in command arguments and environment are redacted before anything is sent to a phone or stored. Read-only commands can be allowlisted so trusted work never interrupts you, while writes and destructive commands still route through approval.

Links

License

MIT

Claude Desktop and Cowork

Run pushary cowork (or npx -y pushary@latest cowork) for connector setup. pushary setup --agents cowork opens the same setup path without storing a CLI key or writing hooks. Add the OAuth URL in Claude and sign in with the account used by your Pushary phone/Mac app.

Use pushary cowork --instructions for standing instructions or pushary cowork --skill > SKILL.md to export the bundled skill for upload. --json reports manual_setup_required; printing a link does not prove a connection. Ask a test question in Claude, answer it in Pushary, and verify Claude receives it.

This connector is cooperative. Cowork supports plugin hooks on supported versions, but this setup does not install or verify native permission hooks. Use the normal setup command for Claude Code CLI hooks.

OpenCode versions

The generated plugin supports OpenCode V2 and V1 from 1.18.29. Run setup again after updating Pushary to replace the plugin. V2 still reads the earlier MCP configuration format.

In V2, Pushary answers native permission requests for shell commands in the active directory, single-file reads/writes/edits, and web fetches. Outside-directory access, another shell working directory, multi-file edits, renames with two paths, custom permissions and native questions stay in OpenCode. An approval applies once to the matching request.