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

genbox-agent

v1.0.146

Published

Unified agent for monitoring and controlling AI CLI sessions (Claude Code, Gemini CLI, OpenAI Codex) in genbox VMs

Readme

genbox-agent

Unified daemon for monitoring and controlling AI CLI sessions (Claude Code, Gemini CLI, OpenAI Codex) locally or in remote VMs.

Installation

You typically don't need to install this manually. Both the Genbox CLI and Genbox Desktop app will automatically install and manage the daemon for you.

If you want to install it globally (optional):

npm install -g genbox-agent

Quick Start

The daemon is typically started automatically by:

  • Genbox Desktop: Launches daemon on app startup
  • Genbox CLI: Uses npx genbox-agent on demand

To start manually:

genbox-agent --native --server

Usage

# Show version
genbox-agent --version

# Show help
genbox-agent --help

# Start daemon with HTTP/WebSocket server (for desktop app)
genbox-agent --native --server

# Start daemon without server
genbox-agent --native

# Custom port
genbox-agent --native --server --port 8080

Features

  • Multi-Provider Support: Works with Claude Code, Gemini CLI, and OpenAI Codex
  • Session Management: Create, monitor, and control AI CLI sessions
  • Real-time Sync: Syncs session data from Claude Code's JSONL files
  • HTTP/WebSocket API: REST API and real-time events for desktop apps
  • State Tracking: Monitors session states (thinking, tool_use, waiting_for_input)

API Endpoints

When running with --server, the daemon exposes:

| Endpoint | Method | Description | |----------|--------|-------------| | /health | GET | Health check and version info | | /api/sessions | GET | List all sessions | | /api/sessions/:id | GET | Get session details | | /api/sessions/:id/messages | GET | Get session messages | | /api/sessions/:id/prompt | POST | Send prompt to session |

Configuration

Environment Variables

| Variable | Description | |----------|-------------| | GENBOX_ID | Instance ID (for cloud mode) | | GENBOX_TOKEN | Auth token (for cloud mode) |

CLI Options

| Option | Description | |--------|-------------| | --native | Run in local mode (no cloud connection) | | --server | Enable HTTP/WebSocket server | | --port <port> | Server port (default: 47191) | | --control-token | Authentication token for API | | --no-sync | Disable background sync |

Requirements

How It Works

  1. Session Discovery: Detects active AI CLI sessions via dtach sockets
  2. JSONL Sync: Reads Claude Code's conversation files from ~/.claude/projects/
  3. State Inference: Tracks session states from JSONL content and file modification times
  4. Event Broadcasting: Emits real-time events via WebSocket for UI updates

Data Storage

  • Database: SQLite at ~/.genbox/data/agent.db
  • Logs: ~/.genbox/daemon.log
  • Lock files: ~/.genbox/locks/

License

MIT