Docs menu

Configuration

Project settings — .argus.json

Per-project configuration shared with the team. Setup commands, run targets, terminals, port allocation, branch protection, and more.

Each project's settings are stored by Argus on this Mac — you never have to create, edit or commit a file in your repo. If the repo has a checked-in .argus.json, Argus reads it too and layers this Mac's settings over it, so a team can share a baseline while each person keeps their own changes.

Lives atShared?Use for
Project configthis Mac ($ARGUS_HOME/user-project-settings.json)noeverything below; what Project Settings saves
.argus.json (optional)repo rootyes (commit it)a team baseline, read-only to Argus

The effective config is the checked-in .argus.json (if any) with this Mac's config merged over it:

  • setup.copy / setup.symlink — combined, deduplicated by path (an entry on this Mac replaces the repo's entry for the same path, e.g. to add an exclude). setup.commands and terminals are combined without repeats.
  • related_projects (by path), browser_presets (by id) and release_note_patterns (by glob) are combined; this Mac wins on a collision.
  • run, workspace_env, protected_branches and simulator_deeplinks — this Mac's list replaces the repo's when it has entries.
  • Everything else (browser_url, llm, tools, automations, …) — this Mac's value wins when set.

Because lists from the repo are combined rather than replaced, an entry that comes from the checked-in .argus.json can't be removed on this Mac — change the file for that.

For app-level (machine-local) preferences, see app-settings.md.

Migrating from .argus.local.json

.argus.local.json is retired. The first time Argus reads a project that has one and no settings stored on this Mac yet, it imports the file into this Mac's project config (and logs that it did). After that the file is ignored — delete it whenever you like.


Where to edit

Open Project Settings from a project's menu in the sidebar → Project Settings…. Sections cover Setup, Workspace env, Run commands, Terminals, Browser, Deep links, Branch protection, Release notes, Agent, LLM, Related projects, Automations and Tools, plus the personal Branch prefix and Worktree location (see per-project personal settings) and a JSON preview of the effective config.

The sheet always shows the effective config. When the repo has a checked-in .argus.json, each section notes whether its values come from that file or were changed on this Mac. Saving never writes the repo: Argus stores on this Mac the top-level keys you edited, plus any already stored here — even when a value matches the checked-in .argus.json, so what you set stays set if the repo file later changes or loses it. Keys you never touched aren't stored, so the team's later changes to them still come through.

Export and import

  • Export saves the effective config as a file in .argus.json format — to share it, check it in as a team baseline, or move it to another Mac.
  • Import reads such a file, validates it the same way Argus validates .argus.json, and — after you confirm — replaces this Mac's config for the project with it. Every key in the file is stored on this Mac, including ones that match the checked-in .argus.json. A checked-in .argus.json is left as it is.

Both are host commands too (export_project_config, import_project_config, alongside get_project_config and save_project_config), so they can be scripted. Project settings aren't shown on the iPhone, so these aren't exposed over the remote gateway.

Onboarding's "generate a config" step and the add_related_project agent tool also save to this Mac, never to the repo.

FieldEditable in dialog?
setup.copy / symlink / commandsyes (Setup)
worktree_poolyes (Reusable folders)
disk_cleanupyes (Disk cleanup)
terminalsyes (Terminals)
runyes (Run commands)
workspace_envyes (Workspace env)
browser_url, browser_presetsyes (Browser)
single_runtimeyes (Run commands)
auto_continue_on_limityes (Agent)
auto_switch_account_on_limityes (Agent)
protected_branches, default_base_branchyes (Branch protection)
protect_default_branchyes (Branch protection)
release_note_patternsyes (Release notes)
simulator_deeplinksyes (Deep links)
auto_fetch_minutesyes (Branch protection)
llmyes (LLM)
related_projectsyes (Related projects)
automationsyes (Automations)
tools.disabledyes (Tools)

Top-level shape

{
  "setup":              { "copy": [...], "symlink": [...], "commands": [...] },
  "teardown":           { "commands": [...] },
  "terminals":          [{ "name": "...", "dir": "..." }],
  "run":                [{ "title": "...", "command": "...", "restartOnRerun": true }],
  "workspace_env":      [{ "name": "...", "base_value": 0, "range": 100, "strategy": "sequential" }],
  "related_projects":   [{ "path": "../other-repo", "description": "..." }],
  "browser_url":        "http://localhost:3000",
  "browser_presets":    [{ "id": "...", "label": "...", "width": 390, "height": 844, "user_agent": "..." }],
  "simulator_deeplinks": [{ "label": "Profile", "url": "myapp://profile/123" }],
  "auto_continue_on_limit": false,
  "auto_switch_account_on_limit": false,
  "protected_branches": ["main", "master"],
  "protect_default_branch": false,
  "default_base_branch": "staging",
  "single_runtime":     false,
  "auto_fetch_minutes": 15,
  "llm":                { "runner": "claude-code", "model": "claude-opus-4-7" },
  "tools":              { "disabled": ["device-debug"] },
  "automations":        { "autonomy_ceiling": "draft", "disabled": [...], "path_denylist": [...] }
}

All fields are optional. Defaults below.


setup — what happens when a worktree is created

Runs once per session, after git worktree add, in the new worktree. Order: copy → symlink → commands.

"setup": {
  "copy": [
    "node_modules",
    "ios/Pods",
    // Object form: copy `.claude` but skip Claude Code's own per-session
    // worktrees so they don't leak from the source branch into new ones.
    { "path": ".claude", "exclude": ["projects/**/worktrees/**"] }
  ],
  "symlink":  [".env.local", "**/.env.local"],
  "commands": ["pnpm install", "cd ios && pod install"]
}
FieldTypeDefaultDescription
copy(string | { path, exclude? })[][]Files/dirs to copy from the main repo into the worktree. Each entry is either a path/glob string or { path, exclude } — exclude patterns are forwarded to rsync --exclude, so they prune mid-tree (e.g. excluding Claude Code's per-session worktrees nested deep inside .claude).
symlink(string | { path, exclude? })[][]Files to symlink into the worktree (changes flow both ways). Glob patterns supported. The object form is accepted for symmetry, but exclude only filters glob expansions — symlinking a literal directory is a single link with no subtree to prune.
commandsstring[][]Shell commands run in the worktree after copy/symlink. Each entry is passed to sh -c.

teardown — what happens before a worktree is deleted

Runs in the worktree, with workspace_env set, right before it is removed: when you delete a session, when a merge deletes it, and on any other cleanup. Agents and terminals are stopped first. Use it to undo what setup started — stop a docker compose stack, drop a per-branch database, uninstall a simulator app or free a port.

"teardown": {
  "commands": ["docker compose down -v", "dropdb --if-exists app_$ARGUS_SLOT"]
}
FieldTypeDefaultDescription
commandsstring[][]Shell commands run in order. Each entry is passed to bash -c; the first one that fails stops the rest and keeps the worktree.

The delete progress shows the running command's latest output. If a command fails, the session shows its output with Retry and Delete anyway, which removes the worktree without running teardown again. A command silent for ten minutes is stopped and counts as failed. Edit it under Project Settings → Teardown.


worktree_pool — reusable worktree folders

Sessions live in numbered folders (slot-01, slot-02, …) under the project's worktree location. When a session is deleted, its folder is reset and kept for the next session instead of removed, so caches keyed by the folder's absolute path — Xcode's DerivedData, SwiftPM, Gradle — stay warm.

Nothing from one session reaches the next. Before a folder is reused (and again right after it is released):

  1. tracked changes are discarded (git reset --hard);
  2. every untracked file is removed, ignored or not (git clean -ffdx), except ignored paths matching a keep pattern — an untracked file that isn't ignored never survives, whatever keep says;
  3. the folder's own git history (its HEAD reflog, ORIG_HEAD, per-worktree config) is cleared, then the new branch is checked out and the setup pipeline runs again, so copied and symlinked files are fresh.
"worktree_pool": {
  "keep": ["node_modules", ".build", "ios/Pods"]
}
FieldTypeDefaultDescription
enabledbooleantruefalse gives every session a brand-new folder and removes it on delete.
keepstring[][]Gitignore-style patterns of ignored caches kept across sessions. Negations (!…) and .. are ignored. Nothing is kept by default.

Coding agents also keep state keyed by a folder's path: Claude Code's transcripts, prompt history and per-folder settings (allowed tools, trust, MCP approvals) in ~/.claude.json, Codex's sessions and Gemini CLI's chats. When a session is deleted, all of it moves to ~/.argus/runner-archive/<session id>/, so claude --continue or the up-arrow history in the reused folder start empty. Argus still finds the old chats by id: resuming or forking one from history works, and a resumed Codex chat moves back for the session resuming it.

Keep only rebuildable caches. A .env copy, logs, test output or anything holding user data shouldn't be listed: it would carry into an unrelated session. A folder with a rebase or merge in progress is removed rather than reused. How many released folders each project keeps, and for how long, is an app setting (Reusable folders). Edit this under Project Settings → Reusable folders.

The project's simulators aren't tied to a folder: they are shared per project. When an agent lets one go, every app installed on it is removed, its keychain is reset (keychain items survive an uninstall) and its privacy grants are reset; the device itself is kept, booted.


disk_cleanup — disposable build output

Output in this project's worktree folders that disk cleanup may delete: coverage data, test results, archives — whatever piles up between builds. It applies to every worktree folder of the project (in use or released), never the project's own checkout.

"disk_cleanup": {
  "disposable": [
    "**/*.profraw",
    { "glob": "build/test-results", "older_than_days": 7 }
  ]
}
FieldTypeDefaultDescription
disposable[] / .globstring—A glob relative to the worktree folder. A bare string is the same as { "glob": … }.
disposable[].older_than_daysnumbernoneOnly matches last modified this many days ago or more.

A match is deleted only when it holds no tracked file — only ignored or untracked output goes. Globs starting with / or !, or containing .. or .git, are dropped; matching never follows a symlink; and a folder an agent is working in is skipped. Edit it under Project Settings → Disk cleanup.


terminals — auto-opened terminal tabs

Terminal tabs opened in the side panel when a session is selected.

"terminals": [
  { "name": "Shell", "dir": "." },
  { "name": "Logs",  "dir": "apps/api" }
]
FieldTypeDefaultDescription
namestringrequiredTab label.
dirstringrequiredRelative directory from the worktree root.

run — entries shown in the Run menu

Each entry becomes a button in the runtime panel. Argus tracks the process per-session and shows a stop button while it's alive.

"run": [
  { "title": "Dev",      "command": "pnpm dev",       "restartOnRerun": true },
  { "title": "Storybook","command": "pnpm storybook", "restartOnRerun": true }
]
FieldTypeDefaultDescription
titlestringrequiredDisplay label. Also the identifier — must be unique within the array.
commandstringrequiredShell command, passed to sh -c.
cwdstring?worktree rootOptional relative directory to run the command in.
restartOnRerunbooleanrequiredIf true, pressing Run while the command is alive kills and restarts it. If false, the press is a no-op.
requiresstring[]?[]Titles of other run commands this one depends on. Argus starts any that aren't already running before launching this command (recursively). Cycles in the dependency chain are rejected.

workspace_env — per-session env vars

Sets one or more env vars in every terminal/run command of the session, with a value unique to that session. Used for port allocation in particular.

"workspace_env": [
  { "name": "ARGUS_PORT", "base_value": 1420, "range": 100, "strategy": "sequential" }
]
FieldTypeDefaultDescription
namestringrequiredEnv var name (e.g. ARGUS_PORT, RCT_METRO_PORT, PORT).
base_valuenumberrequiredStarting integer; final value is base_value + offset.
rangenumberrequiredModulus for the hash strategy.
strategy"sequential" | "hash"requiredsequential — assigned at session creation from a counter. hash — derived deterministically from the branch name modulo range.

Other repos that agents in this project may spawn worktrees in. Surfaced via the list_projects MCP tool, and listed in every agent's system prompt with the related repo's run commands and worktrees, so an agent starts e.g. the backend's dev server with trigger_run rather than from Bash.

"related_projects": [
  { "path": "../conductor",   "description": "CLI used for runtime browser and device testing" },
  { "path": "../houwert.dev", "description": "Marketing site" }
]
FieldTypeDefaultDescription
pathstringrequiredRelative path from this repo's root to the related repo's root.
descriptionstringrequiredOne-line description shown to spawned agents.

browser_url — default URL for the embedded browser

The web runtime panel loads this on first open.

"browser_url": "http://localhost:5173"

browser_presets — custom device presets for the web browser

Add device presets (label, viewport, optional UA) on top of Argus's built-in list.

"browser_presets": [
  { "id": "kiosk", "label": "Kiosk 1080p", "width": 1920, "height": 1080 },
  { "id": "ipad-air", "width": 820, "height": 1180,
    "user_agent": "Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X)..." }
]
FieldTypeDefaultDescription
idstringrequiredUnique key for this preset.
labelstring?idDisplay name in the picker.
widthnumberrequiredViewport width in CSS pixels.
heightnumberrequiredViewport height in CSS pixels.
user_agentstring?desktop ChromeCustom UA string.

Surfaces a Link button in the runtime toolbar (next to Home / Disconnect) when a simulator or emulator is connected. Clicking it opens a dropdown of URLs the team has configured, and the chosen entry is fired into the device via conductor open-link <url>.

Entries are either leaf links ({ label, url }) or folders ({ label, children: [...] }). Folders may contain folders, so long lists can be organised hierarchically.

"simulator_deeplinks": [
  { "label": "Profile",  "url": "myapp://profile/123" },
  { "label": "Checkout", "url": "myapp://checkout?cart=demo" },
  {
    "label": "Onboarding",
    "children": [
      { "label": "Welcome",  "url": "myapp://onboarding/welcome" },
      { "label": "Sign up",  "url": "myapp://onboarding/signup" },
      {
        "label": "Verify",
        "children": [
          { "label": "Email", "url": "myapp://onboarding/verify/email" },
          { "label": "Phone", "url": "myapp://onboarding/verify/phone" }
        ]
      }
    ]
  }
]
FieldTypeDefaultDescription
labelstringrequiredDisplay name shown in the dropdown.
urlstringrequired for leaf entriesURL or custom-scheme deep link. Mutually exclusive with children.
childrenSimulatorDeeplinkConfig[]required for folder entriesNested entries grouped under this folder. Mutually exclusive with url.

Works for iOS simulators and Android emulators alike — any device conductor open-link recognises.


protected_branches — require PR for these branches

Sessions whose base branch is in this list cannot be merged directly — instead they surface a Push & open PR flow.

"protected_branches": ["main", "master", "release/*"]

The default config Argus generates includes ["main", "master"].


protect_default_branch — never push or merge into the default branch

When on, the repo's default branch (what origin/HEAD points at, else main, else master) counts as a protected branch, and Argus never pushes it: sessions hide Push while they're on it and Merge into … when it's their base, so work lands through a pull request. Argus refuses those pushes and merges from anywhere else too, with a message saying why. Off by default.

"protect_default_branch": true

default_base_branch — preselected source branch for new sessions

The branch preselected as the base when a prompt starts in a new worktree. Useful when your team's default integration branch is something other than main (for example, staging or develop).

"default_base_branch": "staging"

The branch must exist locally to be picked. When unset (or missing locally), Argus walks a built-in fallback chain — staging → develop → dev → main → master — and finally falls back to the first local branch.


single_runtime — only one runtime active per project

When true, the project may only have one run command alive across all its sessions at once. Pressing Run while another session is already running prompts you to stop the other runtime or cancel. Useful when your run command claims a fixed port that can't be remapped via workspace_env.


auto_continue_on_limit — resume agents after a usage limit

When true, an agent whose turn stops because the Claude plan's usage limit is spent is sent continue automatically once the limit resets (a minute after the reset time Claude Code reports, or an hour later if it reports none). While a continue is pending, the agent's chat shows when it will fire, with a Cancel button that keeps Argus from continuing that agent until one of its turns gets through. A message you send that goes through replaces the pending continue. Argus gives up after five continues in a row that hit the limit again.

"auto_continue_on_limit": true

Separately from this setting, when you have more than one Claude account signed in, a chat stopped by the limit lists your other accounts that still have usage left, with Continue here next to each. Picking one moves the chat onto that account and continues it. Argus only switches accounts on its own when the project turns on auto_switch_account_on_limit, so a personal project never lands on a work plan by accident.

auto_switch_account_on_limit — move to another Claude account at a usage limit

When true, an agent whose turn stops because its Claude account's usage limit is spent moves to another signed-in Claude account and continues there. Argus picks the account with the lowest current usage, so the agent runs as long as possible, and skips accounts that are spent, signed out or whose usage it can't read. It only ever switches between Claude accounts, never to another runner. With no account to move to, the agent waits, and auto_continue_on_limit still continues it once the limit resets.

"auto_switch_account_on_limit": true

release_note_patterns — surface text-file release notes

Glob patterns (repo-root relative) describing release-note files that Argus surfaces on the session home screen. Drives the single Ready-to-merge release-notes list — every release-note style is expressed as a pattern with a format (including @changesets/cli).

When set, every file matching one of the patterns that was added or modified on the session's branch versus its base is listed with its content rendered inline and any configured labels shown as Badges next to the filename.

"release_note_patterns": [
  // @changesets/cli — labels come from YAML frontmatter automatically
  { "glob": ".changeset/*.md", "format": "changesets" },

  // bare glob — file content shown, no extracted labels
  "apps/foo/release-notes/next/*.md",

  // structured form — extract labels via regex
  {
    "glob":   "apps/mobile/app/release-notes/next/*.txt",
    "format": "regex",
    "labels": [
      { "name": "type",     "selector": "^Type:\\s*(.+)$",     "tone": "accent" },
      { "name": "platform", "selector": "^Platform:\\s*(.+)$", "tone": "neutral" },
      { "name": "issue",    "selector": "^Issue:\\s*(.+)$",    "tone": "success" }
    ]
  },

  // structured form — extract labels via JSON path
  {
    "glob":   "release-notes/pending/*.json",
    "format": "json",
    "labels": [
      { "name": "type",      "selector": "type",     "tone": "accent" },
      { "name": "platforms", "selector": "platforms"                  }
    ]
  }
]
FieldTypeDefaultDescription
globstringrequiredGlob pattern, repo-root relative. ** crosses directories, * does not cross / — matches git's :(glob) pathspec rules.
format"regex" | "json" | "yaml" | "xml" | "changesets""regex"How to parse the file. changesets reads YAML frontmatter; the others are described below.
labels{ name, selector, tone? }[][]Fields to extract and render as Badges in the card header. Ignored when format: "changesets" (labels derived automatically).

Label selectors

  • format: "regex" — selector is a regex applied with m and i flags. The first capture group is the badge value; if no group is present, the whole match is used. Example: ^Type:\\s*(.+)$.
  • format: "json" | "yaml" | "xml" — selector is a dotted path into the parsed object. Use numeric segments to index arrays (e.g. meta.tags.0). Array values at the leaf are rendered comma-joined.
  • format: "changesets" — no labels config needed. Each "<package>": <bump> entry in the YAML frontmatter becomes a Badge (major → warning tone, minor → accent, patch → success), and the body after the closing --- is the entry's content. The Validate with agent button appears when at least one entry is in this format.

tone controls the Badge colour and is one of "accent", "neutral" (default), "success", or "warning".

BehaviourEffect
Empty / unset, no .changeset/No release-notes section is shown.
Empty / unset, .changeset/ repoArgus auto-injects a { glob: ".changeset/*.md", format: "changesets" } entry so existing @changesets/cli projects keep working with no migration.
ConfiguredOnly the configured patterns drive the list — the changesets auto-fallback is skipped, so projects can opt out of changesets entirely.

auto_fetch_minutes — background auto-fetch interval

When set, Argus runs git fetch --prune in the background at this interval (in minutes) for every active session in the project. The status strip's "Last fetched" timestamp updates automatically after each fetch.

"auto_fetch_minutes": 15

Valid values: any positive integer. Omit or set to 0 to disable auto-fetch entirely (the default).

The field can also be changed from Git Settings in the project's git panel — the change takes effect immediately for all open sessions and is saved to the project config on this Mac.

Note: suppress_lfs_warning is the personal counterpart that lives in ~/.argus/user-project-settings.json. It hides the git-lfs banners without touching the repo.


llm — default LLM runner and model

Project-level default for the LLM runner (e.g. Claude Code) and the model agents in this project should use. Sits between agent/session overrides and your app-level default in the resolver cascade:

agent override → session → project (llm) → app default

The runner is bound at session creation and immutable for the session's lifetime. The model is re-resolved every time an agent spawns, so changing it in Project Settings takes effect on the next agent.

"llm": {
  "runner": "claude-code",
  "model": "claude-opus-4-7"
}

Both fields are optional. Omit either to let the cascade fall through to the next level. An unknown runner id is logged as a warning and the resolver falls back to the app default — handy if a runner is removed or renamed across releases.

Built-in runners are claude-code, codex (see Codex) and the ACP agents gemini, antigravity, kiro, opencode, cursor, grok and fx (see ACP agents); custom runners use their custom:<slug> id. With nothing set at any level, sessions run on claude-code.


tools — mask tools off for this project

Tools (Device recording, Device control, Device debug, UI inspector, macOS apps) are an opt-in app-level setting. A project can additionally mask tools off for everyone working on it — useful for repos that don't use device tooling at all (server-only projects, CLI tools).

"tools": {
  "disabled": ["device-recording", "device-debug"]
}

Effective enable = the user has the tool on and this list doesn't contain it. The mask is one-way: a project cannot force-enable a tool a developer has turned off in their personal settings.

Edit via Project Settings → Tools — the dialog lists every tool and toggles them straight into this field. Put it in a checked-in .argus.json to have the mask travel with the repo.

Valid ids: device-recording, device-inspector, device-control, device-debug, macos-apps. Unknown ids are ignored (no error, no warning) so the field tolerates renames across releases.

An orchestrating agent can narrow this further for one child: spawn_agent, spawn_agents_batch and create_session take the same shape as tools, so { "disabled": ["device-control"] } runs a deliberate no-device agent — no device guide in its prompt, and conductor and design_compare refused.


automations — how far automations may go here

Argus automations run on a clock and can start work on their own — see Automations. This block is how a repository caps that, and it is shared with the team.

"automations": {
  "autonomy_ceiling": "draft",          // this repo never goes past draft
  "disabled": ["regression-sweep"],     // automation ids, template ids or teammate handles
  "path_denylist": ["infra/**", "**/migrations/**"]
}
  • autonomy_ceiling — the highest rung any automation reaches in this repo: propose (inbox only), draft (implement and commit), pr (also push and open a draft PR) or auto_merge (also merge on green CI). Argus takes the lowest of the app default, the automation's own level and this ceiling, so the field can only ever tighten. Omit it for no repo-level cap.
  • disabled — automations that must not act on this repo at all. Match either the automation's id or the built-in template id (e.g. morning-triage, take-the-easy-ones). A teammate's handle (e.g. ci-fixer) disables every one of its duties here.
  • path_denylist — globs no automation-started branch may touch. Checked against the branch's actual changes immediately before it is pushed, and added to whatever the automation already forbids.

Edit via Project Settings → Automations. The limits are enforced by Argus itself, not by the instructions an automation is handed — a playbook telling the agent to push anyway is refused at the tool call, and so is the agent running git push or gh pr create from a terminal in a session the automation started, until you write into that session yourself (Taking over a session).


A complete example

{
  "setup": {
    "copy": [".claude", "node_modules"],
    "symlink": [".env.local"],
    "commands": ["pnpm install"],
  },
  "terminals": [{ "name": "Shell", "dir": "." }],
  "run": [
    { "title": "Dev", "command": "pnpm dev", "restartOnRerun": true },
    {
      "title": "Storybook",
      "command": "pnpm storybook",
      "restartOnRerun": true,
    },
  ],
  "workspace_env": [
    {
      "name": "ARGUS_PORT",
      "base_value": 1420,
      "range": 100,
      "strategy": "sequential",
    },
  ],
  "browser_url": "http://localhost:1420",
  "protected_branches": ["main"],
  "llm": { "runner": "claude-code", "model": "claude-opus-4-7" },
}