Skip to main content
← All tools

turnstile

Inspect the machine-wide queue for builds and tests

DevelopmentSchema v1.0.0Maintained by mcclowes

Give your agents the context

Install turnstile first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.

clip registry add turnstile --purpose "Inspect the machine-wide queue for builds and tests"
clip sync

Coverage: Read-only status, history, run logs, and classification; excludes queue control and setup. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.

Agent validation

This schema hasn't been run against its tool by an agent yet.

How validation works ↗

what's described

Capabilities

Read operation

turnstile status

Show running and queued jobs, memory level, per-class limits, and recent runs. Reports that the daemon isn't running rather than starting it.

turnstile status --json
Read operation

turnstile history

Summarize what each gated command has cost: estimated and worst peak memory, usual duration, outcomes, and how long jobs waited.

turnstile history --here --limit 10 --json
Read operation

turnstile logs

Print the captured output of a run that had no terminal, such as an agent's. Logs are kept for a day, or a week for failed runs.

turnstile logs 3628
Read operation

turnstile classify

Show how a command would be gated: its class and cost key, or pass through.

turnstile classify npm run build

Inspect the source

Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.

Full capability document
{
  "name": "turnstile",
  "version": "0.8",
  "description": "Inspect turnstile, the macOS gate that queues builds and tests for memory and per-class slots. Gated commands run through its shims unchanged, so these commands only explain queues, waits, and past runs. Partial community schema covering read-only inspection.",
  "command_layout": "flat",
  "output": {
    "tty": "text",
    "piped": "text"
  },
  "commands": [
    {
      "name": "status",
      "description": "Show running and queued jobs, memory level, per-class limits, and recent runs. Reports that the daemon isn't running rather than starting it.",
      "mutating": false,
      "args": [
        {
          "name": "--json",
          "type": "boolean",
          "description": "Machine-readable status."
        },
        {
          "name": "--watch",
          "type": "boolean",
          "description": "Redraw continuously until interrupted."
        }
      ],
      "examples": [
        "turnstile status --json"
      ],
      "output_fields": [
        {
          "name": "running",
          "type": "array"
        },
        {
          "name": "queued",
          "type": "array"
        },
        {
          "name": "recent",
          "type": "array",
          "description": "Finished runs with key, project, outcome, exit code, duration, peak memory in bytes, and log path."
        },
        {
          "name": "memoryLevel",
          "type": "integer",
          "description": "Free memory as a percentage."
        },
        {
          "name": "limits",
          "type": "object",
          "description": "Slots per class: compile, test, and browser."
        }
      ]
    },
    {
      "name": "history",
      "description": "Summarize what each gated command has cost: estimated and worst peak memory, usual duration, outcomes, and how long jobs waited.",
      "mutating": false,
      "args": [
        {
          "name": "--days",
          "type": "integer",
          "default": 30
        },
        {
          "name": "--limit",
          "type": "integer",
          "default": 20,
          "description": "Maximum commands listed."
        },
        {
          "name": "--here",
          "type": "boolean",
          "description": "Only the project containing the working directory."
        },
        {
          "name": "--json",
          "type": "boolean"
        }
      ],
      "examples": [
        "turnstile history --here --limit 10 --json"
      ],
      "output_fields": [
        {
          "name": "commands",
          "type": "array",
          "description": "Per command and project: key, runs, estimate, worstPeak, and usualDuration."
        },
        {
          "name": "waits",
          "type": "object"
        },
        {
          "name": "outcomes",
          "type": "object"
        }
      ]
    },
    {
      "name": "logs",
      "description": "Print the captured output of a run that had no terminal, such as an agent's. Logs are kept for a day, or a week for failed runs.",
      "mutating": false,
      "args": [
        {
          "name": "job",
          "type": "string",
          "required": true,
          "description": "Job number, pid, or name."
        },
        {
          "name": "-f",
          "type": "boolean",
          "description": "Follow the output until the run ends."
        }
      ],
      "examples": [
        "turnstile logs 3628"
      ]
    },
    {
      "name": "classify",
      "description": "Show how a command would be gated: its class and cost key, or pass through.",
      "mutating": false,
      "args": [
        {
          "name": "command",
          "type": "string",
          "required": true,
          "description": "The command and its arguments."
        }
      ],
      "examples": [
        "turnstile classify npm run build"
      ],
      "output_fields": [
        {
          "name": "stdout",
          "type": "string",
          "description": "One line, such as compile (npm run build) or pass through."
        }
      ]
    }
  ]
}

View source and propose an update ↗

SHA-256: 0058b341ee4d15241e0dff9f933bd4d14a5b5f9ee1ffd7c81a3eb56fd646c20e