Internals

How Mindtape is built, from its crate layout and evaluation cache to what differs per platform.

You don’t need anything on this page to use Mindtape. It’s for you if you audit, package or build on the code.

Workspace

A 2-crate cargo workspace (edition 2024, pinned to rustc 1.92.0):

The workspace has 7 general-purpose dependencies. They’re published separately, and none of them depends on the task model, so a tool that reads Typst files as data can use them without it.

The cache

mt evaluates task files with the Typst compiler, which takes time on a large backlog. So each project keeps one cache in .mindtape/cache/, keyed by each file’s content hash, and mt evaluates only the files whose bytes changed since the last run. A file that imports a module also counts as changed when that module’s bytes did. mt writes a .gitignore into that directory, so git does not track the cache. On a generated backlog of 2000 tasks:

CommandCold cacheWarm cache
mt ls0.44 s0.18 s
mt check0.33 s0.08 s

These figures come from one run on 2026-08-16 on one Linux machine with an i7-12700H, and nothing regenerates them. Run just bench run on your machine for the warm column. For the cold column, set MINDTAPE_NO_CACHE=1 to make mt skip the cache.

A cache entry is a copy of what evaluation produced, so you lose nothing by deleting the directory. The next run rebuilds it. A change to the config, the prelude or the mt version starts a new cache and removes the old one. A read command such as mt ls may write the cache, but it never changes a task file.

Platform support

Every tagged release includes a prebuilt binary for each supported platform, listed in the Quickstart. CI runs the tests on Linux and Windows. Two things differ by platform. Hooks says which shell runs a flip hook’s run command, and docs/contributing/windows.md lists the terminal tests that run on Unix only.

Everything else is the same code on every platform: the config and data directories, the Typst local-package path, editor lookup, and the path separators in derived tags and links. The Windows CI job tests it.

For AI agents covers the JSON output and the schemas a tool reads.