Task Runner
The Fabriqa task runner lets you define and execute workspace tasks — build commands, test runners, dev servers — directly from the app without leaving your chat context. It reads the sametasks.json format used by VS Code, so existing project task configurations work immediately.
Task File Locations
Fabriqa looks for task definitions in this priority order:.fabriqa/tasks.json— Fabriqa-specific task file (takes precedence)..vscode/tasks.json— VS Code task file (used if no Fabriqa file is found).
.fabriqa/tasks.json file is useful when you want Fabriqa-specific tasks that shouldn’t appear in VS Code’s task runner.
A custom path can also be set per workspace in Workspace Settings → Overview.
Task File Format
Task files use the VS Codetasks.json format with "version": "2.0.0". The format supports JSONC (JSON with comments).
label and a command.
Variable Resolution
Use VS Code-compatible variables incommand, args, and options.cwd:
Example using variables:
Task Arguments
Pass arguments via theargs array. Arguments are automatically shell-escaped:
Platform-Specific Overrides
Override any task property for a specific platform usingwindows, osx, or linux keys:
Task Dependencies
UsedependsOn to chain tasks. Dependencies run before the task’s own command:
dependsOn accepts a single task label (string) or an array of labels. Dependencies are resolved recursively and concatenated with && — if any dependency fails, the chain stops.
Running Tasks
Tasks appear in the Run button dropdown in the chat header toolbar:- Click the Run button (▶) to open the actions menu.
- Select a task from the list to execute it.
- The task runs in the integrated terminal panel.
Run Last Action
Cmd+R (macOS) / Ctrl+R (Windows / Linux)
Reruns the most recently selected task without opening the menu. If no task has been run yet, Cmd+R opens the actions menu instead.
The last selected task is persisted per workspace across restarts.
Adding Tasks via the UI
If no task file exists yet, click Add action in the Run menu to open a task definition editor. Fabriqa creates a.fabriqa/tasks.json with a starter template and opens it for editing.
You can also add tasks from Workspace Settings → Actions.
