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

@sean-sunagaku/aipanel

v0.1.0

Published

CLI broker and orchestrator for consult, followup, and debug workflows with Claude Code.

Downloads

58

Readme

aipanel

aipanel は、Claude Code を provider として使いながら、相談、継続会話、デバッグ調査を CLI で進めるための TypeScript 製 broker / orchestrator です。

現時点の phase 1 では、claude-code 単独 provider を前提に、Session / Run / Artifactaipanel 側で正本管理します。

Current Status

  • phase 1 実装済み
  • provider は claude-code のみ
  • 利用可能 command は providers, consult, followup, debug
  • compare は phase 2 予約で、内部 placeholder のみ残している

Setup

npm install
npm run build

Makefile を使う場合は以下でも同じです。

make install
make build

ビルド後は以下で実行できます。

node dist/bin/aipanel.js providers --json

Package Install

公開後は package として install できます。

npm install -g @sean-sunagaku/aipanel
aipanel providers --json

公開前のローカル確認は tarball か Makefile で行えます。

tarball="$(npm pack)"
npm install -g "./${tarball}"
aipanel providers --json
make pack-dry-run
make verify-package

公開前の最終確認:

make publish-check

公開:

make publish

Commands

node dist/bin/aipanel.js providers [--json]
node dist/bin/aipanel.js consult "<question>" [--cwd <dir>] [--file <path>] [--diff <path>] [--log <path>] [--timeout <ms>] [--json]
node dist/bin/aipanel.js followup --session <sessionId> "<question>" [--cwd <dir>] [--timeout <ms>] [--json]
node dist/bin/aipanel.js debug "<question>" [--cwd <dir>] [--file <path>] [--diff <path>] [--log <path>] [--timeout <ms>] [--json]

よく使う例:

node dist/bin/aipanel.js consult "この設計どう?" --json
node dist/bin/aipanel.js consult "このログから原因わかる?" --cwd ./repo --log logs/app.log --file src/server.ts --json
node dist/bin/aipanel.js followup --session session_xxx "この修正方針で進めていい?" --json
node dist/bin/aipanel.js debug "この不具合の根本原因は?" --cwd ./repo --file src/cache.ts --log logs/error.log --json

Runtime Notes

  • --cwd は provider 実行ディレクトリだけでなく、--file, --diff, --log の相対パス解決にも使われます
  • AIPANEL_STORAGE_ROOT を指定すると、session / run / artifact の保存先を切り替えられます
  • followup は Claude Code の native resume を正本にせず、aipanel 側の session 履歴再構築を基本にしています

例:

AIPANEL_STORAGE_ROOT="$(mktemp -d)" node dist/bin/aipanel.js consult "Reply with exactly: ready" --json --timeout 30000

Storage Layout

デフォルトでは ./.aipanel 配下に保存します。

.aipanel/
  sessions/
    <sessionId>.json
  runs/
    <runId>.json
  artifacts/
    <runId>/
      <artifactId>.json
      <artifactId>.artifact.json

主な保存内容:

  • sessions/: Session, SessionTurn, ProviderRef
  • runs/: Run, RunTask, TaskResult, ContextBundle, ProviderResponse, NormalizedResponse, ComparisonReport
  • artifacts/: context bundle, provider raw text/json, debug task outputs

Tests

npm run typecheck
npm run test:unit
npm run test:integration
npm run test:e2e
npm test

Makefile 経由でも同じ確認ができます。

make typecheck
make test

テストの役割:

  • test:unit: ResponseNormalizer, ContextCollector, SessionManager
  • test:integration: built CLI + fake Claude provider で providers/consult/followup/debug
  • test:e2e: built CLI の永続化込みフルフロー確認

Verified Smoke Checks

2026-03-10 JST 時点で、以下を実行確認済みです。

  • npm run typecheck
  • npm test
  • npm run build
  • npm run verify:package
  • node dist/bin/aipanel.js providers --json
  • 実 Claude Code を使った consult
  • 実 Claude Code を使った followup
  • 実 Claude Code を使った debug

Repo Skill

Architecture Docs