The cache #
On this page
The cache is a copy of your space's issues, kept as files on your computer, that your AI searches with its own file tools before it calls the server. There is one cache per project per computer, shared by every session working there.
Your AI tool manages the cache for you. You do not need to create, refresh, or maintain these files yourself.
The cache needs a tool that runs commands on your computer, such as Claude Code or Codex. The chat in Claude and ChatGPT cannot reach files on your computer, so there your AI keeps no cache and reads the space live. In the Claude desktop app, the Code tab can.
The Turn Zero connection lists tzTrack tools with tztrack_ before the name: find is tztrack_find. This page uses the shorter names. The tools lists the full names.
Where it stands #
The cache is a folder named cache:
- In a Git repository, it is
local/tztrack/cache/under the foldergit rev-parse --git-common-dirprints. Every worktree of a clone shares it, and nothing commits it. - Anywhere else, it is
.tztrack/cache/in the project's folder.
What it holds #
issues/<number>.md, one file per issue, open or closed, with the issue's state on its first line,state: openfor example. The file holds the issue's fields, its title, its reports, comments, relations, and history, and its landings and checks. No line is longer than 200 characters, so a search tool reads it whole.index.md, which lists the open issues under their areas. Its first line gives the instant the archive was taken, and its second line gives the writer:writer: tztrackwhere the server wrote it.
The files show a reporter by its kind alone, never by an identifier, and hold no lease and no report fingerprint. The archive includes restricted issues only if the caller had access to restricted issues when the link was made. A restricted issue in the archive is marked restricted in its file and in the index. A restricted issue's title and text go into nothing committed to Git.
How it is filled #
The cache tool returns a signed download link that lasts ten minutes. The link names the space and holds the caller's restricted-issue access when it was made. It names no account or member. Anyone holding the link can use it until it expires, even after the caller loses access. The download checks the link's signature and expiry, that the space still exists, and the request rates. An unsigned or expired link returns credential_refused. It builds the archive from the space as it stands at download time, using the link's saved restricted-issue access.
The archive is a gzip-compressed tar. Your AI downloads it with curl and unpacks it with tar over the cache folder. Both ship with Windows 10 and later, macOS, and Linux, so no Node and no install is needed. Treat the link as a credential and keep it out of reports. Manage the local cache gives the download and cleanup steps.
The archive holds index.md last. If extraction stops partway, treat the cache as incomplete and retry successfully or read the space live before relying on it.
How it is refreshed #
To refresh, your AI passes cache the timestamp at the top of index.md. The answer gives the changed issue count, their numbers, gone, and a link to the changed issues and a fresh index. The link has the same ten-minute limit and access rules. Delete the files listed in gone and unpack the changed files over the folder.
gone lists numbers for issues that are missing from the space. It never lists an issue you can no longer read, so a refresh keeps that issue's old file. If your AI manages this cache, empty the cache folder and download a full cache after an access change and from time to time.
How it is read #
Your AI searches the cache with its own file tools first. It reads the issue live with read before changing it or quoting or copying its cached text. Another session may have changed the issue or its access since the cache was taken.
When the cache's index.md gives another writer, your AI only reads that cache and never downloads into it. An AI that cannot run commands skips the cache and reads live. Each download counts in the space's rate as a call does, and a link older than ten minutes no longer works.
Related #
- Manage the local cache gives the steps.
- The tools lists
cacheandread. - Refusals gives
rate_limitedwith its remedy.