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

@nikita-bekish/code-assistant

v1.0.1

Published

AI-powered code assistant CLI with RAG, LLM classification, and MCP tools for frontend development

Readme

@nikita-bekish/code-assistant

🤖 AI-powered code assistant CLI with RAG (Retrieval-Augmented Generation), LLM classification, and MCP tools for frontend development.

Features

  • 🔍 Semantic Search - Find relevant code using RAG with vector embeddings
  • 💬 Interactive Chat - Ask questions about your codebase
  • 🏷️ Smart Classification - LLM-based question routing (git/crm/tasks/rag)
  • 🛠️ MCP Tools - Model Context Protocol for git operations, CRM, and task management
  • 📊 Project Analysis - Automatic indexing and code understanding
  • 🎯 Frontend Focus - Optimized for JavaScript/TypeScript projects

Requirements

  • Node.js >= 18.0.0
  • Ollama - Local LLM runtime (Installation guide)
    # Install Ollama
    curl https://ollama.ai/install.sh | sh
      
    # Pull required models
    ollama pull llama3.2
    ollama pull nomic-embed-text

Installation

Global (recommended)

npm install -g @nikita-bekish/code-assistant

Local

npm install @nikita-bekish/code-assistant
npx code-assistant --help

Quick Start

  1. Initialize in your project:
cd your-project
code-assistant init
  1. Index your codebase:
code-assistant index
  1. Start chatting:
code-assistant chat

Commands

code-assistant init

Initialize configuration in your project.

code-assistant init

Creates .code-assistant-config.json with default settings.

code-assistant index

Index your codebase for semantic search.

code-assistant index

Options:

  • Indexes all files according to .code-assistant-config.json
  • Generates embeddings using Ollama
  • Stores chunks in node_modules/.code-assistant/

code-assistant chat

Start interactive chat session.

code-assistant chat

Example questions:

  • "How does authentication work?"
  • "Show me high priority tasks"
  • "What is the current git status?"
  • "List all open tickets for user_1"

code-assistant reindex

Reindex the project (use after major code changes).

code-assistant reindex

Configuration

.code-assistant-config.json example:

{
  "projectName": "My Project",
  "projectDescription": "A modern web application",
  "indexing": {
    "includeFolders": ["src", "lib"],
    "excludeFolders": ["node_modules", "dist", ".git"],
    "includeFileTypes": ["js", "ts", "jsx", "tsx", "vue", "svelte"],
    "chunkSize": 1024,
    "chunkOverlap": 256
  },
  "llm": {
    "model": "llama3.2",
    "temperature": 0.7,
    "maxResults": 5
  },
  "embedding": {
    "model": "nomic-embed-text",
    "provider": "ollama"
  }
}

Features Overview

🔍 RAG (Retrieval-Augmented Generation)

  • Semantic code search using vector embeddings
  • Context-aware answers based on your codebase
  • Conversation memory for follow-up questions

🏷️ Smart Question Classification

  • Automatic routing: git → crm → tasks → rag
  • LLM-based classification for ambiguous questions
  • Heuristics for fast obvious cases

🛠️ MCP Tools

Git Tools:

  • git_branch - Get current branch
  • git_status - Show repository status

CRM Tools:

  • get_user - User information
  • list_tickets - User tickets
  • create_ticket - New support ticket
  • update_ticket - Update ticket status

Tasks Tools:

  • list_tasks - Team tasks with filters
  • create_task - New task
  • update_task - Update task status

Examples

Basic Usage

# Initialize and index
code-assistant init
code-assistant index

# Ask about code
code-assistant chat
> How does authentication work in this project?

# Ask about tasks
> Show me high priority tasks

With OpenAI (optional)

export OPENAI_API_KEY=your_key_here
code-assistant chat

Troubleshooting

"Ollama not found"

Install Ollama from https://ollama.ai/

"Model not found"

Pull required models:

ollama pull llama3.2
ollama pull nomic-embed-text

"No index found"

Run indexing first:

code-assistant index

Slow responses

  • Reduce chunkSize in config
  • Use smaller LLM model
  • Consider using OpenAI API

Development

# Clone repository
git clone https://github.com/nikita-bekish/my-code-assistant.git
cd my-code-assistant

# Install dependencies
npm install

# Build
npm run build

# Test locally
npm link
code-assistant --help

License

MIT © Nikita Bekish

Links