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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@abanteai/mentat

v0.1.0

Published

Command line interface for Mentat AI coding assistant

Readme

Mentat CLI

Command line interface for Mentat AI coding assistant.

Installation

Install the CLI globally from npm:

npm install -g @abanteai/mentat

After installation, you can use mentat directly:

mentat login
mentat ls
mentat message --id <agent-id> "Hello"

Commands

The primary commands are:

Create Agent

Create a new agent and send an initial message:

mentat create [message]

If no message is provided, the CLI will open your default editor. The same comment filtering applies as described in the Send Message section.

Options:

  • -W, --web: Open the new agent in your browser after creation
  • -r, --repo <owner/repo>: Repository to create agent for (e.g., owner/repo)
  • -b, --branch <branch>: Branch to use (defaults to repository default)
  • -m, --model <model>: Model to use for the agent
  • --show-filtered: Show comment lines that were filtered out from editor input

Aliases: new

List Agents

List your agents in a table format:

mentat list
mentat ls  # alias

Options:

  • -p, --page <number>: Page number (default: 0)
  • -r, --rows <number>: Rows per page (default: 20)
  • -s, --search <query>: Search query

Aliases: ls

Send Message

Send a message to an agent:

mentat message [message]
mentat comment [message]  # alias
mentat msg [message]      # alias

If no message is provided, the CLI will open your default editor.

Options:

  • -W, --web: Open the agent in browser after messaging
  • -R, --repo <owner/repo>: Repository to find agents in
  • -b, --branch <branch>: Branch to find agents for
  • --id <agent-id>: Send to specific agent by ID
  • --number <number>: Send to agents subscribed to PR/issue number
  • --show-filtered: Show comment lines that were filtered out from editor input

Aliases: comment, msg

Example:

mentat message "Please fix the bug in main.py"
mentat msg --id abc123 "Add error handling"

View Agent

View an agent's events:

mentat view [options]

Options:

  • -R, --repo <owner/repo>: Repository to find agents for
  • -b, --branch <branch>: Branch to find agents for
  • --id <agent-id>: View specific agent by ID
  • --number <number>: View agents subscribed to PR/issue number

Checkout Agent Branch

Checkout the most recent branch made by an agent:

mentat checkout [options]
mentat co [options]  # alias

Options:

  • -R, --repo <owner/repo>: Repository to find agents for
  • -b, --branch <branch>: Branch to find agents for
  • --id <agent-id>: Checkout branch from specific agent by ID
  • --number <number>: Checkout branch from agents subscribed to PR/issue number
  • --live: Apply uncommitted edits from the agent to local files

Aliases: co

Configuration

The CLI stores its configuration in ~/.mentat/config.json. This file contains:

  • token: Your authentication token
  • installationId: Default installation ID (optional, can be overridden with --installation flag)

Getting Help

Use the --help flag with any command to see available options:

mentat --help
mentat ls --help
mentat message --help

Support

For support and documentation, visit mentat.ai/docs/cli.