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

@wayofmono/wo-coding-agent

v1.0.23

Published

Coding agent CLI with read, bash, edit, write tools and session management

Readme

@wayofmono/wo-coding-agent

Coding agent CLI (wocode) with read, bash, edit, write tools, session management, and terminal UI. The primary coding agent for WayOfMono.

Installation

# As a project dependency
pnpm add -D @wayofmono/wo-coding-agent

# Or globally
npm install -g @wayofmono/wo-coding-agent

Quick Start

# Initialize project
npx wocode --init

# Start interactive session
npx wocode

# One-shot prompt
echo "Fix the bug in auth.ts" | npx wocode --print

CLI Reference

Core Commands

wocode                          # Start interactive TUI
wocode --print                  # Non-interactive mode (print to stdout)
wocode --init                   # Initialize .wocode/ directory
wocode --version                # Print version
wocode --help                   # Show help

Model Selection

wocode --model openai/gpt-4o           # Specific model
wocode --model anthropic/claude-sonnet-4-20250514  # Specific model
wocode --provider openai               # Filter by provider
wocode --list-models                   # List all available models
wocode --list-models "qwen"            # Search models

Session Management

wocode --continue                      # Continue most recent session
wocode --resume                        # Interactive session picker
wocode --session <id>                  # Open specific session
wocode --fork <id>                     # Fork a session
wocode --no-session                    # Disable session persistence
wocode --export <session>              # Export session to HTML

Tool Control

wocode --no-tools                      # Disable all tools
wocode --tools read,bash,edit          # Enable specific tools only

Output Modes

wocode --print                         # Print mode (text to stdout)
wocode --mode json                     # JSON output
wocode --mode rpc                      # JSON-RPC mode (IDE integration)

Built-in Tools

| Tool | Description | |------|-------------| | read | Read file contents with line ranges | | bash | Execute shell commands with timeout | | edit | Diff-based file editing (find/replace) | | write | Write/overwrite files | | grep | Search file contents with regex | | find | Find files by name/glob | | ls | List directory contents |

Configuration

Project Config (.wocode/)

Created by wocode --init:

.wocode/
├── config.json          # Tool configuration
├── models.json          # Model/provider settings
├── skills/              # Installed skills
├── extensions/          # Installed extensions
└── themes/              # Custom themes

Global Config (~/.wocode/agent/)

~/.wocode/agent/
├── skills/              # Global skills
├── agents/              # Agent definitions
├── extensions/          # Extensions
├── prompts/             # Prompt templates
└── themes/              # Themes

API Key Setup

# OpenAI
export OPENAI_API_KEY="sk-..."

# Anthropic
export ANTHROPIC_API_KEY="sk-ant-..."

# Google Gemini
export GEMINI_API_KEY="AIza..."

# Ollama (local, no key needed)
ollama pull qwen3.5:9b
ollama serve

Programmatic Usage

import { createAgentSession, createCodingTools } from "@wayofmono/wo-coding-agent";

const session = await createAgentSession({
  cwd: process.cwd(),
  model: someModel,
  tools: createCodingTools(),
});

await session.prompt("Fix the bug in auth.ts");
session.abort();

Session Management

import { SessionManager } from "@wayofmono/wo-coding-agent";

// List sessions
const sessions = await SessionManager.list(cwd);

// Open a session
const session = SessionManager.open(sessionPath, undefined, cwd);

// Fork a session
const forked = SessionManager.forkFrom(sessionPath, cwd);

Extension System

import { Extension, discoverAndLoadExtensions } from "@wayofmono/wo-coding-agent";

// Discover and load extensions
const result = await discoverAndLoadExtensions({
  cwd: process.cwd(),
  agentDir: ".wocode",
});

Keyboard Shortcuts (Interactive Mode)

| Shortcut | Action | |----------|--------| | Ctrl+C | Abort current generation | | Ctrl+D | Exit | | Tab | Accept suggestion | | Ctrl+O | Toggle output expand/collapse | | Ctrl+Alt+. | Cycle theme forward | | Ctrl+Alt+, | Cycle theme backward |

Package Dependencies

  • @wayofmono/wo-agent-core — Agent runtime
  • @wayofmono/wo-ai — LLM provider abstraction
  • @wayofmono/wo-tui — Terminal UI components

Related Packages

  • @wayofmono/wo-agent — General-purpose agent SDK (wouser)
  • @wayofmono/wo-agent-core — Core runtime this is built on
  • @wayofmono/wo-ai — LLM providers used by this
  • @wayofmono/wo-tui — Terminal UI used by this

Part of the WayOfMono high-performance coding agent ecosystem.