gozer

Tell the machine what to do. It happens, often in parallel.

gozer is cooperative chip leasing for Tenstorrent boxes. Several agents, apps and scripts can share one machine, and each one gets the chips it asked for when its turn comes.

Your agents and apps do not need their own routine for asking politely for hardware. They queue up, keep working on other things until chips are free, do their work on the hardware, and carry on. Everyone gets a turn.

Install on Debian or Ubuntu

$ sudo apt install ./tt-gozer_0.5.0_all.deb

Download the .deb file from the latest release, then run the line above in the folder you saved it to.

A real session, line by line

Three agents share a box with two boards of two chips each. Each one asks for two chips. The output below is from the real gozer command, run against a test copy of that box when this page was built. Only the ids, process numbers and times are replaced with fixed values so the page is the same on every build.

  1. $ gozer acquire --chips 2 --who claude:bench --reason 'llama decode benchmark' --owner-pid $$
    granted: chips 0,1  (units 0000000000000002)
      export TT_VISIBLE_DEVICES=0000:01:00.0,0000:02:00.0
      lease 0d219a   release with: gozer release 0d219a
      owner pid 4121  (not detached -- held for as long as that pid lives, no grace window)
    Step 1

    The first agent asks for two chips. gozer gives it a whole board, chips 0 and 1, and prints the TT_VISIBLE_DEVICES line that points the Tenstorrent runtime at those chips. --owner-pid $$ ties the lease to this shell, so it lasts as long as the shell does.

  2. $ gozer acquire --chips 2 --who claude:eval --reason 'accuracy eval'
    granted: chips 2,3  (units 0000000000000001)
      export TT_VISIBLE_DEVICES=0000:03:00.0,0000:04:00.0
      lease f2ae86   release with: gozer release f2ae86
    Step 2

    A second agent asks for two chips while the first is still working. It gets the other board, chips 2 and 3. The two agents never had to talk to each other.

  3. $ gozer acquire --chips 2 --who claude:sdxl --reason 'image batch'
    queued: ticket 8fce  position 1
      ahead: (none)
      do other work, then: gozer wait 8fce
    exit 10
    Step 3

    A third agent asks, and both boards are taken. It gets a ticket and first place in the queue. Exit code 10 means queued, so the agent knows to go on with work that needs no chips and come back later.

  4. $ gozer status
    grain: board   (2 boards, 4 chips)
    board 0000000000000002  (p300c)
      chip 0  0000:01:00.0  CLAIMED          claude:bench pid 4121
      chip 1  0000:02:00.0  CLAIMED          claude:bench pid 4121
    board 0000000000000001  (p300c)
      chip 2  0000:03:00.0  CLAIMED          claude:eval pid 4187
      chip 3  0000:04:00.0  CLAIMED          claude:eval pid 4187
    queue:
      1) claude:sdxl  wants 2 chip(s)  since 2026-10-26T16:03:00Z
    Step 4

    gozer status shows the whole box: which agent holds each chip, and who is waiting. CLAIMED means a lease covers the chip and no process has opened it yet. Once one does, the state becomes HELD.

  5. $ gozer release 0d219a
    reset ok; claim window opened for claude:sdxl
    Step 5

    The first agent is done and releases its lease. gozer resets the chips so the next user starts from a clean state, and keeps the freed board for claude:sdxl, the agent at the front of the queue.

  6. $ gozer wait 8fce --timeout 5s
    granted: chips 0,1  (units 0000000000000002)
      export TT_VISIBLE_DEVICES=0000:01:00.0,0000:02:00.0
      lease 7b31c4   release with: gozer release 7b31c4
    Step 6

    The queued agent comes back and runs gozer wait with its ticket. It gets chips 0 and 1 under a new lease of its own.

  7. $ gozer status
    grain: board   (2 boards, 4 chips)
    board 0000000000000002  (p300c)
      chip 0  0000:01:00.0  CLAIMED          claude:sdxl pid 4203
      chip 1  0000:02:00.0  CLAIMED          claude:sdxl pid 4203
    board 0000000000000001  (p300c)
      chip 2  0000:03:00.0  CLAIMED          claude:eval pid 4187
      chip 3  0000:04:00.0  CLAIMED          claude:eval pid 4187
    Step 7

    Now claude:sdxl holds the first board and claude:eval still holds the second. Three agents have had chips on a box with room for two at a time.

  8. $ gozer release 7b31c4
    reset ok
    Step 8

    claude:sdxl finishes and releases. The chips are reset, and the board is free for whoever asks next.

One afternoon on one box

This is real history from the project's own box on 26 October 2026, from 16:00 to 20:30 UTC. The box has two boards. Each row below is one board, and each block is one lease, labelled with the agent that held it. Time runs from left to right.

The log records why each agent asked for chips. That task text is left out of this page; only agent names and times are shown.

Board 1
Board 2
2026-10-26T16:00:00Z2026-10-26T20:30:00Z
  • claude:full-port-pilot
  • claude:graft-accept
  • claude:kernel-probe
  • claude:metal-upgrade
  • claude:orchard-kernel-probe
  • claude:suite-control
  • studio:animatediff
  • studio:audio8-asr
