Skip to content

Finding Tasks ​

Most repos already say how to build, test and run them, in a dozen different formats. Mochi reads those files and lists every task it finds in one place, where you can search it, run it and see its history.

  • Nothing to port. Make still runs your Make targets, and npm still runs your scripts.
  • Nothing written to your repo. Your files stay exactly as they are.
  • Always current. Change a file and the next sync picks it up.

What Mochi finds ​

FileBecomes
MakefileMake targets
package.jsonnpm scripts
JustfileJust recipes
Taskfile.ymlTask tasks
docker-compose.yml, compose.ymlCompose services
DockerfileAn image build
Cargo.tomlCargo commands
*.sh, *.ps1, *.bat, *.cmd, *.pyScripts
.github/workflows/*.ymlWorkflow jobs, to read and document; they don't run locally

Each task gets a verb from its name, so docker-build is a build and deps is an install. A name without a verb in it becomes an exec. A leading verb is dropped from the name so it isn't said twice: build-docker becomes build docker.

One workspace's tasks from Compose, just, GitHub Actions, npm and Make, each tagged with the file it came from

Scanning ​

Mochi scans a project when you add it, and shows what it found before anything is added. mochi discover --dry-run previews the same from a terminal.

Sync in the desktop app (⌘⇧S), or mochi sync, picks up new and changed tasks in files Mochi already reads. To look for new files, use Re-scan for task files in a workspace's menu, or run mochi discover.

Where found tasks live ​

Found tasks sit next to any flow executables you've written by hand, and run the same way. They carry the discovered tag, and each kind of file gets its own namespace, so a Makefile lint and an npm lint stay two tasks:

sh
mochi lint my-project/discovered/makefile:lint
mochi lint my-project/discovered/npm:lint

You won't usually type these: search for the task, or pick it in the app.

To change a found task, edit the file it comes from. The exception is its description: Mochi keeps that on your machine, so you can describe tasks without touching the repo. Use mochi executable set-description, or Generate description in the app to let AI write one.

Next ​