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

@agntk/cli

v1.3.0

Published

CLI for agntk — portable AI agent you install and point at problems

Readme

@agntk/cli

npm version license

CLI for agntk — a portable AI agent you install and point at problems.

Most users should install agntk instead, which re-exports this package and works with npx agntk.

Installation

npm install -g @agntk/cli
# or
pnpm add -g @agntk/cli

Quick Start

# One-shot prompt
agntk "fix the failing tests"

# Named agent with persistent memory
agntk -n coder "refactor the auth module"

# Interactive REPL
agntk -n coder -i

# Pipe input
cat error.log | agntk "explain this error"

After a one-shot prompt completes, you can type follow-up messages without re-running the command. The agent remembers the conversation. Use -q/--quiet to disable this and exit immediately.

CLI Reference

Options

| Flag | Short | Description | | ----------------------- | ----- | ------------------------------------------- | | --name <name> | -n | Agent name (enables persistent memory) | | --instructions <text> | | Custom system prompt | | --interactive | -i | Interactive REPL mode | | --workspace <path> | | Workspace root (default: cwd) | | --max-steps <n> | | Max tool-loop steps (default: 25) | | --verbose | | Show full tool args and output | | --quiet | -q | Text output only, no follow-up (for piping) | | --version | -v | Show version | | --help | -h | Show help |

Agent Management Commands

| Command | Description | | --------------------- | ---------------------------------------------- | | agntk list | List all known agents | | agntk info <name> | Show agent details (memory, workspace, tokens) | | agntk delete <name> | Delete an agent's state | | agntk stop <name> | Stop a running agent | | agntk clean | Interactively remove stale agents | | agntk completions | Output shell completion script (bash/zsh/fish) |

Interactive REPL

In REPL mode (-i or follow-up after one-shot), type / and press TAB for command autocomplete:

| Command | Description | | ---------- | -------------------------- | | /help | Show available commands | | /tools | List available tools | | /agents | List all agents | | /model | Show current model info | | /memory | Show agent memory files | | /status | Show session stats | | /verbose | Toggle verbose output | | /clear | Clear conversation history | | /exit | Quit the REPL |

Shell Completion

When installed globally, shell completions auto-install on first run:

npm i -g @agntk/cli
agntk --version  # triggers auto-install for your shell

# Or generate manually:
agntk completions bash  # bash
agntk completions zsh   # zsh
agntk completions fish  # fish

Update Notifications

agntk checks npm for newer versions in the background (cached for 24 hours). When an update is available, you'll see:

Update available: 1.2.8 -> 1.3.0 -- run npm i -g agntk

Provider Detection

The CLI auto-detects your AI provider:

  1. Free tier — works out of the box via Cerebras (usage limits apply)
  2. OpenRouterexport OPENROUTER_API_KEY=sk-or-...
  3. Ollama — auto-detected at localhost:11434

Built on @agntk/core

The CLI uses @agntk/core for agent creation, tool management, and model resolution. See the core package for programmatic usage and the full SDK API.

License

MIT