Skip to content

Overview

Workspaces ​

A workspace is one folder that holds everything an assistant knows and may do: its chats, agents, extensions, permissions, work, memory and vault.

Settings › Workspaces: the workspace main, active and default, and New workspace.Settings › Workspaces: the workspace main, active and default, and New workspace.
The sheet New workspace: Name, Display name and Create.The sheet New workspace: Name, Display name and Create.

AskWhat did the plumber write last week? (in the workspace family)

The search runs in family's mailbox. A workspace without a mailbox has no mail tools at all.

AskRestart the web server for Acme. (in the workspace clients)

ssh_exec uses the keys and the trusted hosts of clients; nothing of family is in reach.

AskUse the router-admin login. (in a workspace without it)

The secret does not exist there: each workspace has its own vault, and a secret is offered only where it is kept.

What it gives you ​

  • One folder is the whole thing. nocturn-data/workspaces/<name>/: copy it to back it up.
  • Separate vaults. Each workspace's vault has a key of its own, derived from its name.
  • Separate tools. Extensions, the mailbox, SSH keys and the permission tree are per workspace, so the one for a client's servers has no way to the family's mail.
  • Switch per device. Each phone or browser chooses its active workspace; the others are untouched.
  • Nothing to restart. Workspaces are created, renamed and deleted while the daemon runs.

How it works ​

Every command the app sends names its workspace, and the daemon answers from that folder alone. On the command line, -w <name> chooses it; the default is main, which is always there.

Create one ​

  1. Open Settings › Workspaces and tap New workspace.
  2. Name: lowercase letters, digits, - and _, starting with a letter or digit, such as work. It is the folder's name and the input to the vault key: it never changes.
  3. Display name (optional): a label you can change any time.
  4. Tap Create.

Switch to it from the drawer: tap the workspace at the top, then pick it. Manage workspaces opens the list.

Rename or delete one ​

On a workspace's page, change Title and tap Save title: only the label changes. Delete workspace moves the folder to workspaces/.trash/<name>-<time>, with its chats, notes and vault; nocturn stops serving it at once. main cannot be deleted: it is created again at start.

Back one up ​

Copy nocturn-data/workspaces/<name>/ together with nocturn-data/master.salt, and keep the passphrase apart. Never rename the folder: its encrypted files are keyed to the name.

What is inside ​

FileWhat it holds
workspace.jsonits title and settings (Configuration)
permissions.jsonthe permission tree's stored rules
vault.enc, secrets.jsonits secrets and where each may go
extensions/, agents/installed extensions, agents
chats/, agent-runs/conversations
work.json, inbox.json, widgets.jsonwork items, the Inbox, Home's widgets and watches
memory/, mnt/memory notes; the files the assistant may read and write
mail/, ssh-hosts.jsonthe mailbox, trusted SSH host keys

The full list: Configuration.

Explore workspaces ​

nocturn is open source. Example hosts and people on these pages are made up.