Lease times as a table
Every lease in the window
AgentBoardStartEndLength
claude:orchard-kernel-probeBoard 216:09:4816:10:3446 seconds
claude:orchard-kernel-probeBoard 216:11:3016:12:1545 seconds
studio:animatediffBoard 116:32:2716:34:202 minutes
claude:metal-upgradeBoard 216:38:1416:39:0046 seconds
claude:orchard-kernel-probeBoard 116:39:0916:39:5647 seconds
claude:orchard-kernel-probeBoard 116:39:5616:40:4347 seconds
claude:orchard-kernel-probeBoard 116:40:4316:41:3148 seconds
claude:orchard-kernel-probeBoard 116:41:3116:42:1847 seconds
studio:animatediffBoard 116:44:4516:48:314 minutes
studio:animatediffBoard 116:56:5216:59:243 minutes
studio:audio8-asrBoard 216:59:1117:00:331 minute
claude:kernel-probeBoard 217:03:46continues3 hours 26 minutes
claude:suite-controlBoard 117:12:4217:47:1435 minutes
claude:graft-acceptBoard 117:47:1818:12:4225 minutes
claude:full-port-pilotBoard 118:12:4218:16:043 minutes
claude:graft-acceptBoard 118:21:2719:15:0854 minutes
claude:graft-acceptBoard 119:16:1219:52:2036 minutes
claude:graft-acceptBoard 119:53:16continues37 minutes

Each colour in the legend is one agent. Some leases lasted under a minute and are too narrow for a label; hover over a block to see its agent and times. On a narrow screen, the timeline scrolls sideways.

What happened

  • claude:kernel-probe held a board for 4 hours 5 minutes, the longest lease in this log.
  • claude:orchard-kernel-probe took and released a board 6 times, a typical lease lasting about 47 seconds.
  • claude:full-port-pilot queued and waited 27 minutes for a board.
  • claude:graft-accept queued and waited 9 minutes for a board.
  • claude:graft-accept queued and waited 34 minutes for a board.
  • The fastest handoff from a release to the next waiting agent took 4 seconds.
  • 1 waiting agent got a board in the same second it was released.

How it works

  1. A lease for each board. You ask for a number of chips. gozer leases a whole board, because the Tenstorrent runtime's device visibility works at board level: a grant of one chip can expose both chips on its board. Each agent points the runtime at the chips it was given, so two agents on two boards stay out of each other's way.
  2. A queue. If no board is free, you get a ticket and a place in line. Your agent can keep doing work that needs no chips. When it runs gozer wait with the ticket, gozer hands it the chips as soon as a board is released.
  3. A check that a chip is really in use. A lease record only says who asked. gozer also looks for an open device file under /dev/tenstorrent, which proves a process is using the chip. When a lease's process has ended and its device is closed, gozer clears the lease the next time someone asks for chips. A lease taken by a bare gozer acquire has no process to watch, so gozer clears it only after 900 seconds (15 minutes) have passed since the grant with no device open. Either way, a crashed agent cannot hold a board forever.
How a request for chips is handled An agent runs gozer acquire. If a whole board is free, gozer grants a lease on it. If not, the agent gets a ticket in the queue and keeps working, and gozer wait hands it a board when one is released. Either way the agent then runs on its chips. gozer treats a chip as in use when its device file is open; the lease record only says who asked. An agent asks for two chips gozer acquire --chips 2 Is a whole board free? Lease gozer grants the whole board Ticket a place in the queue; keep working gozer wait hands over a board when one is released The agent runs on its chips Is the chip really in use? An open device file proves it. The lease record only says who asked. yes no

What gozer does not do

gozer is cooperative. Any local user can release any lease, so it works because everyone on the box uses it. It does not stop a program that opens the chips without asking.

Install

gozer is a small Python program. It needs Python 3.10 or newer, and tt-smi to reset chips. The Debian package is a single architecture-independent file for Debian and Ubuntu.

  1. Install the package from the latest release.
    $ sudo apt install ./tt-gozer_0.5.0_all.deb
  2. Link the three Claude Code skills into your own ~/.claude/skills, so Claude Code knows to lease chips before it uses them.
    $ gozer-install-skills
  3. See the state of the box.
    $ gozer status

From a clone of the repository, run ./install.sh to get the same command and skills.

An example log

gozer keeps a history of every lease. The table below is an example of what it records, taken from the same afternoon on one box (26 October 2026, 16:00 to 20:30 UTC). Agents are listed by name in alphabetical order.

Example: leases on one box, 26 October 2026, 16:00 to 20:30 UTC
AgentLeasesTime heldLongestWaited
claude:full-port-pilot13 min 22 s3 min 22 s27 min 11 s
claude:graft-accept43 h 30 min1 h 34 min42 min 39 s
claude:kernel-probe14 h 5 min4 h 5 minnone
claude:metal-upgrade146 s46 snone
claude:orchard-kernel-probe64 min 40 s48 snone
claude:suite-control134 min 32 s34 min 32 snone
studio:animatediff38 min 11 s3 min 46 snone
studio:audio8-asr11 min 22 s1 min 22 snone

Time held adds up the agent's leases that started in this window and have a recorded release. Waited is the time between joining the queue and being granted chips.

Who uses it

These public projects call gozer in their own code or scripts. Each line says how.

  • tensixinet
    Plays chip telemetry as synthesizer sound; starts its audio worker with gozer run, which leases the chips and resets them on exit.
  • tt-bio-demo
    Protein-folding demo; its hardware runner wraps each run in gozer run when gozer is installed.
  • tt-discolike
    Catalog and launcher for Gradio demo apps; shows live chip lease state from gozer status --json.
  • tt-orchard
    Harness that brings up new models; its lease adapter calls gozer acquire, reset, release and status for each lease.
  • tt-station
    Mac client and box agent for serving models; the agent runs gozer acquire before it starts a server and releases it after.
  • tt-tnt
    Llama-like model built for Tenstorrent hardware; its training demo script runs the trainer under gozer run.