Skip to content
Development
Command

/init

Creates a project-local copy of the Gearbox routing policy. Optional — only needed if you want to customize the policy for this repo.

From plugin
gearbox
102 skills5 agents2 commands4 hooks
Install
> /plugin marketplace add Adityaraj0421/gearbox
> /plugin install gearbox@gearbox

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/init

Context preview

What this command does when you run it.

Creates a project-local copy of the Gearbox routing policy. Optional — only needed if you want to customize the policy for this repo.

Command definition

init.md

/gearbox:init

Creates a project-local copy of the Gearbox routing policy. Optional — only needed if you want to customize the policy for this repo.

What it does

Copies the Gearbox routing policy to `.claude/routing.md` in this project. The SessionStart hook will then inject this local copy instead of the plugin default, so your edits take effect on every session restart.

Skips the copy with a notice if `.claude/routing.md` already exists.

Instructions

Execute the following steps exactly, using Bash.

**Step 1 — ensure .claude/ directory exists:**

mkdir -p .claude

**Step 2 — copy routing policy (skip if already present):**

if [ -f ".claude/routing.md" ]; then
  echo "Notice: .claude/routing.md already exists — skipping copy. Edit it directly to customize."
else
  cp "${CLAUDE_PLUGIN_ROOT}/routing/routing.md" ".claude/routing.md"
  echo "Local routing override created. The SessionStart hook will now inject this copy instead of the plugin default. Restart the session."
fi
Ships withgearbox

Gearbox is a Claude Code plugin that automatically routes subagent delegations to the cheapest model tier that can handle the work — haiku for search and mechanical edits, sonnet for standard implementation, opus for hard architectural problems.

Get the whole plugin
Stats
10
Stars
3
Forks
Maintained
Maintenance
Python
Language
MIT
License
1mo ago
Last commit
3mo ago
Created

Repo: Adityaraj0421/gearbox

Other commands on gearbox.