Skip to content

Commands

Commands are custom shell commands attached to a project. They appear as buttons in the chat header for any active branch, giving you one-click access to frequently used scripts.

  1. Open the Commands dialog via ⋯ More options → Commands in the chat header.
  2. Click Add Command.
  3. Fill in the fields:
    • Name — the label shown on the toolbar button (e.g. “Run Tests”)
    • Icon — choose a Lucide icon from the picker
    • Command Line — the shell command to execute (e.g. bun test, npm run lint)
  4. Click Save.

The command button appears immediately in the chat header for all branches of this project.

Click the command button in the chat header. Tarsk runs the command in the active branch’s directory. Output streams in the output panel below the chat or in the Terminal dock panel.

Commands run against the branch’s own copy of the repository:

  • Running tests in branch A and branch B simultaneously produces independent results
  • Changes made by the agent in a branch are visible when the command runs in that branch

The chat header also includes a Scripts button that lists scripts from the project’s package.json. Click a script to run it in the current branch’s directory.

Reopen the Commands dialog to edit (pencil icon) or delete (trash icon) existing commands. Changes take effect immediately across all branches.

Use CaseExample Command
Run testsbun test
Lint codebun run lint
Type-checktsc --noEmit
Format codeprettier --write .
Build for productionbun run build
Run a custom script./scripts/seed-db.sh

Commands are distinct from the Run Command used by the Run/Stop button. The Run Command is a long-running dev server process (e.g. bun dev). Commands are one-shot scripts. See Dev Server.