ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 brunolca

prototype-mode

프로젝트를 프로토타입 모드로 표시하고 Git worktree 격리를 해제해 Claude가 대화형 세션과 백그라운드 작업에서 현재 브랜치를 직접 편집하고 커밋하도록 하는 Claude Code 플러그인입니다.

brunolca@brunolca

brunolca/claude-plugins/tree/main/plugins/prototype-mode

원본 게시물 이미지1
번역 완료

이 mod 소개

prototype-mode는 worktree.bgIsolation을 "none"으로 설정해 프로젝트를 프로토타입 모드로 전환하는 Claude Code 플러그인입니다. EnterWorktree를 호출할 때까지 기본 체크아웃에서 Edit/Write를 막는 가드를 끕니다. Prototype mode 시스템 프롬프트 섹션을 주입하고 EnterWorktree를 거부하며, 서브에이전트 호출에서 isolation:"worktree"를 제거하고 현재 브랜치에 커밋하되 push 전에는 물어보라고 Claude에 알립니다. 명령은 /proto on, /proto on team, /proto off와 /proto status이며 상태 줄 표시기가 활성 상태를 보여 줍니다. claude plugin marketplace add brunolca/claude-plugins 및 claude plugin install prototype-mode@brunolca로 설치합니다. Claude Code 2.1.289 이상이 필요합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add brunolca/claude-plugins
claude plugin install prototype-mode
원문 / README

prototype-mode

A Claude Code plugin that flags a project for prototype mode: no git worktrees, iterate and commit directly on the current branch (main included). Works for interactive sessions and background jobs.

prototype-mode demo: /proto on, then Claude edits, tests and commits directly on main

Install

claude plugin marketplace add brunolca/claude-plugins
claude plugin install prototype-mode@brunolca

Or from inside Claude Code: /plugin marketplace add brunolca/claude-plugins, then /plugin install prototype-mode@brunolca.

Share it with a team (per repo)

Commit this to the project's .claude/settings.json so everyone who trusts the repo is offered the plugin, and prototype mode is on for all of them:

{
  "extraKnownMarketplaces": {
    "brunolca": {
      "source": { "source": "github", "repo": "brunolca/claude-plugins" }
    }
  },
  "enabledPlugins": { "prototype-mode@brunolca": true },
  "worktree": { "bgIsolation": "none" }
}

/proto on team writes the worktree part for you.

Commands

| Command | Effect | | --- | --- | | /proto on | Sets worktree.bgIsolation: "none" in .claude/settings.local.json (just you) | | /proto on team | Same, in .claude/settings.json (commit it to share) | | /proto off [team] | Removes it; a team "none" is overridden locally with "worktree" | | /proto / /proto status | Shows the effective mode and where it comes from |

The status line shows 🧪 prototype mode while it's on.

How it works

  • Background jobs: worktree.bgIsolation: "none" is Claude Code's own setting. It turns off the guard that blocks Edit/Write in the main checkout until EnterWorktree is called. The CLAUDE_BG_ISOLATION env var outranks it. This part works even without the plugin.
  • Model instructions: while it's on, every request gets a "Prototype mode" system-prompt section. It overrides the background-session instruction to isolate, and says to commit on the current branch but ask before pushing.
  • Tools: EnterWorktree is refused, and isolation: "worktree" is stripped from subagent (Agent) calls.

Develop

claude --plugin-dir .        # load this checkout for one session
claude plugin validate .
claude plugin test .

Requires a Claude Code build with function-hook plugins (2.1.289 or newer).

비슷한 프로젝트