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

@deoninja/code-agent-cli

v1.0.0

Published

AI-powered coding agent for your codebase. Generate, review, fix, and refactor code with intelligent assistance.

Downloads

10

Readme

Code Agent CLI

AI-powered coding agent for your codebase. Generate, review, fix, and refactor code with intelligent assistance.

🚀 Features

  • Code Generation: Create entire applications, components, or functions
  • Interactive Chat: Natural language coding assistance
  • Code Review: Analyze code for bugs, performance, and best practices
  • Bug Fixing: Automatically detect and fix issues
  • Code Refactoring: Modernize and improve existing code
  • Multi-Provider: Support for Ollama, LM Studio, and Google Gemini

📦 Installation

From GitHub

git clone https://github.com/deoninja/code-agent.git
cd code-agent/cli
npm install
npm run build
npm link

From NPM

npm install -g code-agent-cli

⚙️ Configuration

Configure your AI provider:

code-agent config

Choose from:

  • Ollama (Local): http://localhost:11434/v1/chat/completions
  • LM Studio (Local): http://localhost:1234/v1/chat/completions
  • Google Gemini: Requires API key

🎯 Usage

Generate Code

# Create entire applications
code-agent generate "create a REST API with user authentication"
code-agent generate "build a React todo app" --framework react
code-agent generate "create a Python FastAPI backend" --framework fastapi

# Generate specific components
code-agent generate "add a login component" --type component
code-agent generate "create JWT middleware" --type function

Interactive Chat

code-agent chat

Then ask questions like:

  • "Create a new Express.js route for file uploads"
  • "Add error handling to my authentication middleware"
  • "Optimize this database query"

Code Review

# Review entire codebase
code-agent review --all

# Review specific files
code-agent review src/app.ts src/utils.ts

Fix Bugs

code-agent fix src/buggy-file.ts

Refactor Code

code-agent refactor src/old-code.ts -s "use modern async/await"
code-agent refactor src/component.jsx -s "convert to TypeScript"

🛠️ Commands

| Command | Description | Options | |---------|-------------|---------| | config | Configure AI provider settings | - | | chat | Start interactive chat mode | -p, --path <path> | | generate <description> | Generate new code/apps | -t, --type <type>, -f, --framework <framework> | | review [files...] | Review code for issues | -a, --all | | fix <file> | Fix bugs in specific file | - | | refactor <file> | Refactor code | -s, --suggestion <text> |

🎨 Generation Types

  • app - Complete applications
  • component - UI components
  • function - Individual functions
  • test - Unit tests
  • api - API endpoints

🔧 Supported Frameworks

  • Frontend: React, Vue, Angular, Svelte
  • Backend: Express, FastAPI, Django, Spring Boot
  • Mobile: React Native, Flutter
  • Desktop: Electron, Tauri

📁 Project Structure

Navigate to your project directory before running commands:

cd my-project
code-agent chat

The agent will understand your project structure and provide contextual assistance.

🤖 AI Providers Setup

Ollama (Recommended for Local)

# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh

# Pull a model
ollama pull llama3.1:8b

# Configure code-agent
code-agent config
# Select: ollama
# URL: http://localhost:11434/v1/chat/completions
# Model: llama3.1:8b

LM Studio

  1. Download and install LM Studio
  2. Load a model and start the server
  3. Configure code-agent with http://localhost:1234/v1/chat/completions

Google Gemini

  1. Get API key from Google AI Studio
  2. Configure code-agent and enter your API key

📝 Examples

Create a Full-Stack App

code-agent generate "create a task management app with React frontend and Express backend"

Add Authentication

code-agent generate "add JWT authentication to my Express API" --type function

Interactive Development

code-agent chat
> "Add a dark mode toggle to my React app"
> "Create a database migration for user roles"
> "Optimize my API response times"

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE file for details.

👨‍💻 Author

Deo Trinidad


⭐ Star this repo if you find it helpful!