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

agentctl-tui

v1.0.0

Published

Interactive terminal dashboard for managing supervised claude agents

Readme

agentctl-tui

Interactive terminal dashboard for managing supervised Claude agents. Wraps agentctl.sh in a blessed-based TUI with real-time status monitoring, log streaming, and live chat via AgentChat.

Node.js Dependencies License

┌─ Agents ──────┬─ Logs ──────────────────────┬─ Chat (#general) ──┐
│ ● agent-alpha  │ [14:32:01] Task completed   │ @bob: hey everyone │
│ ● agent-beta   │ [14:32:02] Starting next... │ @alice: hello!     │
│ ○ agent-gamma  │ [14:32:03] Processing...    │ @server: hi there  │
│ ✗ agent-delta  │                             │                    │
│                │                             │ > _                │
└────────────────┴─────────────────────────────┴────────────────────┘

Features

  • Agent lifecycle control — start, stop, restart, and kill agents with single keystrokes
  • Real-time log streaming — tails supervisor.log using fs.watch, no polling
  • Live chat — connects to the AgentChat WebSocket server with auto-reconnect
  • Status indicators running / stopped / dead / stopping
  • Agent detail view — name, PID, mission, uptime at a glance
  • Filter agents — quickly search by name with /
  • View context — inspect an agent's context.md with c

Install

git clone https://github.com/tjamescouch/agentctl-tui.git
cd agentctl-tui
npm install

Prerequisites

  • Node.js >= 10
  • agentctl.sh — the supervisor CLI that this TUI wraps. It searches these locations:
    • ~/dev/claude/agentchat/lib/supervisor/agentctl.sh
    • ~/dev/claude/projects/agent5/agentchat/lib/supervisor/agentctl.sh
    • Same directory as index.js
  • Agent data directory at ~/.agentchat/agents/

Usage

npm start
# or
node index.js

For global install:

npm install -g .
agentctl-tui

Keybindings

| Key | Action | |---|---| | Tab / Shift+Tab | Cycle focus: agents → logs → chat | | j / k or / | Navigate agent list | | s | Start selected agent | | x | Stop selected agent (graceful) | | r | Restart selected agent | | K | Kill selected agent (requires confirmation) | | c | View agent context file | | / | Filter agent list | | Enter | Focus chat input (when chat panel focused) | | Escape | Clear filter / exit chat input / cancel | | q / Ctrl+C | Quit |

Chat commands

| Command | Action | |---|---| | /join #channel | Switch to a different chat channel |

Architecture

Single-file application (index.js) with four subsystems:

| Subsystem | Responsibility | Mechanism | |---|---|---| | Agent Scanner | Reads ~/.agentchat/agents/, resolves PID status | Filesystem polling (3s) | | Log Streamer | Tails the selected agent's supervisor.log | fs.watch + debounce | | Chat Client | Sends/receives messages on AgentChat | WebSocket with auto-reconnect | | UI | Three-column layout, focus management, input | blessed |

Mutations (start/stop/restart/kill) are delegated to agentctl.sh via child_process.execFile. Status is read directly from the filesystem — no shell-out needed for display.

Agent Directory Structure

Each agent lives in ~/.agentchat/agents/<name>/:

supervisor.pid    # PID of running supervisor process
state.json        # Persistent agent state
mission.txt       # Agent's mission/purpose
supervisor.log    # Log output (streamed by TUI)
context.md        # Agent context/documentation
stop              # Signal file (present = stopping)

Dependencies

Just two:

  • blessed — terminal UI rendering
  • ws — WebSocket client

License

ISC