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

@microsoft/agent-governance-claude-code

v4.0.0

Published

Public Preview — Claude Code governance plugin for Agent Governance Toolkit developer protection policies

Readme

AGT Claude Code Plugin

This package is the production package surface for Agent Governance Toolkit on Claude Code.

It ships a Claude Code plugin that uses:

  • Claude hooks for deterministic session, prompt, and pre-tool governance
  • a bundled MCP server for operator-facing AGT inspection tools
  • the AGT TypeScript SDK for policy evaluation, prompt defense, and MCP threat scanning

What this package is

  • a first-party Claude Code plugin package
  • an experimental parity layer for the existing Copilot CLI governance work
  • a publishable npm package that can also be loaded locally with Claude Code

What this package is not

  • a Copilot-style in-process extension
  • a universal governance layer for every Claude surface
  • a guarantee of full Copilot CLI feature parity

Current scope

This initial package enforces:

  • SessionStart governance context injection
  • UserPromptSubmit prompt inspection and fail-closed blocking
  • PreToolUse tool-call inspection with allow, deny, or ask behavior

It also exposes two MCP tools:

  • agt_policy_status
  • agt_policy_check_text

Important parity gaps

  • Claude slash commands are markdown-driven, so /agt-governance:agt-status and /agt-governance:agt-check are thin wrappers around MCP tools rather than deterministic code handlers.
  • PostToolUse in Claude cannot reliably redact tool output after the tool has already executed, so this package does not claim Copilot-style output suppression parity.
  • Hook execution is out-of-process. The package keeps enforcement in command hooks so policy errors can fail closed.

Local development

Run these commands from the repository root so the relative plugin path resolves correctly.

Install dependencies:

cd agent-governance-claude-code
npm install

Load the plugin directly:

claude --plugin-dir .\agent-governance-claude-code
claude --plugin-dir "$(pwd)/agent-governance-claude-code"

Inspect the active policy and command wiring:

/agt-governance:agt-status
/agt-governance:agt-check suspicious text to inspect

Reload after edits:

/reload-plugins

Commands

The package provides two Claude commands:

  • /agt-governance:agt-status
  • /agt-governance:agt-check

Example walkthrough

For a runnable repo-local walkthrough with a sample policy override, expected prompts, and cleanup notes, see:

Policy loading

The package loads policy in this order:

  1. AGT_CLAUDE_POLICY_PATH
  2. %USERPROFILE%\.claude\agt\policy.json
  3. ~/.claude/agt/policy.json
  4. bundled config/default-policy.json

Audit entries are written to:

  • Windows: %USERPROFILE%\.claude\agt\audit-log.json
  • macOS/Linux: ~/.claude/agt/audit-log.json

Override with AGT_CLAUDE_AUDIT_PATH.

Validation

cd agent-governance-claude-code
npm run check
npm test