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

icopilot

v2.4.0

Published

iCopilot — terminal-native agentic CLI powered by GitHub Models

Readme


Screenshots


Install

npm install -g icopilot

Both icopilot and icli are installed as identical aliases:

$ icopilot --version
2.2.1

$ icli --version
2.2.1

Requirements: Node.js ≥ 18.17


Authentication

Create a GitHub Personal Access Token with models:read scope at
→ github.com/settings/tokens

# bash / zsh
export GITHUB_TOKEN=ghp_xxxxxxxxxxxx

# PowerShell
$env:GITHUB_TOKEN = "ghp_xxxxxxxxxxxx"

# Persist in ~/.icopilotrc.json
echo '{ "token": "ghp_xxxxxxxxxxxx" }' > ~/.icopilotrc.json

Quick Start

# Start interactive REPL
icopilot

# One-shot — answer a question and exit
icopilot -p "What does @src/index.ts export?"

# Plan mode — AI explains steps before making changes
icopilot --plan

# Autopilot — no confirmations, fully autonomous
icopilot --autopilot -p "Add error handling to all API calls"

# Use a specific model
icopilot --model gpt-4o

# Use local Ollama
icopilot --local

# Start HTTP API server
icopilot --serve 3000

# icli works exactly the same
icli --plan
icli -p "Explain this codebase"

CLI Reference

Usage: icopilot [options] [command]

Options:
  -p, --prompt <text>          one-shot mode: run a single prompt and exit
  -m, --model <name>           model id (default: gpt-4o-mini)
  --local                      use local Ollama provider
  --provider <name>            github | ollama | vllm | lmstudio | openai | anthropic
  --base-url <url>             override provider base URL
  --plan                       start in Plan Mode
  --autopilot                  run in autopilot mode (no confirmations)
  --architect                  planner + coder dual-agent mode
  --tui                        full-screen TUI interface
  --cwd <path>                 set working directory
  -v, --verbose                enable verbose debug logging
  --sandbox                    restrict tools to current working directory
  --log-level <level>          debug | info | warn | error
  --no-color                   disable colors
  --theme <name>               auto | light | dark | none
  --policy <file>              load a RBAC policy file
  --json                       output responses as JSON
  -q, --quiet                  suppress banners
  -y, --yes                    auto-approve non-critical confirmations
  --serve [port]               start HTTP API server
  --browser [port]             start API server and open browser UI
  --perf-trace                 print cold-start timing

Commands:
  install <plugin>             install a marketplace plugin
  hook [subcommand]            manage the git pre-commit hook

Slash Commands (inside the REPL)

Type / inside the REPL to trigger any command:

| Category | Commands | |---|---| | Navigation | /help /clear /exit /quit | | Models | /model <id> /provider <name> /reasoning /think-tokens | | Context | /context /usage /compact /pin /unpin /read-only /cwd | | Files | /diff /changes /edit-format /editor | | Session | /sessions /export /share /handoff /copy /paste /copy-context | | Git | /commit /pr /review /diff-review /issue /branch /git-log | | Agents | /plan /autopilot /goal /heal /tdd /architect | | Code Intel | /index /search /goto /refs /dead-code /error-watch /stack-trace | | Automation | /workflow /actions /release /schedule /every /after /trigger | | Knowledge | /rag /doc /diagram /readme /conventions /corrections /memory /style | | Teams | /space /team-memory /repo /multi | | System | /settings /profile /role /sandbox /serve /acp /cloud /cloud-routine | | Misc | /tokens /cost /stats /metrics /snippets /feedback /voice /web |


Modes

Interactive REPL

icopilot        # or: icli

The default mode. Streams markdown responses, shows tool proposals with [Y/n] confirmations, tracks token usage, and persists sessions automatically.

> Refactor @src/api/github-models.ts to add retry logic
> /review
> /commit

Plan Mode

icopilot --plan   # or: icli --plan

Before making any changes, the AI produces a numbered plan for your review. Approve each step before it executes. Ideal for complex multi-file refactors.

Autopilot

icopilot --autopilot -p "Add input validation to all form handlers"

Fully autonomous — the AI plans, implements, tests, and commits without prompts. Use --sandbox to restrict filesystem access to cwd.

Architect Mode

icopilot --architect

Dual-agent: a Planner agent produces a spec, then a Coder agent implements it step by step.

One-shot (scriptable)

