where

A command for displaying the filesystem path of a Git worktree, which is a separate working directory for a branch.

In plain words
What is it for?
Use it to find a branch's path, show the current worktree, select one interactively, open it in an editor, or capture the path in a shell variable.
Why use it?
It saves you from manually locating worktrees when you need to enter one, open it, or use its path in a script.

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/where
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 725 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.00725
Opus 5 $0.00000 $0.00362
Sonnet 5 $0.00000 $0.00145
Haiku 4.5 $0.00000 $0.00072

Measured 2d ago against content hash 8fbac092a600, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

where 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 2d ago.

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/where.md · 145 lines

How it starts

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

🔸 where

Command to display the filesystem path of orchestra members (Git worktrees). Useful for navigation, scripting, and integration with other tools.

Overview

mst where [branch-name] [options]
mst w [branch-name] [options]  # alias

Usage Examples

Basic Usage

# Show path of specific worktree
mst where feature/auth

# Show current worktree path
mst where --current

# Interactive selection with fzf
mst where --fzf

Advanced Usage

# Navigate to worktree using output
cd $(mst where feature/auth)

# Open worktree in editor
code $(mst where feature/api)

# Use in scripts
WORKTREE_PATH=$(mst where --current)
echo "Working in: $WORKTREE_PATH"

Options

Option Short Description Default
--fzf Interactive selection with fzf false
--current Show current worktree path false

Usage Patterns

Direct Path Lookup

Path display format depends on the ui.pathDisplay configuration setting in .maestro.json:

# Get path for specific branch
mst where feature/authentication

# With "pathDisplay": "absolute" (default)
# Output: /project/.git/orchestrations/feature-authentication

# With "pathDisplay": "relative"  
# Output: .git/orchestrations/feature-authentication

Current Location

# Show current worktree path
mst where --current

# With "pathDisplay": "absolute" (default)
# Output: /project/.git/orchestrations/feature-auth

# With "pathDisplay": "relative"
# Output: .git/orchestrations/feature-auth

Interactive Selection

# Select worktree interactively
mst where --fzf
# Shows fzf interface with all worktrees
# Path display in fzf selection screen follows ui.pathDisplay setting
# Returns selected worktree path in the configured format

Integration Examples

Navigation

# Quick navigation function
goto() {
  cd $(mst where $1)
}

# Usage
goto feature/auth

Editor Integration

Read the full file on GitHub · 145 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. 2d ago First seen · 145 lines · 0 tokens per session scan A 8fbac092a600

Subscribe to this mod's changes

where 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 725 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.