completion

A command that generates tab-completion scripts for Bash, Zsh, and Fish shells. Tab completion suggests commands and options as you type them.

In plain words
What is it for?
Use it to generate a completion script and install it in your shell's configuration or completion directory.
Why use it?
It reduces repeated typing and helps you discover available commands and flags. Suggestions can also depend on the command context.

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/completion
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 948 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.00948
Opus 5 $0.00000 $0.00474
Sonnet 5 $0.00000 $0.00190
Haiku 4.5 $0.00000 $0.00095

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

Security

Grade A, and why

completion 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/completion.md · 172 lines

How it starts

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

🔸 completion

Command to generate shell completion scripts for maestro. Provides intelligent tab completion for commands, options, and context-aware suggestions across bash, zsh, and fish shells.

Overview

mst completion [shell]

Usage Examples

Basic Usage

# Display available shells and usage instructions
mst completion

# Generate bash completion script
mst completion bash

# Generate zsh completion script
mst completion zsh

# Generate fish completion script
mst completion fish

Installation Examples

# Install bash completion
mst completion bash >> ~/.bashrc
source ~/.bashrc

# Install zsh completion
mkdir -p ~/.zsh/completions
mst completion zsh > ~/.zsh/completions/_maestro

# Install fish completion
mkdir -p ~/.config/fish/completions
mst completion fish > ~/.config/fish/completions/maestro.fish

Supported Shells

Shell File Location Installation Method
bash ~/.bashrc Append to bashrc file
zsh ~/.zsh/completions/_maestro Save to completions directory
fish ~/.config/fish/completions/maestro.fish Save to completions directory

Completion Features

Command Completion

All main commands and aliases are completed:

mst <TAB>
# Suggests: create, list, delete, shell, exec, attach, github,
#          config, completion, tmux, where
#          ls, rm, sh, e, a, gh, t, w (aliases)

Intelligent Context Completion

Worktree-based Commands

Commands that operate on existing worktrees automatically suggest available worktree branches:

mst shell <TAB>
# Suggests existing worktree branches: feature/auth, bugfix/login, etc.

mst delete <TAB>
# Suggests existing worktree branches: feature/auth, bugfix/login, etc.
Branch-based Commands

Commands that create new worktrees suggest existing Git branches:

mst create <TAB>
# Suggests existing local branches: main, develop, feature/existing, etc.

Read the full file on GitHub · 172 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 · 172 lines · 0 tokens per session scan A e63db8ec5bea

Subscribe to this mod's changes

completion 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 948 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.