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

hiboss

v2026.2.12

Published

Local-first daemon + CLI for routing durable envelopes between agents and chat channels (e.g., Telegram).

Downloads

97

Readme

Hi-Boss

Orchestrate Codex / Claude Code agents from Telegram — with durable communication, editable memory, and non-blocking parallel execution.

Highlights:

  • Provider flexibility: supports both official provider workflows and relay fallback paths (官方直连 + 中转站方案).
  • Built-in memory system: human-readable, directly editable Markdown memory for each agent.
  • Envelope system: durable agent↔agent and agent↔user communication with auditable message flow.
  • Non-blocking delegation: background/leader agents handle heavy tasks in parallel, while specialist agents can be registered for focused domains.

Sponsor

YesCode is a reliable Claude Code/Codex relay provider with stable service quality and reasonable pricing.

Install

Before setup, make sure at least one provider CLI is installed and runnable:

  • Claude Code (claude --version)
  • Codex (codex exec --help)

Via npm:

npm i -g hiboss
hiboss setup
hiboss daemon start --token <boss-token>

First run (setup + start daemon):

hiboss setup
hiboss daemon start --token <boss-token>

Upgrade:

hiboss daemon stop --token <boss-token>
npm i -g hiboss@latest

Tip: restart the daemon after upgrading:

hiboss daemon start --token <boss-token>

Dev/from source: see docs/index.md.

Setup

hiboss setup initializes local state and prints tokens once.

| Item | Path | |---|---| | Data root (default) | ~/hiboss/ | | Data root (override) | $HIBOSS_DIR | | Daemon internals (db/socket/log/pid) | ${HIBOSS_DIR:-$HOME/hiboss}/.daemon/ | | Agent memory file | ${HIBOSS_DIR:-$HOME/hiboss}/agents/<agent-name>/internal_space/MEMORY.md | | Daily memory files | ${HIBOSS_DIR:-$HOME/hiboss}/agents/<agent-name>/internal_space/memories/ |

Directory sketch:

${HIBOSS_DIR:-$HOME/hiboss}/
  .daemon/
  agents/<agent-name>/internal_space/
    MEMORY.md
    memories/

Repair / reset:

  • Healthy setup rerun (safe no-op): hiboss setup
  • Broken/incomplete setup (non-destructive) via config export/apply:
hiboss daemon stop --token <boss-token>
hiboss setup export --out ./hiboss.setup.json
# edit ./hiboss.setup.json
hiboss setup --config-file ./hiboss.setup.json --token <boss-token> --dry-run
hiboss setup --config-file ./hiboss.setup.json --token <boss-token>
hiboss daemon start --token <boss-token>

Full reset (destructive):

hiboss daemon stop --token <boss-token>
rm -rf "${HIBOSS_DIR:-$HOME/hiboss}"
hiboss setup
hiboss daemon start --token <boss-token>

Tip: most commands accept --token <token> or read HIBOSS_TOKEN when --token is omitted.

Telegram

Hi-Boss connects an agent to Telegram via a bot.

  1. Create a Telegram bot token via @BotFather.

  2. Bind the bot to a speaker agent (the setup-created speaker is bound during hiboss setup; use this for additional speaker agents):

hiboss agent set --token <boss-token> --name <speaker-agent-name> --role speaker --bind-adapter-type telegram --bind-adapter-token <telegram-bot-token>
  1. Talk to your agent by messaging the bot in Telegram.

Boss-only Telegram commands:

  • /status — show hiboss agent status for the bound agent
  • /new — request a session refresh for the bound agent
  • /abort — cancel current run and clear the bound agent's due pending inbox

Agent

Manage agents via the CLI (create / update / remove), and optionally delegate admin to a trusted agent via permission-level.

Create/register a new agent:

hiboss agent register --token <boss-token> --name ops-bot --role leader --provider codex --description "AI assistant" --workspace "$PWD"

Update an agent (manual configuration):

hiboss agent set --token <boss-token> --name ops-bot --provider codex --permission-level privileged

Remove an agent:

hiboss agent delete --token <boss-token> --name ops-bot

List / status:

hiboss agent list --token <boss-token>
hiboss agent status --token <boss-token> --name ops-bot

Permission levels

Hi-Boss separates:

  • Boss-marked messages (fromBoss / [boss] in prompts) — adapter identity (e.g., your Telegram username), and
  • Authorization (permission-level) — what a token is allowed to do via CLI/RPC.

Available levels: restricted, standard, privileged, boss.

Set permission level:

hiboss agent set --token <boss-token> --name <agent-name> --permission-level <level>

Boss-level agent (delegate admin)

If you want an agent to be able to do Hi-Boss admin operations just by chatting with it (register agents, remove agents, rebind adapters, etc.), grant it permission-level: boss:

hiboss agent set --token <boss-token> --name <agent-name> --permission-level boss

Then, as the boss/user, go to Telegram and ask that agent to perform admin tasks for you (e.g., “add an agent”, “remove an agent”, “update bindings”). If you prefer, you can always do the same operations manually with hiboss agent register|set|delete.

This is powerful: a boss-level agent token can perform any boss-privileged CLI operations. Only do this for an agent you fully trust.

Memory

Per-agent memory lives under ${HIBOSS_DIR:-$HOME/hiboss}/agents/<agent-name>/internal_space/:

  • MEMORY.md — long-term memory
  • memories/YYYY-MM-DD.md — daily memory files

Docs

  • docs/index.md — docs hub (specifications)
  • docs/spec/index.md — spec entrypoint + map
  • docs/spec/cli.md — CLI command surface and links
  • docs/spec/adapters/telegram.md — Telegram adapter behavior