init

A project setup command for Maestro, a tool that manages Git worktrees, which are separate working folders linked to branches. It detects common project types and package managers, then creates configuration.

In plain words
What is it for?
Use it to initialize Maestro in React, Next.js, Vue, Python, Go, or other projects, with optional minimal, non-interactive, or package-manager-specific setup.
Why use it?
It avoids manually choosing initial settings and writing configuration before using Maestro in a project.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mirinodev/maestro/init
Clone the repo
git clone --depth 1 https://github.com/mirinodev/maestro
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,821 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01821
Opus 5 $0.00000 $0.00911
Sonnet 5 $0.00000 $0.00364
Haiku 4.5 $0.00000 $0.00182

Measured yesterday against content hash 59fcf3afdb50, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/init.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🔸 init

The init command helps you bootstrap your project with proper Maestro configuration. It automatically detects your project type and suggests optimal settings for seamless worktree management.

Usage

mst init [options]

Options

Option Description Default
-m, --minimal Create minimal configuration false
-p, --package-manager <manager> Specify package manager (pnpm/npm/yarn/none) auto-detect
-y, --yes Skip prompts and use defaults false
-h, --help Display help message -

Features

🔍 Smart Project Detection

The init command automatically detects your project type and suggests appropriate configuration:

  • React: Detects React applications and suggests React-specific setup
  • Next.js: Identifies Next.js projects with additional env files
  • Vue.js: Recognizes Vue.js projects with Vue-specific configuration
  • Python: Detects Python projects with requirements.txt or pyproject.toml
  • Go: Identifies Go projects with go.mod files
  • Generic: Fallback for other project types

📦 Package Manager Detection

Automatically detects your package manager from lockfiles:

  • pnpm: Detected from pnpm-lock.yaml
  • npm: Detected from package-lock.json
  • yarn: Detected from yarn.lock
  • none: For non-Node.js projects

🛡️ Safe Overwrite Protection

If .maestro.json already exists, the command will:

  • Prompt for confirmation before overwriting (interactive mode)
  • Skip prompting and overwrite with --yes flag

Examples

Interactive Setup

mst init

This will guide you through an interactive setup with prompts for:

  • Package manager selection
  • Worktree directory path
  • Branch prefix preferences
  • Default editor choice
  • Environment file handling

Quick Minimal Setup

mst init --minimal

Creates a basic configuration with:

  • Default worktree path: .git/orchestra-members
  • Auto-setup enabled
  • Default editor: Cursor

Read the full file on GitHub · 290 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 290 lines · 0 tokens per session scan A 59fcf3afdb50

Subscribe to this mod's changes

init is a command published in the GitHub repository mirinodev/maestro (9 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,821 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.