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

dont-hallucinate

v0.1.3

Published

mocks your coding agent when they get it wrong

Readme

dont-hallucinate

dont-hallucinate intercepts agent shell failures, classifies what went wrong, suggests fixes when it can, and mocks your coding agent. By giving a model immediate negative reinforcement helps them to stop foolishly repeating the same mistake.

What it does

  • Watches shell failures in real time with a live TUI dashboard
  • Classifies errors: hallucinated flags, phantom packages, ghost branches, dirty working trees, network failures, and more
  • Roasts the agent with context-aware snark injected directly into stderr
  • Suggests fixes: corrected commands and valid flag alternatives
  • Detects the agent (Claude, Cursor, Aider, Copilot, GPT, Windsurf) and personalizes the roast

Install

Recommended:

pip install dont-hallucinate

From source:

git clone https://github.com/alexgaoth/dont-hallucinate
cd dont-hallucinate
pip install -e .

Hook Setup

There are now three separate install commands because the integration points are different.

Claude Code

Global install (recommended):

dont-hallucinate install-hook-claude --global

Project-local install:

dont-hallucinate install-hook-claude

Codex CLI

Global install (recommended):

dont-hallucinate install-hook-codex

Project-local install:

dont-hallucinate install-hook-codex --project

This updates ~/.codex/config.toml by default and installs a shell_environment_policy block that sets:

  • BASH_ENV to the noninteractive dont-hallucinate bash hook
  • HALLUCINATE_ACTOR=agent
  • HALLUCINATE_STREAM_FILE=~/.dont-hallucinate/codex/stream.jsonl

Important scope note:

  • This currently covers Codex bash subprocess failures
  • It is not a PowerShell-native Codex hook
  • If you already use inline set = {...} inside [shell_environment_policy], migrate that to [shell_environment_policy.set] first

Cursor

Install the Cursor hook:

dont-hallucinate install-hook-cursor

This appends shell-profile snippets that activate only when Cursor sets CURSOR_AGENT.

Files updated:

  • PowerShell: ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1
  • Bash: ~/.bashrc
  • Zsh: ~/.zshrc

The Cursor stream file is written to:

~/.dont-hallucinate/cursor/stream.jsonl

Important scope note:

  • This is a shell-profile install, not a Cursor settings.json tool hook
  • It covers Cursor agent terminal sessions that inherit your normal shell startup files
  • Normal terminals are not affected because the snippet checks CURSOR_AGENT

Watch UI

By just running:

dont-hallucinate

It will shows a live dashboard with the failure type, failing command, suggested fix, and roast. This will work anywhere if global setup. If local setup this will only work in the project root.

Commands

dont-hallucinate 
dont-hallucinate exec [--shell] --actor agent -- <command>
dont-hallucinate install-hook-claude [--global]
dont-hallucinate install-hook-codex [--project]
dont-hallucinate install-hook-cursor

Error types caught

| Type | What it means | |---|---| | invalid_flag | hallucinated CLI flag that does not exist | | missing_package | command not found / phantom package | | git_branch_missing | branch or ref that does not exist | | git_dirty | uncommitted changes blocking the operation | | git_conflict | merge conflict | | npm_missing_script | script not defined in package.json | | file_not_found | path does not exist | | permission_denied | insufficient permissions | | port_in_use | address already bound | | network_error | DNS failure, connection refused, SSL error | | no_space | disk full | | syntax_error | shell or language syntax error | | generic_error | everything else |

What the agent sees

When active, the relevant shell command path is wrapped or instrumented so failures are decorated. On failure, stderr gets an extra line like:

[dont-hallucinate/agent] caught: npm run tset
[dont-hallucinate/agent] type: npm_missing_script
[dont-hallucinate/agent] roast: package.json had a menu. GPT ordered something imaginary.

Platform support

  • Linux/macOS: fully supported for bash/zsh-based flows
  • Windows: supported for PowerShell and bash-based flows
  • Codex install currently targets bash subprocess interception