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

@baristhedeveloper/nexus

v0.4.3

Published

Multi-LLM Orchestrated CLI — multi-model, role-based AI panel with persistent memory, MCP & skill support

Downloads

1,202

Readme

Nexus

Multi-LLM Orchestrated CLI — Multi-model, role-based AI system with persistent memory

Nexus is a terminal-based multi-agent AI system. An orchestrator analyzes your request, selects specialist agents, lets them debate and contribute, then synthesizes a final response. Like a panel of AI experts working together.

Installation

npm i -g @baristhedeveloper/nexus
nexus

Or from source:

git clone https://github.com/BarisTheDeveloper/nexus.git
cd nexus
pnpm install && pnpm build
pnpm dev

Update to latest:

nexus-update check
nexus-update install

Uninstall:

nexus-update uninstall
# → asks "Type 'yes' to confirm"
# → removes ~/.nexus/ + npm package

Quick Start

First run opens an interactive setup wizard — pick your provider with arrow keys, enter your API key, done.

nexus
# → Setup wizard guides you through provider selection
# → Arrow keys to navigate, Enter to select
# → That's it. Start chatting.

Or add providers later:

/new provider

Manual config at ~/.nexus/config.yaml:


```yaml
providers:
  - id: deepseek
    apiKey: ${DEEPSEEK_API_KEY}  - id: openai
    apiKey: ${DEEPSEEK_API_KEY}defaultProvider: deepseek
defaultModel: deepseek-chat
criticApproval: true

2. Chat

Just type. Nexus will analyze, route to agents, and stream responses.

Features

  • 6 built-in agents — Planner, Researcher, Coder, Executor, Critic, Summarizer
  • 9 LLM providers — OpenAI, Anthropic, Gemini, DeepSeek, Ollama, Groq, Fireworks, LM Studio, Z.AI
  • Streaming UI — Token-by-token with thinking animation
  • Agent tools — Shell, file, web search, GitHub (PR, issue, clone), background tasks
  • Function calling — Native tool use on OpenAI, DeepSeek, Gemini, Ollama
  • Critic safety gate — Shell commands reviewed before execution
  • Persistent memory — SQLite + Ollama embeddings (768-dim) or hash fallback
  • Session resumenexus --sessions / nexus --resume <id>
  • Custom agents/new agent wizard or agents.yaml
  • Permission system/allow all | safe | ask
  • Cost tracker/cost per agent per session
  • MCP + Skills — External tool servers, skill registry
  • Auto-updaternexus-update check | install
  • Markdown rendering — Bold, code blocks, lists
  • Paste detection — Large pastes collapsed automatically

Commands

| Command | Description | |---------|-------------| | /help | Toggle help | | /agents | List agents with models & tools | | /providers | Show configured providers | | /models [provider] | Browse models from API | | /model <agent> <model> | Assign model | | /new agent | 🧙 Wizard: create custom agent | | /new provider | 🧙 Wizard: add provider | | /doctor | System health check | | /sessions | List saved sessions | | /resume <id-or-#> | Resume past session | | /config show | View config | | /config agent add/remove | Manage agents | | /config provider add/remove | Manage providers | | /think <query> | Planner + Critic | | /code <request> | Coder only | | /exec <command> | Shell command (Critic-gated) | | /memory search <q> | Search memory | | /cost | Session API cost | | /mcp | MCP servers & skills | | /skills | List installed skills | | /allow all|safe|ask | Permission level | | /gh pr <title> | Push & create PR | | /gh issues | List issues | | /gh clone <url> | Clone repo | | /bg run <cmd> | Background task | | /export [json] | Export session | | /redraw | Fix display glitches | | /clear | Clear chat | | /status | System status | | /exit | Exit |

CLI Usage

nexus                        # New session
nexus --sessions             # List saved sessions
nexus --resume <id>          # Resume by ID
nexus --resume-no 1          # Resume newest
nexus --version              # Show version
nexus-update check           # Check for updates
nexus-update install         # Update to latest
nexus-update uninstall       # Remove everything

Agent Tools

Agents with coding, command_execution, or research capabilities get:

| Tool | Description | |------|-------------| | shell_exec | Execute shell commands (Critic-gated) | | file_tool | Read/write/list files | | web_search | Search the web | | github_create_pr | Create pull request | | github_create_issue | Create issue | | github_clone | Clone repository | | github_list_issues | List open issues | | background_run | Run command in background |

Built-in Agents

| Agent | Role | Default Provider | Tools | |-------|------|-----------------|-------| | Orchestrator | Task analysis | defaultProvider | — | | Planner | Task decomposition | ollama / llama3.2 | — | | Researcher | Information gathering | gemini / gemini-1.5-pro | web_search | | Coder | Code generation | anthropic / claude-sonnet-4 | file, shell, github | | Executor | Command execution | ollama / llama3.2 | shell | | Critic | Security review | gemini / gemini-1.5-flash | — | | Summarizer | Memory extraction | ollama / llama3.2 | — |

Providers

| Provider | ID | Function Calling | |----------|----|-----------------| | OpenAI | openai | Native | | Anthropic | anthropic | Prompt-based | | Google Gemini | gemini | Native | | DeepSeek | deepseek | Native | | Ollama | ollama | Native | | Groq | groq | Native | | Fireworks | fireworks | Native | | LM Studio | lmstudio | — | | Z.AI | zai | Native |

Custom Agents

Via wizard (recommended):

/new agent

Or ~/.nexus/agents.yaml:

agents:
  - id: devops
    name: DevOps Engineer
    role: Infrastructure & deployment
    provider: deepseek
    model: deepseek-chat
    systemPrompt: You handle CI/CD and cloud infrastructure.
    capabilities: [coding, command_execution]
    priority: 5

Configuration

~/.nexus/config.yaml

providers:
  - id: deepseek
    apiKey: ${DEEPSEEK_API_KEY}defaultProvider: deepseek
defaultModel: deepseek-chat
criticApproval: true

~/.nexus/profile.yaml

language: en
responseStyle: detailed
preferredModels:
  deepseek: deepseek-chat

~/.nexus/agents.yaml

agents:
  - id: my-agent
    name: My Agent
    role: Custom role
    provider: deepseek
    model: deepseek-chat
    systemPrompt: "You are..."
    capabilities: [thinking, coding]
    priority: 5

Skills

Create custom skills in ~/.nexus/skills/<name>/SKILL.md:

---
name: my-skill
description: Does something useful
category: tools
---

## Instructions
Step by step guide...

Agents discover skills automatically. Use /skills to list.

Development

pnpm dev          # Run with hot reload
pnpm build        # Compile TypeScript
pnpm typecheck    # Type check only
pnpm clean        # Remove dist/

# Tests
npx tsx tests/critic-approval.ts   # Mock tests
npx tsx tests/end-to-end.ts        # E2E (needs DeepSeek)

Tech Stack

  • Runtime: Node.js 18+
  • Language: TypeScript 5.6 (strict)
  • CLI: Ink 5 (React for terminal)
  • LLM SDKs: openai, @anthropic-ai/sdk, @google/generative-ai, ollama
  • Storage: better-sqlite3 (WAL mode)
  • Embeddings: Ollama nomic-embed-text / hash fallback
  • Config: YAML
  • Shell: execa

License

GPL