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

@vortex-ai/cli

v0.1.81

Published

Vortex CLI - The main entry point

Readme

Vortex - Developer Intelligence & PR Review Engine

npm version Node.js Version License

Vortex is an autonomous, AI-powered developer assistant and CLI tool that combines semantic code search, Git integration, and LLM-based intelligence. It provides contextual code reviews, deeply technical issue analysis, interactive semantic search, and an autonomous coding agent to help you solve tasks right in your terminal.


Quick Start

Installation

Install Vortex globally via npm:

npm i -g @vortex-ai/cli

Configuration

Vortex requires an API key for its LLM engine (e.g., Google Gemini or Groq). You can easily configure your keys globally using the config command:

# Add your Gemini API key
vortex config set gemini "your_gemini_key_here"

# Add your Groq API key
vortex config set groq "your_groq_key_here"

# Add your OpenRouter API key (fallback provider)
vortex config set openrouter "your_openrouter_key_here"

# View your active configuration
vortex config list

You can also use project-specific .env files or inline environment variables.

Your First Commands

# 1. Initialize the local vector and BM25 indexes for your repository
vortex init

# 2. Ask the autonomous agent to solve a task
vortex solve "Refactor the authentication middleware to use JWT"

# 3. Perform a multi-agent review on a pull request
vortex review --pr 42

Core Features

  • vortex solve <prompt>: Autonomous AI agent that explores your codebase, writes code, and executes terminal commands to solve your task.
  • vortex solve-issue --id <id>: Seamlessly connects GitHub issues with the Autonomous Agent. Fetches the issue, runs RAG to find relevant local code, and automatically writes the fix.
  • vortex review --pr <id>: Multi-agent PR review analyzing security, architecture, and logic.
  • vortex search -q <query>: Semantic, natural language code search backed by AI explanations.
  • vortex issue --id <id>: Analyzes GitHub issues and proposes step-by-step local code fixes.
  • vortex graph: Automatically generates Mermaid dependency graphs of your files or entire project.

Note: The CLI is deeply optimized for performance. We recently pruned obsolete commands to focus purely on autonomous intelligence.

Note: Most read-only analysis commands automatically cache LLM requests to speed up subsequent runs and save API costs.


Real-world Examples

Scenario 1: Refactoring Code Autonomously

vortex solve "Refactor the authentication middleware to use JWT instead of sessions, making sure it aligns with the existing User model"

Scenario 2: Pre-Merge Security & Architecture Review

vortex review --pr 104 --deep
# Output: The Security Agent flags a data leak, the Architecture Agent suggests abstracting the API call, and the Synthesizer provides the exact diff to fix it.

Scenario 3: Fully Autonomously Solving a GitHub Issue

vortex solve-issue --id 45
# Output: Fetches Issue #45, grabs local RAG context, and hands it directly to the ReAct agent which actively writes the code to fix the bug.

Architecture Overview

Vortex runs on a sophisticated Multi-Agent Cognitive Architecture backed by Hybrid RAG (Retrieval-Augmented Generation).

Multi-Agent System

Instead of passing code blindly to an LLM, Vortex uses specialized agents:

  • Security Agent: Scans for vulnerabilities and insecure patterns.
  • Architecture Agent: Checks code for design consistency against your repo's existing patterns.
  • Synthesizer Agent: Combines outputs into an actionable, unified review.
  • Base Agent (ReAct Loop): An autonomous loop that can execute file system tools, read code, search the web for missing library schemas, and run terminal commands to iteratively solve tasks.

Memory & Retrieval

Vortex utilizes a multi-layered memory architecture to maintain context without exceeding token limits or sacrificing privacy.

  1. Persistent Agentic Memory (MemoryService): Acts as episodic memory. Stores review history, architectural decisions, and known bugs in a local SQLite database for cross-PR consistency.
  2. Hybrid RAG Indexing (HybridRetriever): Uses AST-aware chunking, on-device Xenova Transformer dense vector embeddings, and sparse lexical BM25 indexing. Cross-encoder reranking ensures only the most relevant context is fed to the LLM.
graph TD
    User((User / Developer)) -->|CLI Commands| CLI[Vortex CLI Interface]
    CLI -->|Task & State Context| Engine[Intelligence Engine Core]
    
    subgraph Multi-Agent Cognitive Architecture
        Engine -->|Delegates to| Orchestrator[ReAct Base Agent / Review Orchestrator]
        Orchestrator <-->|Zero-Shot Analysis| Sec[Security Vulnerability Agent]
        Orchestrator <-->|Pattern Recognition| Arch[Architectural Consistency Agent]
        Orchestrator <-->|Context Aggregation| Synth[Synthesizer / Response Generation Agent]
    end
    
    subgraph Hybrid RAG Pipeline
        Engine -->|Semantic Queries| Retriever[Hybrid Semantic Retriever]
        Retriever -->|Dense Embeddings| VectorStore[(Prisma SQLite Vector DB)]
        Retriever -->|Sparse Lexical| BM25[(BM25 Keyword Index)]
        Retriever -->|Structural Parse| Chunking[AST-Aware Semantic Chunker]
        Retriever -->|On-Device Inference| Embedder[Local Xenova Transformers]
    end
    
    Engine <-->|Few-Shot Prompts / Tool Calling| AI((Google Gemini API / Groq LLMs))
    Orchestrator -->|Autonomous Execution| FileSystem[Local File System & Git Operations]

Security & Safety Boundaries

Running autonomous agents on your local machine requires strict safety rails. Vortex includes:

  • Interactive Diff Approvals: The solve command will pause and ask for your permission (Y/n) before running any terminal commands or overwriting files. You can bypass this in CI pipelines with the --auto-approve flag.
  • Rollback Backups: Whenever the agent modifies a file, the original version is automatically backed up to .vortex_backup/ to prevent data loss.
  • Command Blacklist: Dangerous commands like rm, sudo, chmod, and chown are instantly rejected if the agent attempts to run them.
  • Real-Time Visuals: See what the agent is doing with inline git diff outputs as files are successfully edited.

Performance & Privacy

Vortex is engineered for speed and cost-efficiency, keeping the heavy lifting local to your machine:

  • Zero-Cost Indexing: Generating embeddings for your repository runs entirely on-device via Xenova Transformers, meaning no API costs and complete privacy.
  • Token Efficiency: By intelligently chunking code (AST-aware) and only sending the most relevant segments to the LLM, Vortex uses significantly fewer tokens.

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to set up the development environment and submit pull requests.

Development Setup

git clone https://github.com/DivyanshuVortex/vortex.git
cd vortex
npm install
npm run build

License

This project is licensed under the MIT License - see the LICENSE file for details.