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

@dryink/agentlag

v1.1.12

Published

your intelligent agent CLI

Readme

AgentLag

Interactive CLI agent for software engineering tasks. Multi-provider, autonomous, and extensible through skills.


What is AgentLag?

AgentLag is an autonomous terminal agent that acts as your development partner. It can read and edit files, execute shell commands, search through your project, and remember your preferences across sessions. It works with major LLM providers and automatically adapts to models that don't support native tool calling through a backup ReAct mode.


Installation

# Clone the repository
git clone https://github.com/andreslpxz/AgentLag_npm.git
cd AgentLag_npm

# Install dependencies
npm install

# Install globally (optional)
npm link

Requirements

  • Node.js 18+
  • An API key from the provider you wish to use

Configuration

Copy the example file and add your API key:

cp env.example .env

Available variables in .env:

ANTHROPIC_API_KEY=sk-...
OPENAI_API_KEY=sk-...
GROQ_API_KEY=gsk_...
OPENROUTER_API_KEY=sk-or-...
MISTRAL_API_KEY=...
DEEPSEEK_API_KEY=...
NVIDIA_API_KEY=...
LIGHTNING_API_KEY=...
TOGETHER_API_KEY=...
OLLAMA_BASE_URL=http://localhost:11434

The active configuration (chosen provider and model) is persisted in ~/.agentlag/config.json.


Usage

# Start the agent
agentlag

# Or directly with tsx if not installed globally
npx tsx cli.jsx

# Interactive test mode for development
npm run devintest

On first startup, a wizard will ask you to choose a provider and model.


Supported Providers

| Provider | Selection Command | Environment Variable | |---------------|-------------------|-------------------------| | Groq | /provider | GROQ_API_KEY | | OpenAI | /provider | OPENAI_API_KEY | | Anthropic | /provider | ANTHROPIC_API_KEY | | OpenRouter | /provider | OPENROUTER_API_KEY | | Mistral | /provider | MISTRAL_API_KEY | | DeepSeek | /provider | DEEPSEEK_API_KEY | | NVIDIA NIM | /provider | NVIDIA_API_KEY | | Lightning AI | /provider | LIGHTNING_API_KEY | | Together AI | /provider | TOGETHER_API_KEY | | Ollama | /provider | OLLAMA_BASE_URL |

Lightning AI

  1. Define LIGHTNING_API_KEY in .env or paste it when the wizard asks.
  2. Select Lightning AI in /provider.
  3. Choose a model: openai/gpt-4o, openai/o3, or lightning-ai/DeepSeek-V3.

Available Tools

AgentLag has the following tools that the model can invoke autonomously:

| Tool | Description | |------------------|--------------------------------------------------------------| | create_file | Creates or overwrites a file, including intermediate directories | | read_file | Reads a file's content with line numbers | | edit_file | Edits a file via exact search and replace | | list_directory | Lists files and folders (with recursive option) | | run_shell | Executes shell commands in the current directory | | read_skill | Reads and injects the content of an installed skill | | find_skills | Searches for available skills in skills.sh | | manage_memory | Saves or lists project data in persistent memory | | query_graph | Runs Cypher queries against the L3 Knowledge Graph |


Advanced Features

🚀 Evolution Engine

AgentLag analyzes successful task recordings and proposes new skills or improvements to existing ones.

  • /evolve list: See pending evolutions.
  • /evolve apply <index>: Apply a specific evolution.
  • /consolidate: Extract entities and relations from session history into the L3 Graph.

🧠 Knowledge Graph L3

Uses Kuzu DB to build a graph of entities and relations from your project, allowing the agent to have deep historical context.

🛠 Skill System

AgentLag can read installed skills from:

  • .agents/skills/ — Local project skills
  • ~/.agents/skills/ — Global user skills


Contributing

Contributions are welcome. If you want to add a new provider, add a case in the createLLM function in agent.js. For new tools, add them to tools.js using the LangChain tool() helper with a Zod schema.


License

MIT


Made with 🔥 by DryInk