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

bmad-mode-changer

v1.0.4

Published

Claude Code BMad Agent State Persistence - Automatically restore BMad agents after mode changes

Readme

BMad Mode Changer

Claude Code에서 모드 변경(Shift+Tab) 후에도 BMad 에이전트 상태를 자동으로 복원합니다.

문제

Claude Code에서 Shift+Tab으로 모드(plan mode, auto mode 등)를 변경하면 활성화된 BMad 에이전트 페르소나가 초기화됩니다.

해결책

이 도구는 Hook 시스템을 사용하여 에이전트 상태를 파일에 저장하고, 모드 변경 후 자동으로 복원합니다.

설치

NPX (권장)

# 현재 프로젝트에 설치
npx bmad-mode-changer install

# 전역 설치 (~/.claude/)
npx bmad-mode-changer install --global

EXE (Windows)

Releases에서 bmad-mode-changer.exe를 다운로드하여 실행합니다.

bmad-mode-changer.exe install

사용법

설치 후 자동으로 작동합니다:

  1. /BMad:agents:bmad-orchestrator 등의 명령어로 에이전트 활성화
  2. Shift+Tab으로 모드 변경
  3. 아무 메시지나 입력 → 에이전트 자동 복원

명령어

npx bmad-mode-changer install     # 설치 (새 버전 있으면 자동 업데이트)
npx bmad-mode-changer update      # install과 동일
npx bmad-mode-changer uninstall   # 제거
npx bmad-mode-changer status      # 상태 및 버전 확인
npx bmad-mode-changer help        # 도움말

옵션

  • --global, -g : 전역 설정에 설치 (~/.claude/)
  • --force, -f : 강제 재설치 (버전 무관)

업데이트

v1.0.3부터 install 명령어가 자동으로 버전을 확인하고 업데이트합니다:

# 새 버전이 있으면 자동 업데이트
npx bmad-mode-changer install

# 강제 재설치 (버전 무관)
npx bmad-mode-changer install --force

작동 원리

  1. UserPromptSubmit Hook: 사용자가 프롬프트를 제출할 때마다 실행
  2. 에이전트 감지: /BMad:agents:* 명령어 패턴 감지
  3. 상태 저장: .claude/.agent-context.json에 활성 에이전트 정보 저장
  4. 자동 복원: CLAUDE.md 규칙에 따라 모드 변경 후 에이전트 자동 복원

설치되는 파일

| 파일 | 설명 | |------|------| | .claude/hooks/agent-state-manager.js | Hook 스크립트 | | .claude/settings.local.json | Hook 설정 (업데이트) | | .claude/.bmad-version.json | 설치된 버전 정보 | | CLAUDE.md | 복원 규칙 (추가) |

EXE 빌드 (개발자용)

npm install
npm run build:exe      # Windows용
npm run build:all      # 모든 플랫폼

변경 이력

v1.0.4

  • --version, -v 옵션 추가

v1.0.3

  • install 명령어가 자동으로 버전을 확인하고 업데이트
  • update 명령어 추가 (install과 동일)
  • status 명령어에 버전 정보 표시
  • 버전 관리 파일 (.bmad-version.json) 추가

v1.0.2

  • 새 세션에서 에이전트 활성화 시 불필요한 자동 복원 메시지가 표시되던 문제 수정
  • 자동 복원 조건 명확화: 동일 세션 내 모드 변경 시에만 복원
  • --force 옵션으로 기존 CLAUDE.md 규칙 업데이트 지원

v1.0.1

  • 제거(uninstall) 시 bmad-mode-changer 설정만 깔끔하게 제거하도록 개선

v1.0.0

  • 최초 릴리스

라이선스

MIT

작성자