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

agenttx

v0.3.0

Published

Proof-carrying transactions for AI coding agents. Verify, commit, or roll back every change.

Readme

AgentTX

Every AI change comes with proof.

Run any coding agent behind one generic command boundary. AgentTX isolates its Git-visible changes, runs your required validators, accepts only a derived success, and emits a machine-verifiable receipt plus a self-contained Proof Card.

agenttx proof --validator '["npm","test"]' -- codex exec "fix the failing test without weakening it"

PASS means the command and every required gate passed. A failed command, validator, or related-evidence check is rejected and rolled back by default.

Open Proof Mode · Run the deterministic bad-agent demo · Verify in GitHub Actions

View the CI-generated three-case Proof Gallery.

npm version CI MIT License Node.js 20+

Quick start

AgentTX requires Node.js 20+ and Git. Start inside a Git repository with at least one commit.

npm install --global agenttx
cd my-project
agenttx proof -- <coding-agent>

Proof Mode commits repository changes only when the command and every required validator pass. It otherwise rolls the isolated change back. Every terminal result includes proof.json, proof.html, and reproduce.md.

Verify a copied proof pack offline:

agenttx verify-proof path/to/proof.json

Use classic review mode when you want a human decision instead:

agenttx run -- <coding-agent>
agenttx diff
agenttx commit # or agenttx rollback

agenttx commit applies files to your working tree; it does not create or stage a Git commit. agenttx rollback also writes a redacted rollback-evidence.json with discarded-change counts, a bound terminal event, and content-sensitive before/after digests recording whether the Git-visible original workspace stayed unchanged. Verify its unsigned integrity offline with agenttx verify-evidence <file>.

Proof Mode demo

Try the deterministic proof demonstration with no model, credentials, remote, or network write. A bad agent weakens a protected test, the policy gate rejects it, AgentTX restores the original state, and tampering is rejected. A good agent then fixes the defect while preserving the test and earns a passing proof.

npm run build
npm run demo:proof

The transaction boundary

AgentTX runs the child command inside an independent local Git clone, from the equivalent repository directory. Your original working tree stays available and unchanged until you explicitly accept the transaction. After the child exits, inspect its diff, verification results, detected side effects, and risk; then commit or roll back.

Security boundary: AgentTX v0.3.0 isolates supported repository changes, not the operating system. Child processes retain your normal user permissions, and external-action detection is heuristic. Read the security model.

Why AgentTX?

Coding agents can change source, dependencies, CI, and Git state across an entire repository. Git gives us the underlying isolation primitives; AgentTX packages them into an agent-oriented lifecycle with dirty-baseline capture, a ledger, inspection, verification, conflict-safe acceptance, rollback, and history.

How it works

AgentTX transaction flow from original repository to isolated agent workspace, inspection, and commit or rollback

AgentTX captures the repository baseline, builds an independent local clone, overlays tracked and non-ignored untracked changes, and runs the child from the matching directory. When the child exits, the transaction enters REVIEW. Acceptance first checks every touched path against its start-time fingerprint; overlapping user changes stop the operation before any transaction file is applied.

Commands

| Command | Purpose | |---|---| | agenttx proof [options] -- <command...> | Gate a command, commit or roll back, and generate a verifiable proof pack | | agenttx verify-proof <proof.json> | Offline-check the receipt, related artifacts, Proof Card, and reproduction record | | agenttx render-proof <proof.json> [--output proof.html] | Render a valid receipt as a self-contained Proof Card without overwriting files | | agenttx init --github | Create a minimal proof config and least-privilege workflow without overwriting | | agenttx feedback <proof.json> | Show safe fields and print a voluntary issue URL without uploading or opening a browser | | agenttx run [--allow-external] [--] <command...> | Run any command in a new transaction | | agenttx status [id] [--json] | Show transaction state | | agenttx diff [id] [--stat\|--full] | Review changed files or the redacted patch | | agenttx inspect [id] [--json] | Show changes, side effects, risk, and checks | | agenttx verify [id] [--run] | Discover checks; run them only with --run | | agenttx commit [id] | Accept transaction files after conflict checks | | agenttx rollback [id] | Discard the isolated transaction and write rollback evidence | | agenttx history [--json] | List local transaction history | | agenttx replay <id> [--json] | Read recorded events; it does not re-execute | | agenttx evidence <id> [--output path] | Regenerate redacted rollback evidence from the terminal ledger | | agenttx verify-evidence <file> | Offline-check receipt integrity and derivable invariants; it does not authenticate the artifact | | agenttx report [id] --html | Write a standalone redacted HTML report | | agenttx doctor [--json] | Check Node, Git, repository state, storage, and agent CLIs | | agenttx demo [--keep] | Run the offline seven-file demo |

Machine consumers can use proof --json, verify-proof --json, status --json, and inspect --json. Their versioned examples are in the schema reference.

Works around the agent, not instead of it

The durable interface is arbitrary command wrapping:

agenttx run claude
agenttx run codex
agenttx run gemini
agenttx run opencode
agenttx run -- node scripts/my-local-agent.mjs

Named adapters identify common CLIs; they do not depend on private agent hooks. Availability and interactive behavior still depend on the installed tool and platform. See agent compatibility for the distinction between generic support and explicit smoke tests.

Using AgentTX with Claude Code, Codex, Gemini CLI, OpenCode, or another coding agent? Open a compatibility report. Real reports determine which agent-specific workflows receive deeper testing.

Found another problem or workflow gap? Open a sanitized bug report or a focused feature request.

Safety model

AgentTX gives a strong, narrow repository guarantee: before acceptance, rollback removes only the isolated transaction workspace; acceptance refuses overlapping changes in the original repository and restores from a recovery backup if file application fails.

AgentTX is not an OS security boundary. The child retains your normal user permissions and can reach files outside the transaction repository. Selected external commands are detected and gated through top-level matching and best-effort PATH shims, which absolute binaries, renamed tools, libraries, in-process network calls, or other routes can bypass. --allow-external permits detected actions but does not make them reversible.

No telemetry, account, API key, Docker daemon, or cloud service is required. AgentTX does not upload code, paths, prompts, commands, diffs, or transaction metadata.

Rollback receipts are unsigned and recomputable. Their outer hash detects accidental or partial modification, while the offline verifier also checks the bound terminal event, metadata/diff references, and derived workspace result. It is integrity checking, not authentication against someone able to rewrite the complete local receipt and ledger.

Read SECURITY.md, the exact security model, and the threat model before relying on AgentTX around untrusted code.

Honest V0 limitations

  • Requires a non-bare Git repository with at least one commit.
  • Rejects submodules and active merge, cherry-pick, revert, or bisect operations.
  • Does not copy ignored files such as node_modules, caches, and commonly .env.
  • Side-effect interception and Windows command shims are best effort.
  • Cannot reverse Git pushes or arbitrary external-system changes.
  • Secret redaction covers common formats, not every possible credential.
  • Rollback is unavailable after acceptance; resume is not implemented.
  • Independent clones trade setup time and disk for simple isolation and separate Git objects.

AgentTX V0 optimizes for correctness over workspace setup speed. See the measured benchmarks.

Project

AgentTX is local-first open-source infrastructure under the MIT License.