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

@letta-ai/tool-guard-inspector

v0.1.0

Published

Letta Code mod that records a lightweight audit view of tool permission decisions.

Readme

Tool Guard Inspector

A Letta Code mod that adds a lightweight permission policy and an in-session audit view for tool calls.

It classifies selected tool calls as allow, ask, or deny, records the decisions made by this mod, and exposes a /tool-guard command for inspecting recent decisions.

Install

letta install npm:@letta-ai/tool-guard-inspector

Then reload local mods:

/reload

What it adds

  • a permission policy for common read, shell, mutation, and delegation tools
  • an in-memory audit log of recent decisions made by this mod
  • a /tool-guard slash command for viewing recent decisions and stats

Quick start

After installing the mod, run normal agent tasks that use tools. Then inspect the recent permission decisions:

/tool-guard

Show more entries:

/tool-guard 25

Show all in-memory entries across conversations:

/tool-guard all

Clear the current conversation's entries:

/tool-guard clear

Clear all in-memory entries:

/tool-guard all clear

Example output

Tool Guard Inspector

Recent permission decisions:
✓ 14:03:12  read_file  allow  read-only tool | path=README.md
✓ 14:04:21  bash       allow  read-only shell command | command=git status
⚠ 14:05:10  edit       ask    file mutation tool | path=src/index.ts
✗ 14:06:33  bash       deny   dangerous shell command pattern | command=rm -rf dist

Stats: allowed: 8 | asked: 2 | denied: 1
Scope: current conversation. Use /tool-guard all to include all in-memory entries.

Policy behavior

The default policy is intentionally conservative:

  • common read/search tools are allowed
  • simple read-only shell commands such as git status, git diff, ls, cat, and rg are allowed
  • chained, piped, redirected, or shell-expanded commands ask for confirmation, even when the visible command looks read-only
  • file mutation tools ask for confirmation
  • dangerous shell patterns such as rm -rf, package installs, git pushes/commits/resets, and curl | sh are denied
  • unknown tools are allowed and logged as unclassified tool; observe only

This mod only records decisions made by its own permission policy. It does not claim to audit every permission decision made by Letta Code or by other mods.

State

The audit log is in memory only and stores the latest 50 entries. It is cleared when the Letta Code process exits or reloads the mod.

Safety

Mods are trusted local code. Review the source before installing third-party mods.

If a mod breaks startup or command handling, recover with:

letta --no-mods
# or
LETTA_DISABLE_MODS=1 letta

Then remove or edit the mod package and run /reload.

See MOD.md for the agent-facing behavior and adaptation notes.