Configuration
Everything you change in Yardarm is written to Mastra Code's own config files —
atomically, preserving keys the app doesn't know about — so the mastracode
CLI picks up the same configuration.
Slash commands
Type / in the composer to see everything available — the full Mastra Code
command surface plus app commands. Highlights:
| Command | What it does |
|---|---|
/plan /build /fast |
switch mode |
/model |
switch model |
/goal |
set a goal |
/threads /resume |
manage and switch threads |
/name /rename |
rename the current thread |
/permissions |
session permissions panel |
/sandbox |
full sandbox + session settings |
/mcp /hooks /skills |
inspect MCP servers, hooks, skills |
/workflows |
run and manage reusable workflows (see Workflows) |
/schedules |
app-managed recurring agent runs — create, edit, run now (see Scheduled runs) |
/om |
Observational Memory status |
/knowledge |
browse the agent's captured knowledge — opt-in via Settings → Preferences → Experimental (see Agent knowledge) |
/cost |
token usage per thread |
/diff |
show working-tree changes |
/review |
review a PR or the local changes |
/ask |
read-only codebase Q&A with clickable path:line citations (see
Codebase Q&A)
|
/wiki |
open the repo wiki; /wiki generate (re)generates it (see
Repo wiki)
|
/inbox |
chats across all projects that need you — approvals, questions, finished runs (see Working across chats) |
/search |
full-text search across every chat; /search <query> works too
|
/compare |
run one prompt on 2–4 models side by side, each in its own worktree chat |
/btw |
ask a side question about the current chat without adding to its thread |
/setup |
re-run the setup wizard |
/update |
check for app updates |
/browser |
browser-tool settings |
/github |
GitHub signals integration |
/observability |
observability integration |
/prune |
prune old storage data |
/report-issue |
report a mastracode issue |
/help |
the full list |
You can define your own commands as plain Markdown files:
~/.mastracode/commands/**/*.md (global) or
.mastracode/commands/**/*.md (per project). They appear in the autocomplete
like built-ins. A few terminal-only commands (e.g. /voice) are listed in
/help and point you to the CLI tab.
Settings reference
Open with Cmd+, (Ctrl+,).
| Tab | What's there |
|---|---|
| Appearance | light / dark / system theme (also togglable from the sidebar footer) |
| Keyboard | rebind the app shortcuts (command palette, find, split panes, …) with conflict highlighting; Cmd+1–8 tab switching is fixed |
| Preferences |
default auto-approve (yolo), CLI theme, default thinking level, tool-output
previews, new-chat sandbox defaults, confidence ratings (the green/yellow/red chip —
on by default), verify work before finishing (the self-verification pass — off by
default), auto-continue unfinished tasks (resume runs that stop with task-list items
left — off by default), follow-up suggestions (the next-step chips under replies —
on by default), suggest knowledge notes (the save-a-note card — on by default),
token compression + verbosity steering, the web-search provider the agent's search
tool uses (Tavily or Parallel), commit attribution (customize the co-author trailer
on agent-made commits), experimental cross-agent communication, experimental
schedule tools, an experimental agent runtime selector, experimental Knowledge (a
persistent agent knowledge base + the
/knowledge browser), per-tool toggles to disable built-in agent tools,
keep the computer awake while agents run (on by default), desktop notifications, and
a Storage card (sizes + Prune now)
|
| API Keys |
provider API keys (stored in mastracode's auth.json) or
environment-variable references — read from your login shell at launch, never
stored; standard variables like ANTHROPIC_API_KEY are detected
automatically
|
| Models | default model per mode, subagent, goal judge, and memory role; default thinking level per mode; model packs with pack tuning (per-mode overrides, fallback pack, preferred account per model) |
| Providers | OAuth logins (Claude / Codex / Copilot), Ollama detection, custom local providers |
| Voice | dictation engine, STT provider and model (OpenAI-compatible providers, Deepgram, or Mistral Voxtral) |
| Browser | browser-automation settings for web tools: viewport size and, for the Stagehand provider, the model that drives page interactions |
| Connectors |
one-click OAuth sign-ins for GitHub, GitLab, Supabase, Netlify, Vercel, and Sentry
(see Connectors), plus GitHub signals
(/github) and Observability (/observability)
|
| Integrations | Slack / Discord remote messaging bots — tokens (stored encrypted), per-platform user-ID allowlists, live connection status, and conversation bindings (see below) |
| MCP Servers | Model Context Protocol servers — global by default, or project-specific via the scope toggle + project picker, with live status (see below) |
| Agents | custom subagents — global by default, or project-specific via the scope toggle + project picker (see below) |
| Languages | optional language-server downloads for IDE diagnostics — Web (HTML/CSS/JSON), YAML, Python, and ERB packs with per-pack download / update / remove |
| About |
versions, runtime boot status, global CLI install + update, app updates, storage
pruning (/prune), re-run setup
|
Remote messaging integrations (Settings → Integrations)
Connect Slack and Discord bots to drive Yardarm remotely — prompts, final replies, agent questions, and tool approvals from any chat client. Both bots connect outbound from the desktop app (Slack Socket Mode, Discord Gateway), so no public URL or webhook is needed, and nothing works while the app is closed. The commands and binding model are covered in Using the app.
Slack setup
-
Create a Slack app and enable Socket Mode; this produces an app-level
token (
xapp-…) with theconnections:writescope. -
Under OAuth & Permissions, add the bot scopes
chat:write,im:history, andchannels:history, then install the app to your workspace to get the bot token (xoxb-…). -
Under Event Subscriptions, subscribe to the bot events
message.imandmessage.channels. - In Settings → Integrations, paste both tokens, add your Slack member ID to the allowlist, and enable the platform.
Discord setup
- Create an application + bot in the Discord developer portal and copy the bot token.
- On the Bot page, enable the Message Content Intent (privileged) — the bot cannot read messages without it; Yardarm detects this and shows a hint if it's missing.
-
Invite the bot to your server via OAuth2 → URL Generator (scope
bot, permissions to read and send messages). - Paste the token in Settings → Integrations and add your Discord user ID to the allowlist (enable Developer Mode in Discord to copy it).
Tokens are stored encrypted with your OS keychain and are write-only — the app shows whether a token is set, never its value. Access is deny-by-default: each platform is set to either Allowlisted users only (the default — an empty list refuses everyone) or All users, which lets anyone who can message the bot drive Yardarm and should only be used in a workspace or server you fully trust. The tab shows live per-platform connection status with a Reconnect button, and the conversation bindings table at the bottom lets you remove any binding.
MCP servers (Settings → MCP Servers)
MCP servers (~/.mastracode/mcp.json globally, or a project's
.mastracode/mcp.json, merged over global) are edited as raw JSON (/mcp
opens this tab). The editor defaults to the Global scope — servers
available in every project; switch to Project and pick one of your
projects to manage servers for that project only. Saving restarts the affected agent
processes.
The tab also shows each server's live status (connected + tool count, connecting, or an error) — for the global scope this works even without a chat open; for a project it needs a chat open in that project. Servers that use OAuth show Needs authentication with an Authenticate button: the sign-in opens in your browser, and the server connects when it completes. A Reconnect button revives servers that dropped.
Each server row also has an enable/disable switch — turn a server off without touching the JSON (persisted in mastracode's state and shared with the CLI); flipping it back on reconnects the server immediately.
The chat header's ⋯ menu has a quick-access MCP servers popover too: live per-server status for the current chat with the same enable/disable switch, plus a shortcut to this editor — no trip to Settings needed.
The Global scope adds two server discovery switches: opt in to also load the MCP servers you've already configured for Claude Code or Codex, so you don't have to duplicate them in mastracode's config. Running agents pick the change up after a restart (a banner offers one).
Custom subagents (Settings → Agents)
Custom subagents (~/.mastracode/agents/*.md globally, or a project's
.mastracode/agents/*.md) are helpers the main agent can delegate tasks to via
the subagent tool (/subagents opens this tab). The editor
defaults to the Global scope — agents available in every project; switch
to Project and pick one of your projects to manage agents for that
project only. Your agents are listed below the create field; creating an agent (or
clicking one in the list) opens its editor in a dialog. Each file has a frontmatter block
(name, description — required, model,
maxSteps, forked) and the body is the subagent's instructions.
Saving restarts the affected agent processes; the ids explore,
plan, execute and general are reserved.
A collapsible Templates section on the same screen holds 18 ready-made
subagents — 12 team roles (product manager, architect, developer, QA engineer, security
engineer, tech writer, …) and 6 domain specialists (SaaS, Shopify, mobile, Chrome
extensions, AI apps, e-commerce); expand it to browse them. Click Add on
any of them (or Add all per group) and it's written as an ordinary
.md file into the selected scope, so you can edit it like any other agent
afterwards. Added templates disappear from the list, and adding never overwrites an
existing file, so your customizations are safe. On an id collision, a project-scoped agent
overrides the global one.
Per-project configuration
Click the gear next to the project name in the sidebar to configure a single project:
-
General — rename, archive, or remove the project, set the repository
host, define the reviewer personas offered by code review (see
Agent code review), and edit the
worktree setup commands
(
.yardarm/worktree.json) that run in every newly created worktree once you have approved them, along with the files to copy into new worktrees and the teardown commands covered by the same approval (see Worktrees). Archived projects move to an "Archived" group at the bottom of the project picker, from where they can be reopened and unarchived. Removing a project deletes its chats and worktrees but keeps the project folder on disk unless you tick the option to delete it too. - Environment — per-project environment variables added to every agent run and terminal in the project. Saving restarts the project's active agents. Values are stored in plaintext in the app database — the secret toggle only masks display.
- Knowledge — user-authored knowledge notes the agent always knows: pinned, fetched on demand, or injected automatically by trigger keywords (see Knowledge notes)
-
Lifecycle hooks (
.mastracode/hooks.json, appended after global hooks) -
Custom slash commands (
.mastracode/commands/**/*.md) -
Agent instructions (
.mastracode/agent-instructions.md) — standing guidance the agent reads on every run - Memory resource id (
.mastracode/database.json) - Installed skills and plugins — plugins that declare a configuration schema get a generated settings form (toggles, text fields, and model pickers), written back to the plugin's config. A Create plugin button scaffolds a new plugin (name, id, and target directory, in global or project scope) ready to fill in
- Workflow definitions — list, run (with optional JSON input and per-step results), edit, and delete the raw workflow definitions the agent stores for this project (see Workflows)
Project-specific MCP servers and custom subagents are managed in Settings → MCP Servers and Settings → Agents (pick the project there). Edits restart the affected agent processes, so they take effect immediately.
Configuration paths (shared with the mastracode CLI)
Global:
-
~/.mastracode/settings.json— model defaults per mode, subagent models, goal judge, Observational Memory defaults, custom providers, preferences ~/.mastracode/mcp.json— global MCP servers~/.mastracode/hooks.json— global lifecycle hooks~/.mastracode/commands/**/*.md— global custom slash commands~/.mastracode/database.json— global memoryresourceId-
App-data dir (
~/Library/Application Support/mastracodeon macOS,%APPDATA%\mastracodeon Windows,$XDG_DATA_HOME/mastracodeon Linux):auth.json(API keys + OAuth credentials), agent database
Per project (Project Settings gear in the sidebar):
.mastracode/mcp.json— project MCP servers.mastracode/hooks.json— project hooks (appended after global).mastracode/commands/**/*.md— project slash commands.mastracode/agent-instructions.md— project agent instructions.mastracode/database.json— project memoryresourceId
Edits made in the app are written atomically and preserve unknown keys, so the same files stay usable from the CLI. Config edits restart the affected agent processes so changes take effect.
App data
The app's own state (projects, chats, transcripts, checkpoints) lives in a SQLite database
(yardarm.db) in Electron's userData directory — separate from mastracode's
files:
- macOS:
~/Library/Application Support/yardarm/ - Windows:
%APPDATA%\yardarm\ - Linux:
~/.config/yardarm/
Chat worktrees live under worktrees/<projectId>/<chatId> in the
same directory, and generated repo wikis under wiki/<projectId> (see
Wiki). The database runs in WAL mode with periodic
maintenance (vacuum/optimize, size-bounded transcripts) so long-lived installs don't
degrade.
Optional language-server packs downloaded from Settings → Languages are
stored under lsp-servers/<pack>/<version> in the same directory
(e.g. ~/Library/Application Support/yardarm/lsp-servers on macOS). Removing a
pack from Settings → Languages deletes its folder; deleting the whole app-data directory
removes them along with everything else.
Keeping Yardarm updated
Settings → About → Updates:
- Check for updates queries the project's GitHub Releases.
- If a newer version exists, Install downloads and stages it in the background; an amber "Restart to finish" banner appears when it's ready. The restart is always your click.
- Automatically update (on by default in release builds) checks shortly after launch and every few hours, staging updates silently.
Self-install works on packaged macOS builds. Elsewhere (or in dev builds) the app offers a View release link instead. Update checks and the optional language-server pack downloads you trigger yourself (Settings → Languages) are the only network traffic Yardarm itself makes — everything else goes to the model providers you configured.