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

dev-md

v0.0.4

Published

A markdown-native AI agent CLI for development tasks

Readme

dev-md

A CLI agent that uses markdown formatting for tool calls. Works with any OpenAI-compatible API.

⚠️ Security Note: dev.md executes commands and modifies files based on AI model output. Only run it in directories you trust. Config stored at ~/.dev-md/config.json.

Key Features

Markdown Tool Format

The agent's responses use markdown structure for tool calls, parsed by the CLI:

## Tool Choice
WRITE_FILE

## Tool Input
"src/index.js"

```js
console.log('hello');

### Available Tools
- `LIST_DIRECTORY` - List files (supports glob patterns)
- `READ_FILE` - Read file contents
- `WRITE_FILE` - Create/overwrite files
- `FIND_AND_REPLACE_IN_FILE` - Edit files with find/replace blocks
- `COMMAND` - Execute shell commands
- `ASK_USER` - Request user input (interactive mode only)
- `DONE` - Complete task and trigger audit

### Session Management
- Sessions persist to disk with full conversation history
- Resume previous sessions with `--resume` or `--session <uuid>`
- Sessions track task lists, token usage, and working directory

### Audit System
When the agent calls `DONE`, an audit agent verifies the work was completed correctly before marking the session complete. Failed audits return feedback to the main agent.

### Thinking Mode
Optional reflection step (`--think`) where the agent reasons about tool results before continuing. Helps with complex multi-step debugging tasks.

## Installation

```bash
npm install -g dev-md

Setup

Run the setup wizard to configure your API endpoint:

dev setup

This creates ~/.dev-md/config.json with:

{
  "apiUrl": "http://localhost:8000/v1",
  "apiKey": "your-api-key",
  "model": "gpt-4",
  "maxContextTokens": 200000,
  "commandTimeout": 30,
  "maxRetries": 3,
  "maxLoops": 1000,
  "sessionRetentionDays": 30
}

Works with any OpenAI-compatible API (OpenAI, Anthropic via proxy, vLLM, ollama, etc).

Usage

Automated Mode

Run a single prompt non-interactively:

dev -p "Create a Node.js Express server with user routes"

Interactive Mode

Start an interactive session:

dev

Options

-p, --prompt <text>   Run with a prompt (automated mode)
-v, --verbose         Show full tool outputs and audit details
-q, --quiet           Compact output
-t, --think           Enable thinking/reflection mode
--resume              Resume last session in this directory
--session <uuid>      Resume a specific session

Session Commands

dev sessions list     # List all sessions
dev config            # Open config in editor

Security Considerations

  • Full system access: The agent can read, write, and execute commands on your machine
  • Only run in directories you trust
  • Review the agent's task list before it executes
  • API keys are stored in plain text in ~/.dev-md/config.json
  • Consider running in a container or VM for untrusted tasks

License

MIT