Omniscio

Project scripts

List the commands you run on a project — install, dev server, tests — in .omniscio/scripts.json. A ▶ button in the session header runs them. Nothing runs until you trust that exact file text.

On this page

What it is

A file in your repository that gives everyone on the project the same run buttons. One script can install dependencies in every new worktree automatically, and one can clean up when a session is archived.

Where to find it

  • The ▶ Project scripts button sits next to the branch name in the session header. It only appears when the session's folder has a scripts file.
  • The shortcut Open project scripts (Alt+Ctrl+R by default). Run the first project script and Run project script 2–5 have no key until you set one in Settings → Keybindings.
  • Edit project → More options shows how many versions of the file are trusted and has Withdraw trust.

The file

{
  "version": 1,
  "scripts": [
    { "id": "dev", "name": "Dev server", "command": "npm run dev", "icon": "play" },
    { "id": "test", "name": "Tests", "command": "npm test", "icon": "test", "timeoutMinutes": 20 },
    { "id": "setup", "name": "Install", "command": "npm ci", "icon": "configure", "role": "setup" },
    { "id": "clean", "name": "Clean up", "command": "npm run clean", "icon": "build", "role": "archive" }
  ]
}
  • icon is one of play, test, lint, configure, build, debug.
  • role is optional: at most one setup and one archive.
  • timeoutMinutes is optional: the setup script defaults to 10 minutes, others to 60, at most 480.
  • Up to 20 scripts, 64 KB. Each command is one line. A file that breaks a rule runs nothing and the scripts window says what is wrong.
  • The file cannot set keyboard shortcuts.

How it behaves

  • Trust. The first time, the window lists every command in full and what runs by itself. Nothing is trusted until you also confirm in the confirmation box the app itself draws over the window: it repeats every command in full, starts on Cancel, and nothing is recorded if you cancel or if the app has no window to ask in. Trusting covers that exact text for that project; changing one character asks again. Trust covers the commands only, not files they call (such as package.json). Trust is never carried in a backup and is withdrawn when the project is deleted.
  • Running. A script runs in the session's own folder (its worktree when it has one) through the system command interpreter, with the app's own keys removed from its environment. Output shows in the window; Stop ends the script and everything it started. Up to 4 runs per project and 8 in the app. Runs end when the session is archived or deleted, the project is deleted, you sign out or quit.
  • Setup script. After a new worktree is made for a session you opened yourself, and once the app's own dependency copy has finished, the trusted setup script runs once. The session does not wait for it. A failure leaves the worktree as it was and posts a note. An untrusted setup script is skipped with a note.
  • Archive script. Runs only when the project's archive rule for it is on.
  • Not on other machines. Cloud sessions, remote sessions, shared sessions and phone or web viewers never run scripts or see their output.

Last verified 2026-10-27