Skip to content

CLI reference

This page lists every yardmaster command, subcommand, and flag, taken from the program’s own help text.

  • Add --json to any command to get JSON instead of text.
  • Commands that stop, move, or write something are a dry run until you add --yes. The dry run prints exactly what would happen.
  • For what a command does and when to use it, read the feature pages: Now, Reclaim, History, Usage, Config, and Hygiene.
  • Contributors: after you change a command or a flag, run pnpm gen:reference in site/ with a built CLI (YARDMASTER_BIN points at it) and commit the result.
Usage: yardmaster [OPTIONS] [COMMAND]
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version

List listening ports (the default command)

Each port with its process, project, framework, git branch, and agent. Ports you hid with yardmaster hide are left out unless –all.

Usage: yardmaster list [OPTIONS]
Options:
--all
Include system daemons, editors, and other users' processes
--json
Emit JSON instead of human-readable output
--udp
Include UDP sockets as well as TCP listeners
-h, --help
Print help (see a summary with '-h')

Who holds a port, and what to do about it

Everything known about the process on a port, with a verdict: bind, reuse, stop then retry, or use another port.

Usage: yardmaster whois [OPTIONS] <PORT>
Arguments:
<PORT>
TCP port number
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Stop the process listening on a port

Graceful (SIGTERM, wait, verify); add –force to escalate. Protected processes are refused unless –allow-protected.

Usage: yardmaster kill [OPTIONS] <PORT>
Arguments:
<PORT>
TCP port number
Options:
--grace <GRACE>
Seconds to wait after the graceful signal before giving up (or forcing)
[default: 3]
--json
Emit JSON instead of human-readable output
--force
Escalate to SIGKILL / taskkill /F when the process ignores the graceful stop
--no-tree
Only signal the listener, not its child processes
--allow-protected
Allow killing databases, Docker, editors, and other protected processes
-h, --help
Print help (see a summary with '-h')

Print a port nobody is listening on

With –stable, the folder’s own port: the same one every run while it is free.

Usage: yardmaster free-port [OPTIONS]
Options:
--from <FROM>
Start of the search range
[default: 3000]
--json
Emit JSON instead of human-readable output
--to <TO>
End of the search range
[default: 3999]
--stable
Print the folder's own port instead: the same one every run while it is free (or already held by a server running from that folder)
--dir <PATH>
With --stable: the folder to derive the port from (default: the current folder)
-h, --help
Print help (see a summary with '-h')

Stop orphaned dev servers

Orphans: the agent session ended or the working directory was deleted. A dry run unless –yes.

