Skip to content

Workspaces & Secrets ​

Discovery covers the tasks a repo already has. When you want more, such as a task that chains three others or one that needs a secret, you write it as a flow executable: a short YAML file that lives in your repo. Mochi helps you write those files and connects them to the secret manager you already use.

Create and edit tasks ​

In the desktop app, New executable (⌘N) starts from a template, a blank file, or, with AI on, a description of what you want. Templates are reusable starting points you can generate tasks from; find and make them on the Executables page's Templates tab. Edit on a task opens it as a form or as YAML.

Mochi's edits change only what you changed. Comments, key order and the tasks next to it stay as they were, so you can edit in the app and by hand without them fighting.

Found tasks are the exception: change those in the file they come from, such as the Makefile or package.json.

Workspace settings ​

Edit on a workspace's page changes its display name, description and tags. From a terminal:

sh
mochi workspace edit my-project --display-name "My Project" --tags go,api

Use your secret manager ​

Tasks read secrets from a vault. Mochi can store them in its own encrypted vault, managed on the desktop's Vault page, or read them from a secret manager you already use. Presets set the second case up for you:

PresetProvider
1password1Password
passpass (GPG)
aws-ssmAWS Systems Manager Parameter Store
aws-secrets-managerAWS Secrets Manager

A preset vault only reads from your provider. It never writes to it. For a key/value secret in AWS Secrets Manager, link one key with name#key, such as prod/db#password.

sh
mochi vault preset preflight --preset 1password   # is the provider's CLI ready?
mochi vault preset connect --preset 1password     # sign in
mochi vault preset render op --preset 1password --out op-vault.json
mochi vault create op --type external --config op-vault.json

Run tasks in a container ​

A container profile names an image and how to run it: Docker or Podman, extra mounts, the user and network. Pick one when you run a task, and it runs inside that container with your workspace mounted, while its flow file stays as it is. One Go image can build every service, or you can try a task on a newer toolchain before you change anything.

Make profiles in Settings → Containers, which also shows which runtimes you have installed. Then choose Run in container… from a task's More actions menu. From a terminal:

sh
mochi container set go --image golang:1.26 --volume ~/.cache/go-build:/root/.cache/go-build
mochi build app --container go

Settings → Containers: Docker running and Podman not installed, above four profiles with their images and the runtime each runs with

Runtimes ​

A profile runs with Docker or Podman. Left on Auto, it uses whichever is installed, and when both are, the one whose engine is running. Colima, OrbStack and Rancher Desktop work through the docker command they install, and runs go to whichever engine your current Docker context points at. Setups with only nerdctl aren't supported. Settings → Containers shows each runtime's version and whether its engine is running, so start Docker Desktop, Colima or your Podman machine before you run. Engines that run in a VM only see the folders they share with it (Colima shares your home folder by default), so keep the workspace inside one or its files won't be in the container.

Choose which one Auto uses on this machine with Default runtime there. From a terminal, or to run a runtime with extra flags:

sh
mochi config set container-runtime podman
mochi config set container-command docker docker -- --context colima

The image needs sh and every tool the task calls, since nothing on your machine's PATH is visible inside it. The task gets its parameters, arguments and secrets, but not your shell's environment variables, so set anything else as a parameter.

Profiles are kept on your machine. Every step of the task that runs a command runs in the container, including each step of a task that chains others, and a profile replaces any container a step's flow file sets for that run. Steps that make an HTTP request, render a page or open something run on your machine as usual.