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

@agentopssec/agent-review

v1.0.0

Published

Review AI agent behavior, not just code diffs.

Readme

Agent Review

Review the agent's behavior, not just the code diff.

Agent Review evaluates AI agent runs for unsafe, unnecessary, or suspicious behavior. It helps developers understand whether an agent stayed in scope, changed sensitive files, skipped tests, added dependencies, or took risky actions on the way to a final diff.

Think of it as:

Code review for agent behavior

Why This Exists

Traditional code review looks at the final diff. Agent-generated work also needs review of the path the agent took.

Agent Review answers questions like:

  • Did the agent modify files outside the requested scope?
  • Did it touch auth, security, CI, deployment, or secrets?
  • Did it add dependencies unnecessarily?
  • Did it delete code instead of fixing it?
  • Did it skip tests?
  • Did it change public APIs?
  • Did it create migrations?
  • Did it hide or ignore errors?
  • Did it run risky shell commands?
  • Where should a human reviewer focus first?

Agent Review turns agent behavior into concrete findings.

Install

npm install -g @agentopssec/agent-review

Or run it without installing:

npx -y @agentopssec/agent-review --from-git-diff

Update

agent-review update          # check the registry, prompt before installing
agent-review update --yes    # update without prompting

Primary Workflow

Agent Review starts by reviewing a local diff or recorded agent run:

agent-review --from-git-diff

The workflow should do three things well:

  1. Detect risky behavior and sensitive changes.
  2. Compare the requested task to the files changed.
  3. Produce a clear risk score and review summary.

CLI

agent-review latest
agent-review run_001
agent-review --from-git-diff
agent-review --from-agent-flight run_001
agent-review --from-agent-sandbox run_001
agent-review --from-mcp-firewall
agent-review --github-pr 123
agent-review --ci
agent-review --ci --fail-on medium
agent-review --json
agent-review update [--yes]

Standalone and Stack Use

Agent Review runs on its own against the current git diff:

agent-review --from-git-diff

When used with the full AgentOpsSec stack, it can optionally review logs from Agent Flight Recorder, Agent Sandbox, and MCP Firewall. These are file-based inputs, not package dependencies:

agent-review --from-agent-flight latest
agent-review --from-agent-sandbox latest
agent-review --from-mcp-firewall

What Agent Review Checks

Agent Review analyzes agent logs, git diffs, tool calls, and command history for:

  • Files changed outside likely scope
  • Sensitive file changes
  • Dependency changes
  • Missing tests
  • Risky shell commands
  • Secret file access
  • CI/CD config changes
  • Auth and permission logic changes
  • Database migrations
  • Public API changes
  • Production config changes
  • Large diffs from narrow prompts
  • Suspicious file deletion
  • Error suppression

Example Output

Agent Review by github.com/AgentOpsSec

Prompt:
Fix the pricing card button alignment.

Result:
High-risk agent behavior detected.

Findings:
- Modified files outside likely UI scope
- Changed auth/session.ts
- Changed middleware.ts
- Added new dependency
- No tests detected

Recommendation:
Do not merge until security-sensitive files are manually reviewed.

Score: D

Review Result Shape

{
  "tool": {
    "name": "Agent Review",
    "by": "github.com/AgentOpsSec",
    "repository": "github.com/AgentOpsSec/agent-review"
  },
  "score": "D",
  "risk": "high",
  "summary": "High-risk agent behavior detected.",
  "findings": [
    {
      "type": "scope",
      "severity": "high",
      "message": "Task appears UI-only, but auth files changed.",
      "files": ["auth/session.ts", "middleware.ts"]
    },
    {
      "type": "tests",
      "severity": "medium",
      "message": "No test execution detected."
    }
  ],
  "recommendation": "Review security-sensitive files before accepting the diff."
}

Input Sources

Agent Review can consume:

  • Local git diffs
  • Agent Flight Recorder logs
  • MCP Firewall logs
  • Shell command history
  • Tool-call logs
  • Pull request metadata
  • CI output

It outputs:

  • Risk score
  • Review summary
  • Scope assessment
  • Sensitive file warnings
  • Dependency warnings
  • Test status
  • Recommended reviewer focus
  • JSON for automation

GitHub pull request review uses the GitHub CLI:

gh auth login
agent-review --github-pr 123

Design Principles

  • Local-first
  • Open-source
  • No telemetry by default
  • Rule-based and explainable
  • CI-friendly
  • Focused reviewer guidance
  • Conservative around sensitive changes
  • Useful without hosted infrastructure

Initial Release Scope

The initial release includes local diff review, agent log review, sensitive file detection, dependency warnings, test detection, and CI-friendly output.

1.0: Local Diff Review

  • Read the current git diff
  • Categorize changed files
  • Detect sensitive paths and config files
  • Detect dependency and lockfile changes
  • Detect broad diffs from narrow task descriptions
  • Generate a terminal review summary

1.0: Agent Run Review

  • Read Agent Flight Recorder logs
  • Compare prompt intent to changed files
  • Detect whether tests ran
  • Detect risky shell commands
  • Detect secret file access when logs include it
  • Produce reviewer focus areas

1.0: Automation and Scoring

  • Generate a structured risk score
  • Support JSON output
  • Support CI mode
  • Emit pass, warn, or fail decisions
  • Summarize findings by severity
  • Support pull request review inputs

Output

Reports use plain-language status words rather than raw exit codes:

  • ok — the step ran successfully (green).
  • failed (exit N) — the step exited non-zero (red); the original code is preserved.
  • skipped (reason) — the step was not applicable (dim).

Severity colors follow the AgentOpsSec palette (safe = green, warning = amber, risk = red). The palette honors NO_COLOR and FORCE_COLOR, and JSON / CSV output stays plain.

  • Repo: https://github.com/AgentOpsSec/agent-review
  • npm: https://www.npmjs.com/package/@agentopssec/agent-review
  • AgentOpsSec stack: https://github.com/AgentOpsSec/stack
  • Website: https://AgentOpsSec.com

Author

Created and developed by Aunt Gladys Nephew.

  • Website: https://auntgladysnephew.com
  • GitHub: https://github.com/auntgladysnephew
  • X: https://x.com/AGNonX