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

プロジェクトを prototype mode にして Git worktree の分離を無効にし、インタラクティブセッションとバックグラウンドジョブで Claude が現在のブランチを直接編集・コミットできるようにする Claude Code プラグインです。
brunolca/claude-plugins/tree/main/plugins/prototype-mode

prototype-mode は worktree.bgIsolation を "none" に設定してプロジェクトを prototype mode にする Claude Code プラグインです。EnterWorktree が呼ばれるまでメインチェックアウトでの Edit/Write をブロックするガードを無効にします。Prototype mode のシステムプロンプトセクションを注入し、EnterWorktree を拒否し、サブエージェント呼び出しから isolation:"worktree" を取り除き、現在のブランチにコミットするよう Claude に伝えつつ、push 前には確認を求めます。コマンドは /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
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.

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.
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.
| 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.
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.EnterWorktree is refused, and isolation: "worktree" is stripped from subagent (Agent) calls.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).