Usage: yardmaster clean [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually stop them; without this flag only a dry run is printed
--force
Escalate to SIGKILL / taskkill /F when a process ignores the graceful stop
--grace <GRACE>
Seconds to wait after the graceful signal before giving up (or forcing)
[default: 3]
-h, --help
Print help (see a summary with '-h')

Give a port a name of your own (shown in list and in the app)

The label is kept in Yardmaster’s config under the same key the app uses. --clear removes it.

Usage: yardmaster label [OPTIONS] <PORT> [TEXT]
Arguments:
<PORT>
Port number
[TEXT]
The label text
Options:
--clear
Remove the label instead
--json
Emit JSON instead of human-readable output
--udp
A UDP port instead of TCP
-h, --help
Print help (see a summary with '-h')

Pin a port so the app keeps it on top

Usage: yardmaster pin [OPTIONS] <PORT>
Arguments:
<PORT> Port number
Options:
--json Emit JSON instead of human-readable output
--udp A UDP port instead of TCP
-h, --help Print help

Remove a port’s pin

Usage: yardmaster unpin [OPTIONS] <PORT>
Arguments:
<PORT> Port number
Options:
--json Emit JSON instead of human-readable output
--udp A UDP port instead of TCP
-h, --help Print help

Hide a port from list and the app

Usage: yardmaster hide [OPTIONS] <PORT>
Arguments:
<PORT> Port number
Options:
--json Emit JSON instead of human-readable output
--udp A UDP port instead of TCP
-h, --help Print help

Show a hidden port again

Usage: yardmaster unhide [OPTIONS] <PORT>
Arguments:
<PORT> Port number
Options:
--json Emit JSON instead of human-readable output
--udp A UDP port instead of TCP
-h, --help Print help

Agent sessions running right now

What each holds (processes, memory, ports), and what ended sessions left behind.

Usage: yardmaster now [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Stop processes left behind by ended agent sessions

A dry run unless –yes.

Usage: yardmaster sweep [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually stop them; without this flag only a dry run is printed
--force
Escalate to SIGKILL / taskkill /F when a process ignores the graceful stop
--grace <GRACE>
Seconds to wait after the graceful signal before giving up (or forcing)
[default: 3]
-h, --help
Print help (see a summary with '-h')

End a running agent session and its processes

Graceful; add –force to escalate.

Usage: yardmaster end [OPTIONS] <SESSION>
Arguments:
<SESSION>
The agent's PID or the start of its session id (as shown by `yardmaster now`)
Options:
--force
Escalate to SIGKILL / taskkill /F when a process ignores the graceful stop
--json
Emit JSON instead of human-readable output
--grace <GRACE>
Seconds to wait after the graceful signal before giving up (or forcing)
[default: 3]
-h, --help
Print help (see a summary with '-h')

Bring a running session’s terminal to the front

The exact tab when the terminal can be asked, else its window.

Usage: yardmaster focus [OPTIONS] <TARGET>
Arguments:
<TARGET>
The agent's PID or the start of its session id (as shown by `yardmaster now`)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

What development left on this disk: caches, Xcode, SDKs, models

Measures dev data by group and target and says how safe each is to remove. With –clean, plans moving items to the Trash (a dry run unless –yes); anything in use or written in the last 10 minutes stays.

Usage: yardmaster reclaim [OPTIONS]
Options:
--group <GROUP>
Only this group (agent_data, xcode, android, package_caches, toolchains, test_browsers, editors, local_ai, containers, projects, downloads, app_caches)
--json
Emit JSON instead of human-readable output
--target <TARGET>
Only this target id (e.g. npm-cache); prints its handoff when it is cleaned elsewhere
--items
List each target's items, largest first
--threads <THREADS>
Measuring threads (0 picks a default)
[default: 0]
--clean
Plan moving to the Trash: the safe items (of --group), or every item of --target that may move
--item <ITEM>
With --clean and --target: only this item (its name or path); repeatable
--yes
With --clean: actually move them; without it only a dry run is printed
-h, --help
Print help (see a summary with '-h')

Move old sessions, caches, and worktrees to the Trash

A dry run unless –yes. Anything running or recently written is never touched; a worktree moves only when git has all of its work.

Usage: yardmaster prune [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--older-than <OLDER_THAN>
Items whose newest file is older than this (e.g. 30d, 2w, 12h)
--what <WHAT>
What to look at: sessions, caches, worktrees, or all (comma-separated)
Possible values:
- sessions: Session transcripts and their per-session files
- caches: Debug logs, shell snapshots, MCP logs, and temporary files agents leave behind
- worktrees: Git worktrees agents created
- all: All of the above
[default: sessions]
--agent <AGENT>
Only sessions of this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--project <PROJECT>
Only items of this folder or below it (sessions that ran there, worktrees of a repository there)
--session <SESSIONS>
Only this session (id or its first characters); repeatable
--yes
Actually move them; without this flag only a dry run is printed
-h, --help
Print help (see a summary with '-h')

List what Yardmaster moved to the Trash, or put it back

Usage: yardmaster trash [OPTIONS] [COMMAND]
Commands:
list List what Yardmaster moved to the Trash, newest first (default)
restore Put a batch, or one item of it, back where it came from (never overwrites)
help Print this message or the help of the given subcommand(s)
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

List what Yardmaster moved to the Trash, newest first (default)

Usage: yardmaster trash list [OPTIONS]
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Put a batch, or one item of it, back where it came from (never overwrites)

Usage: yardmaster trash restore [OPTIONS] <BATCH>
Arguments:
<BATCH> Batch id, as `yardmaster trash` shows it
Options:
--item <ITEM> Only this item of the batch (its number in the list)
--json Emit JSON instead of human-readable output
-h, --help Print help

List, restore, or empty the archive

Batches Yardmaster pruned before it moved to the Trash, and what the agents archived themselves.

Usage: yardmaster archive [OPTIONS] [COMMAND]
Commands:
list List archived batches (default)
restore Move a batch's items back where they came from (never overwrites)
empty Delete archived batches for good to free the space
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

List archived batches (default)

Usage: yardmaster archive list [OPTIONS]
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Move a batch’s items back where they came from (never overwrites)

Usage: yardmaster archive restore [OPTIONS] <BATCH>
Arguments:
<BATCH> Batch id, as shown by `yardmaster archive`
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Delete archived batches for good to free the space

Usage: yardmaster archive empty [OPTIONS] [BATCHES]...
Arguments:
[BATCHES]... Only these batches (default: all of them)
Options:
--json Emit JSON instead of human-readable output
--older-than <OLDER_THAN> Only batches archived longer ago than this (e.g. 30d, 2w)
--yes Actually delete; without this flag only a dry run is printed
-h, --help Print help

List stored agent sessions, newest first

The ID column is what export, audit, and prune --session take.

Usage: yardmaster sessions [OPTIONS]
Options:
--agent <AGENT>
Only sessions of this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--json
Emit JSON instead of human-readable output
--limit <LIMIT>
Show at most this many sessions (0 shows all)
[default: 20]
--resume
Add a RESUME column with the command that reopens each session
-h, --help
Print help (see a summary with '-h')

Find stored conversations that mention some text

Prompts and replies, not tool output; matching is case-insensitive.

Usage: yardmaster search [OPTIONS] <QUERY>...
Arguments:
<QUERY>...
The text to look for
Options:
--agent <AGENT>
Only sessions of this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--json
Emit JSON instead of human-readable output
--limit <LIMIT>
Show at most this many sessions, newest first (0 shows all)
[default: 20]
-h, --help
Print help (see a summary with '-h')

Print one stored session as Markdown

Secrets are masked unless –no-redact.

Usage: yardmaster export [OPTIONS] <SESSION>
Arguments:
<SESSION>
The session id or its first characters (as shown by `yardmaster sessions`)
Options:
--json
Emit JSON instead of human-readable output
-o, --output <OUTPUT>
Write to this file instead of stdout; an existing file is never overwritten
--no-redact
Keep the text exactly as stored, including any secrets in it
-h, --help
Print help (see a summary with '-h')

List what you typed into agents

Newest first, across agents and projects, secrets masked. Agents without a prompt history show each session’s first prompt.

Usage: yardmaster prompts [OPTIONS] [QUERY]...
Arguments:
[QUERY]...
Only prompts containing this text (case-insensitive)
Options:
--agent <AGENT>
Only prompts typed into this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--json
Emit JSON instead of human-readable output
--project <PROJECT>
Only prompts typed in this folder or below it
--days <DAYS>
Days to cover, up to now (0 covers everything)
[default: 30]
--limit <LIMIT>
Show at most this many prompts (0 shows all)
[default: 30]
-h, --help
Print help (see a summary with '-h')

Shell commands and files agents touched

The commands agents ran (with risk flags) or the files they wrote and edited, across sessions, secrets masked.

Usage: yardmaster activity [OPTIONS]
Options:
--commands
Shell commands, newest first (the default)
--json
Emit JSON instead of human-readable output
--files
Files written or edited, per project
--agent <AGENT>
Only sessions of this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--project <PROJECT>
Only sessions that ran in this folder or below it
--days <DAYS>
Days to cover, up to now (0 covers everything)
[default: 30]
--risky
Only commands with a risk flag
--query <QUERY>
Only commands, or file paths, containing this text (case-insensitive)
--limit <LIMIT>
Show at most this many commands, or files per project (0 shows all)
[default: 30]
-h, --help
Print help (see a summary with '-h')

Tokens agents used, and plan limits

Per day, agent, project, model, or session, from local files (no network), followed by the last known limits.

Usage: yardmaster usage [OPTIONS]
Options:
--days <DAYS>
Local calendar days to cover, today included (0 covers everything)
[default: 7]
--json
Emit JSON instead of human-readable output
--by <BY>
How to break the period down
Possible values:
- day
- agent
- project
- model
- provider: The company behind the model (Anthropic, DeepSeek, Moonshot AI, …)
- session
[default: day]
--agent <AGENT>
Only sessions of this agent
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--project <PROJECT>
Only sessions that ran in this folder or below it
--limit <LIMIT>
Show at most this many rows (0 shows all)
[default: 20]
-h, --help
Print help (see a summary with '-h')

Plan limits kept on this machine

The 5-hour and weekly windows: Codex from its latest rollout, Claude Code from what its source kept, Cursor and Gemini from their last reading.

Usage: yardmaster limits [OPTIONS] [COMMAND]
Commands:
relay Keep Claude Code's plan limits from its status line input
claude Pick where Claude Code's limits are read from
gemini Ask for Gemini's quota now
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Keep Claude Code’s plan limits from its status line input

Claude Code hands its statusLine command a JSON line on stdin; this keeps the limit numbers from it and nothing else (prints nothing unless –print). Add printf '%s' "$input" | yardmaster limits relay to your statusLine script (after input=$(cat)), or let --install set it up: a dry run with a diff first, then –yes edits statusLine.command in Claude Code’s user settings.json (backup kept, your own command kept inside and restored by --uninstall).

Usage: yardmaster limits relay [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--print
Print a short line (`5h 13% · 7d 12%`) for a statusLine with nothing else
--install
Show (and with --yes make) the status line change that feeds this relay
--uninstall
Show (and with --yes make) the change that takes the relay out again
--yes
With --install or --uninstall: make the change instead of only showing it
-h, --help
Print help (see a summary with '-h')

Pick where Claude Code’s limits are read from

Without –source, prints the current choice. web needs a claude.ai session key saved in the app’s Settings; this command never takes a secret.

Usage: yardmaster limits claude [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--source <SOURCE>
auto (OAuth, then CLI, then web), oauth, cli, web, or off (status line only)
[possible values: auto, oauth, cli, web, off]
-h, --help
Print help (see a summary with '-h')

Ask for Gemini’s quota now

Asks the Gemini app’s local agent server (on 127.0.0.1, while the app runs) and, with –web, gemini.google.com with the cookie saved in the app’s Settings. With –cli, runs the agy CLI inside the Gemini app (agy -p /usage) when the app is closed; agy needs its own sign-in once. The reading is kept for limits and the app.

Usage: yardmaster limits gemini [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--web
Also ask gemini.google.com (needs a cookie saved in Settings → Limits)
--web-only
Only ask gemini.google.com, not the local app
--cli
Run agy when the Gemini app is not running
-h, --help
Print help (see a summary with '-h')

What the agents load from disk

MCP servers, skills, rule files, hooks, permissions, and what deserves a look (read-only, no network).

Usage: yardmaster config [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--what <WHAT>
Only these sections (repeatable or comma-separated; default is everything)
Possible values:
- mcp
- skills
- rules
- hooks
- permissions
- findings
- budget: What every session in a project starts with, estimated in tokens
- files
--project <PROJECT>
Only this folder's project-level files, plus user-level ones
--agent <AGENT>
Only this agent's settings
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--limit <LIMIT>
Show at most this many rows per table (0 shows all)
[default: 0]
--usage
Also count how often each MCP server and skill was used in the last 30 days, from the transcripts (reads them all: slower; counts only)
-h, --help
Print help (see a summary with '-h')

Copy MCP servers between agents, or check that they start

A copy is a dry run unless –yes and runs each agent’s own CLI.

Usage: yardmaster mcp [OPTIONS] <COMMAND>
Commands:
copy Add an MCP server one agent has to the other agents, through each agent's own `mcp add` command (dry run unless --yes). Servers with environment values, headers, or credentials are refused
check Start the configured MCP servers and see whether they answer, and with which tools
connect Connect Yardmaster's own MCP server to your agents (dry run unless --yes)
disconnect Remove Yardmaster's own MCP server from your agents (dry run unless --yes)
status Which agents start Yardmaster's MCP server, and from where
tools List the tools Yardmaster's MCP server offers, and turn them on or off
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Add an MCP server one agent has to the other agents, through each agent’s own mcp add command (dry run unless –yes). Servers with environment values, headers, or credentials are refused

Usage: yardmaster mcp copy [OPTIONS] <NAME>
Arguments:
<NAME> The server's name, as `yardmaster config --what mcp` shows it
Options:
--from <FROM> Copy this agent's entry when agents use the name for different servers [possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--json Emit JSON instead of human-readable output
--to <TO> Add it to these agents (comma-separated; default: every installed agent that does not have it) [possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--yes Actually make the changes; without this flag only a dry run is printed
-h, --help Print help

Start the configured MCP servers and see whether they answer, and with which tools

Starts each stdio server the way its agent would (remote servers get one request) and asks for its tools. Only the agents’ configuration is read; nothing is written. Every check ends within 10 seconds. Exits 2 when a server failed or timed out; a server that needs a sign-in is not a failure.

Usage: yardmaster mcp check [OPTIONS] [NAME]
Arguments:
[NAME]
The server's name, as `yardmaster config --what mcp` shows it (every entry with that name is checked, even a disabled one)
Options:
--all
Check every enabled server
--json
Emit JSON instead of human-readable output
--agent <AGENT>
Only this agent's entries
[possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
-h, --help
Print help (see a summary with '-h')

Connect Yardmaster’s own MCP server to your agents (dry run unless –yes)

Adds yardmaster-mcp to each installed agent through the agent’s own mcp add command, so agents can list ports, stop a server safely, and check secrets, rules, skills, and limits. Agents without an add command are listed with where to add it by hand.

Usage: yardmaster mcp connect [OPTIONS]
Options:
--json
Emit JSON instead of human-readable output
--to <TO>
Only these agents (comma-separated; default: every installed agent that is not connected)
[possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--program <PROGRAM>
The server binary agents should start: `yardmaster-mcp`, or the Yardmaster app binary (started with --mcp). Default: yardmaster-mcp on PATH
--yes
Actually make the changes; without this flag only a dry run is printed
-h, --help
Print help (see a summary with '-h')

Remove Yardmaster’s own MCP server from your agents (dry run unless –yes)

Runs each agent’s own mcp remove, and only for entries that start Yardmaster; no other server is ever removed.

Usage: yardmaster mcp disconnect [OPTIONS]
Options:
--from <FROM>
Only these agents (comma-separated; default: every agent that has it)
[possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--json
Emit JSON instead of human-readable output
--yes
Actually make the changes; without this flag only a dry run is printed
-h, --help
Print help (see a summary with '-h')

Which agents start Yardmaster’s MCP server, and from where

Usage: yardmaster mcp status [OPTIONS]
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

List the tools Yardmaster’s MCP server offers, and turn them on or off

A tool turned off is not offered to agents; the change applies the next time an agent starts the server.

Usage: yardmaster mcp tools [OPTIONS]
Options:
--enable <ENABLE>
Turn these tools on (comma-separated)
--json
Emit JSON instead of human-readable output
--disable <DISABLE>
Turn these tools off (comma-separated)
-h, --help
Print help (see a summary with '-h')

Search, install, and share agent skills

Install a skill from GitHub into ~/.agents/skills (previewed first), and share skills with the agents as symbolic links.

Usage: yardmaster skills [OPTIONS] <COMMAND>
Commands:
add Install a skill from GitHub into ~/.agents/skills (dry run unless --yes)
search Find skill repositories on GitHub (one request, sent only when you run this)
show Show one installed skill: its description, where each agent loads it from, and the start of its SKILL.md
check Check which installed skills have a newer version at their GitHub source
update Update an installed skill from its GitHub source (dry run unless --yes)
link Share skills from ~/.agents/skills with the agents as symbolic links (dry run unless --yes). A folder that is already there is never replaced
unlink Remove the links that share ~/.agents/skills with the agents (dry run unless --yes). Only links into ~/.agents/skills are removed, never a folder
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Install a skill from GitHub into ~/.agents/skills (dry run unless –yes)

The source is owner/repo, owner/repo/path, either with @ref, or a github.com URL. The dry run shows the commit, every file, and the SKILL.md text. Nothing from the skill is run, and an existing skill is never replaced. Share the installed skill with the agents using skills link.

Usage: yardmaster skills add [OPTIONS] <SPEC>
Arguments:
<SPEC>
Where the skill is: owner/repo, owner/repo/path/to/skill, owner/repo@ref, or a https://github.com/… address
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually install it; without this flag only a dry run is printed
-h, --help
Print help (see a summary with '-h')

Find skill repositories on GitHub (one request, sent only when you run this)

Searches repository names, descriptions, and topics through GitHub’s public search, without signing in (10 searches a minute). Prints the best matches; nothing is installed. skills add previews one.

Usage: yardmaster skills search [OPTIONS] <TEXT>...
Arguments:
<TEXT>...
What to look for (at least 2 characters)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Show one installed skill: its description, where each agent loads it from, and the start of its SKILL.md

Usage: yardmaster skills show [OPTIONS] <NAME>
Arguments:
<NAME> The skill (folder name, as `yardmaster config --what skills` shows it)
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Check which installed skills have a newer version at their GitHub source

Works for skills installed with skills add or npx skills add (their source is recorded). Fetches each repository once, folder listings only.

Usage: yardmaster skills check [OPTIONS] [NAMES]...
Arguments:
[NAMES]...
The skills to check (default: every skill with a recorded source)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Update an installed skill from its GitHub source (dry run unless –yes)

The dry run lists files added, changed, and removed and the SKILL.md diff. The installed version is moved to Yardmaster’s skill backups, never deleted.

Usage: yardmaster skills update [OPTIONS] <NAME>
Arguments:
<NAME>
The skill (folder name in ~/.agents/skills)
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually update it; without this flag only a dry run is printed
-h, --help
Print help (see a summary with '-h')

Share skills from ~/.agents/skills with the agents as symbolic links (dry run unless –yes). A folder that is already there is never replaced

Usage: yardmaster skills link [OPTIONS] [NAMES]...
Arguments:
[NAMES]... The skills to link (folder names in ~/.agents/skills)
Options:
--all Every skill in ~/.agents/skills
--json Emit JSON instead of human-readable output
--to <TO> Link into these agents (comma-separated; default: every agent that already has a skills folder) [possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--yes Actually make the links; without this flag only a dry run is printed
-h, --help Print help

Remove the links that share ~/.agents/skills with the agents (dry run unless –yes). Only links into ~/.agents/skills are removed, never a folder

Usage: yardmaster skills unlink [OPTIONS] [NAMES]...
Arguments:
[NAMES]... The skills to unlink (folder names)
Options:
--all Every skill in ~/.agents/skills
--json Emit JSON instead of human-readable output
--from <FROM> Remove the links from these agents (comma-separated; default: every agent that has a skills folder) [possible values: claude, codex, opencode, cursor, gemini, qwen, pi, kimi, antigravity]
--yes Actually remove the links; without this flag only a dry run is printed
-h, --help Print help

Show, edit, restore, or fix agent instruction files

CLAUDE.md, AGENTS.md, GEMINI.md: every change is a dry run first and backs the file up.

Usage: yardmaster rules [OPTIONS] <COMMAND>
Commands:
fix Make a CLAUDE.md or GEMINI.md import the AGENTS.md next to it (dry run unless --yes)
edit Replace the text of a rule file with a file or standard input (dry run unless --yes)
show Print the text of a CLAUDE.md, AGENTS.md, or GEMINI.md, exactly as stored
backups List the backups Yardmaster took before changing a rule file
restore Put a rule file back to one of its backups (dry run unless --yes)
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Make a CLAUDE.md or GEMINI.md import the AGENTS.md next to it (dry run unless –yes)

The file is replaced by one import line, so every agent loads the same text. The current file is backed up first; the diff shows what is dropped.

Usage: yardmaster rules fix [OPTIONS] <FILE>
Arguments:
<FILE>
The CLAUDE.md or GEMINI.md to fix (as `yardmaster config --what rules` shows it; a project's file is found when you run this inside that project)
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually write the file; without this flag only the diff is printed
-h, --help
Print help (see a summary with '-h')

Replace the text of a rule file with a file or standard input (dry run unless –yes)

Works on CLAUDE.md, AGENTS.md, and GEMINI.md. The current file is backed up first; rules show prints the text to start from.

Usage: yardmaster rules edit [OPTIONS] --from <PATH|-> <FILE>
Arguments:
<FILE>
The rule file to change
Options:
--from <PATH|->
The new text: a file, or `-` for standard input
--json
Emit JSON instead of human-readable output
--yes
Actually write the file; without this flag only the diff is printed
-h, --help
Print help (see a summary with '-h')

Print the text of a CLAUDE.md, AGENTS.md, or GEMINI.md, exactly as stored

Usage: yardmaster rules show [OPTIONS] <FILE>
Arguments:
<FILE> The rule file to print
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

List the backups Yardmaster took before changing a rule file

Without a file, every rule file that has backups. Each backup shows when it was taken, its size, and the lines restoring it would add and remove.

Usage: yardmaster rules backups [OPTIONS] [FILE]
Arguments:
[FILE]
The rule file (default: every rule file that has backups)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Put a rule file back to one of its backups (dry run unless –yes)

A restore is an ordinary edit: the diff is shown first, and applying it backs up the current text, writes atomically, and reads the file back.

Usage: yardmaster rules restore [OPTIONS] <BACKUP>
Arguments:
<BACKUP>
The backup, as `rules backups` shows it (its full name, or its leading digits when they are unique)
Options:
--json
Emit JSON instead of human-readable output
--yes
Actually write the file; without this flag only the diff is printed
-h, --help
Print help (see a summary with '-h')

Find credentials agents left on disk (masked)

Looks in transcripts, tool output, edit snapshots, and config files. Previews are masked, never the value; exits 2 when a high-confidence credential is found. hygiene risks lists risky actions across every agent and session instead.

Usage: yardmaster hygiene [OPTIONS]
yardmaster hygiene <COMMAND>
Commands:
risks Risky actions across every agent and session: deletes, root, pipes to a shell, force pushes, secrets files, work outside the project
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
--agent <AGENT>
Only this agent's sessions
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--sessions-only
Scan only the stored sessions, not the config files
--config-only
Scan only the config files, not the sessions
--limit <LIMIT>
Show the places of at most this many credentials (0 shows all)
[default: 20]
--all
Show the places of every credential
--since-last
Mark credentials that are new compared with the app's record of full scans (a NEW column; `is_new` in --json). Only reads the record, never writes it. Exits 2 only for a new high-confidence credential, or for any when nothing is on record yet
-h, --help
Print help (see a summary with '-h')

Risky actions across every agent and session: deletes, root, pipes to a shell, force pushes, secrets files, work outside the project

Read from the same audit as yardmaster audit, newest first; the same action in one session is listed once with a count. Commands are masked.

Usage: yardmaster hygiene risks [OPTIONS]
Options:
--days <DAYS>
The window in days (0: every session on disk)
[default: 7]
--json
Emit JSON instead of human-readable output
--agent <AGENT>
Only this agent's sessions
[possible values: claude, codex, gemini, opencode, cursor, antigravity, pi, qwen, kimi]
--limit <LIMIT>
Show at most this many rows (0 shows all)
[default: 50]
-h, --help
Print help (see a summary with '-h')

What one session did

Commands run, files written and read, URLs fetched, and risky actions, with the command that resumes it.

Usage: yardmaster audit [OPTIONS] <SESSION>
Arguments:
<SESSION>
The start of a session id (as shown by `yardmaster sessions`)
Options:
--json
Emit JSON instead of human-readable output
--risky
Only the summary and the risky actions
-h, --help
Print help (see a summary with '-h')

Show or change Yardmaster’s own settings

Without a subcommand, prints the config file path and contents (labels, pins, hidden ports, protected names, app settings). get and set take the same scalar settings as the app’s Settings; protect edits the extra protected process names.

Usage: yardmaster settings [OPTIONS] [COMMAND]
Commands:
get Print one app setting (`yardmaster settings keys` lists them)
set Change one app setting, e.g. `settings set theme dark`
keys List the app settings that `get` and `set` take, with their current values
protect Add or remove a process name that is never stopped without `--allow-protected`
help Print this message or the help of the given subcommand(s)
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

Print one app setting (yardmaster settings keys lists them)

Usage: yardmaster settings get [OPTIONS] <KEY>
Arguments:
<KEY> The setting, as the config file names it (e.g. `theme`)
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Change one app setting, e.g. settings set theme dark

The accepted values are the ones the config file holds: true/false for toggles, a number for sizes, and the lowercase or snake_case name for choices (claude_limits_source auto|oauth|web|cli|off, keychain_access never|on_click|always, …). none clears an optional text setting. A wrong value is refused with the list of accepted ones. Lists (limits_order, menu_bar) are edited in the app.

Usage: yardmaster settings set [OPTIONS] <KEY> <VALUE>
Arguments:
<KEY>
The setting, as the config file names it
<VALUE>
The new value
Options:
--json
Emit JSON instead of human-readable output
-h, --help
Print help (see a summary with '-h')

List the app settings that get and set take, with their current values

Usage: yardmaster settings keys [OPTIONS]
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Add or remove a process name that is never stopped without --allow-protected

Usage: yardmaster settings protect [OPTIONS] <COMMAND>
Commands:
add Protect processes whose name or executable contains this text (case-insensitive)
remove Stop protecting a name added with `protect add`
help Print this message or the help of the given subcommand(s)
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Protect processes whose name or executable contains this text (case-insensitive)

Usage: yardmaster settings protect add [OPTIONS] <NAME>
Arguments:
<NAME> A process name or part of one (e.g. `my-daemon`)
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help

Stop protecting a name added with protect add

Usage: yardmaster settings protect remove [OPTIONS] <NAME>
Arguments:
<NAME> The name, as `yardmaster settings` shows it
Options:
--json Emit JSON instead of human-readable output
-h, --help Print help