icopilot -p "What is the cyclomatic complexity of src/index.ts?"
icopilot -p "Explain @package.json" --json
git diff | icopilot -p "Summarize these changes"

API Server

icopilot --serve 3000
# POST http://localhost:3000/v1/chat/completions

@file References

Mention any file with @ to inject its content into context:

> Review @src/auth/jwt.ts for security issues
> Compare @src/v1/api.ts and @src/v2/api.ts
> What changed in @package.json recently?

Supports glob patterns: @src/**/*.ts


Configuration

~/.icopilotrc.json (user-level defaults):

{
  "token": "ghp_...",
  "defaultModel": "gpt-4o-mini",
  "endpoint": "https://models.inference.ai.azure.com",
  "theme": "auto",
  "verbose": false,
  "sandbox": false
}

Environment variables:

| Variable | Description | |---|---| | GITHUB_TOKEN or ICOPILOT_TOKEN | API authentication token | | ICOPILOT_MODEL | Default model ID | | ICOPILOT_ENDPOINT | API endpoint override | | ICOPILOT_SESSION_DIR | Custom session storage path | | ICOPILOT_THEME | auto | light | dark | none | | ICOPILOT_LOG_LEVEL | debug | info | warn | error | | ICOPILOT_SANDBOX | true to restrict tools to cwd |

Project memory — .icopilot/memory.md (committed, shared)
Global memory — ~/.icopilot/memory.md (personal, cross-project)


Agentic Capabilities

Goal-Driven Development

Describe a feature at a high level — the AI breaks it down, implements it, runs tests, and iterates:

> /goal "Add OAuth2 login with GitHub"

Self-Healing Builds

> /heal

Detects build/test failures, diagnoses root cause, applies fixes, retries automatically.

TDD Agent

> /tdd "Write a rate limiter with sliding window"

Writes tests first, implements code until all tests pass.

Multi-File Atomic Edits

The AI can read, reason about, and edit N files in a single coherent operation — no context loss.

Pre-commit Hook

icopilot hook install

Runs /review and /security scan before every git commit.


Model Support

| Provider | Models | |---|---| | GitHub Models (default) | gpt-4o, gpt-4o-mini, o1, o1-mini, o3-mini, claude-3.5-sonnet, Llama-3.3-70B, and more | | Ollama | any locally-served model | | vLLM / LM Studio | any OpenAI-compatible endpoint | | OpenAI | direct API | | Anthropic | direct API | | Custom | any provider in .icopilot/providers/*.yaml |

Switch models at runtime:

> /model gpt-4o
> /provider anthropic

Plugin System

icopilot install <plugin-name>    # install from marketplace
/plugins list                     # list installed plugins
/extension load ./my-plugin.js    # load local extension

Architecture

src/
├── index.ts              ← CLI entry, flag parsing
├── config.ts             ← env + rc-file + runtime config
├── api/github-models.ts  ← OpenAI-SDK → GitHub Models
├── session/              ← history, persistence, handoff, cloud
├── context/              ← @file, /compact, memory, smart-files, git context
├── tools/                ← shell, file ops, patch, grep, glob, multi-edit
├── commands/             ← 60+ slash command handlers
├── agents/               ← parallel runner, router, goal, TDD, self-heal
├── intelligence/         ← symbol index, navigation, error watch, dead code
├── workflows/            ← YAML engine, file triggers, built-ins
├── knowledge/            ← RAG, style learner, corrections, conventions
├── security/             ← RBAC, audit, content filter, retention, proxy
├── providers/            ← custom providers, local models
├── plugins/              ← marketplace, loader
├── server/               ← HTTP API server
├── bridge/               ← VS Code / Neovim IDE bridge
├── sandbox/              ← container-based isolated execution
├── spaces/               ← project spaces
├── hooks/                ← pre-commit, git hooks
├── ui/                   ← streaming markdown, theme, prompt
└── modes/                ← interactive / plan / oneshot / TUI

Documentation

| Doc | Description | |---|---| | docs/config.md | Full config file reference | | docs/sessions.md | Session management & memory | | docs/mcp.md | MCP server integration | | docs/api.md | HTTP API server reference | | docs/teams-integration.md | Teams & spaces | | docs/cloud-routines.md | Scheduled cloud routines | | CHANGELOG.md | Release notes | | roadmap.md | Version roadmap |


License

MIT © i4Edu