Workspaces#
Status: 1.1.3. In daily use at APS beamlines 12-ID/9-ID. Config formats and CLI commands are stable: from here, a breaking change to either means a new major version, and every change is dated in
CHANGELOG.md. SeeTODO.mdfor what is still open.
Related: safety-and-permissions.md · mcp-servers.md · coding-and-scripting.md · knowledge-bases.md
What a workspace is#
A workspace is a named bundle of everything AIDA needs to work on one project: which provider profile to talk to, which folders it can read from and write to, which MCP servers and skills are available, which knowledge bases it can search, how cautious it should be about writes/deletes/commands, and how it’s allowed to run Python/shell scripts. Instead of re-specifying all of that on every session, you pick one workspace by name and get the whole environment at once.
Workspaces live in ~/.aida/workspaces.yaml, keyed by name. You can manage
them with the aida workspace CLI or, for the parts that already have an
editor, from the GUI’s Configure menu.
Fields#
Field |
Default |
What it does |
|---|---|---|
|
|
Provider profile name from |
|
|
Folders this workspace may read from. |
|
|
Folder this workspace writes results into. |
|
|
Subfolder under |
|
|
Named MCP server group from |
|
|
Skill names available to this workspace. See skills.md. |
|
|
Extra system prompt text appended for this workspace. |
|
|
|
|
|
Names into |
|
|
Shell/Python invocations |
|
|
Path to a conda/venv |
|
|
On/off switch for |
|
|
Folder of |
|
|
Where the Code Editor saves scripts; |
|
|
Up to ten named prompt templates for this workspace’s routine jobs, shown in the GUI’s Quick Tasks panel — see gui-overview.md. Each entry is a |
| script_timeout_seconds | 30.0 | Seconds a run_python_script/run_command invocation gets before its subprocess is killed — a true per-workspace ceiling (a model-requested longer timeout is capped at this, not honored unbounded) — see coding-and-scripting.md. |
CLI usage#
aida workspace list # names + profile + mcp_group, one line each
aida workspace show <name> # full field dump + validation warnings
aida workspace new <name> [flags] # create — refuses if the name already exists
aida workspace edit <name> [flags] # update — requires the name to already exist
new and edit share the same flags (--profile, --source-folders,
--target-folder, --sidecar-folder-name, --mcp-group, --skills,
--knowledge-bases, --system-prompt, --safety, --command-allowlist,
--python-interpreter, --scripting-enabled/--no-scripting-enabled,
--templates-dir, --saved-scripts-dir), but they behave differently for a
flag you don’t pass: on new, an unset flag falls back to that field’s real
default (e.g. safety becomes "confirm", scripting_enabled becomes
True); on edit, an unset flag leaves the existing value untouched — only
the flags you actually pass get changed.
script_timeout_seconds and quick_tasks have no new/edit flag (and
aida workspace show doesn’t print them). new therefore creates a
workspace with the defaults for both; edit preserves whatever they
were set to, along with any other field you didn’t pass a flag for. Set
them from the GUI — the Workspaces… dialog for the timeout, the Quick
Tasks panel for the tasks — or by editing workspaces.yaml directly.
Example — create a workspace with a couple of flags, then tweak one field afterward:
aida workspace new usaxs-review \
--profile argo-claude \
--source-folders "/Volumes/data/USAXS_2026_08" \
--target-folder "~/Documents/Aida/usaxs-review" \
--safety relaxed
# later, just change the safety mode — everything else stays as-is
aida workspace edit usaxs-review --safety confirm
GUI usage#
The toolbar’s workspace selector dropdown lists every configured
workspace plus a (no workspace) option. Picking a different one always
starts a new conversation, and asks for confirmation first — switching
workspaces mid-conversation isn’t supported.
The Folders panel next to it shows the active workspace’s editable settings:
Source folders — one row per folder, each with its own Remove button; Add Source Folder… opens a native folder picker to add one.
Target folder — shown with a Change Target Folder… button.
Sidecar folder name — a plain text field.
Allowed commands — a list of
run_commandpatterns that need no confirmation, each with its own Remove button, plus a text field + Add Command button to add one.Python interpreter — a text field (with a Browse… picker) for the
python_interpreterpath used byrun_python_script.
A source or target folder you add here takes effect in the running chat
immediately: the agent is allowed to read and write there, and it is told
the new paths (they appear in its # Workspace folders instructions), so
you can say “the data is in the source folder” rather than pasting full
paths. A one-line notice on the next message tells it the folders changed,
and the panel shows Applied to this chat until you save.
Saving is about future chats: nothing is written to workspaces.yaml
until you click Save to Workspace, and the other fields here (sidecar
folder, allowed commands, interpreter) only take effect in chats started
after that save. Switching away or closing the app without saving discards
the changes.
One limit: MCP servers that were started with folder paths of their own
(--output-dir-style arguments) keep the paths they were launched with
until they are restarted. AIDA’s own file, document and script tools pick
up the new folders right away.
The Workspaces dialog#
Configure → Workspaces…: every saved workspace, with all fields of the selected one.#
Separately, Configure → Workspaces… opens the Workspace
Management dialog — Add…/Edit…/Remove… against the full list of saved
workspaces, persisted immediately (no “Save to Workspace” step). Its
Add/Edit form covers every field the Folders panel above has no control for
at all: profile, mcp_group, skills, knowledge_bases,
system_prompt, safety, and a Scripting group holding
scripting_enabled, python_interpreter, command_allowlist, the
Script/command timeout spinner (1-3600s) for script_timeout_seconds,
and folder pickers for templates_dir and saved_scripts_dir.
Edit… on saxs-analysis: the form scrolls; OK and Cancel stay visible.#
The only two fields it does not edit are quick_tasks and notes, each of
which has its own panel in the main window; both survive an edit here
untouched.
Full example#
See examples/config/workspaces.yaml
for a fully commented, worked example with two workspaces.