/gt-farm:gt-farmfrom gt-farm
Creates self-contained work packets to hand tasks to external AI services, with a strict return contract. Useful for bulk work, mechanical tasks, or getting a non-Claude second opinion.
Ships in gt-farm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Under gt sandbox mode (the session-start line says SANDBOX MODE; gt_settings.py get sandbox_mode prints on) Claude's shell and file tools cannot write the vault, and by default cannot read it. Every vault step below then takes the route in this table instead: a gt-vault MCP tool runs the same script, with the same checks, outside the sandbox. Read vault files with vault_read, vault_search and vault_list. With sandbox mode off (the default) nothing changes: the shell steps run as written.
| Shell step | Under gt sandbox mode |
|---|---|
<gt-scripts>/gt_write_queue.py … | vault_queue_write — the same path, op, section, key and hint, with the text itself as content (no --session: the server stamps its own). The broker decides at once; a farmed result passes origin: farm and the result says apply, held or escalate |
<gt-scripts>/gt_broker.py drain | nothing to run after vault_queue_write; vault_queue_drain if anything was queued from the shell |
| copying the packet to the clipboard | vault_read the packet; the clipboard command then runs on that text |
Move work out of this context — not because Claude cannot do it, but because doing it here spends the scarce resource, which is context, on raw material rather than judgement.
The unit is a work packet: self-contained, with a return contract. The transport is swappable. Nothing in the packet knows whether a human or a script carries it.
This skill is self-contained: the gates, the service routing and the return contract are all below. It needs no particular project, page or file in the vault, and names no particular AI service — which services exist is the user's configuration.
Vault: $GT_VAULT if set, else vault_path in ~/.claude/vault-config.json.
Current project: the project this session opened (/gt:gt-open), or ask.
Packet dir: farm_packet_dir in ~/.claude/vault-config.json if set, else
Projects/<current project>/packets/. A relative value is taken from the vault root; the
literal <project> in it is replaced by the current project's slug (so
Projects/<project>/farm/ works for every project); an absolute value is used as is.
Inside the vault the directory is created by the broker when the packet is queued (Step 3);
outside it, create the directory if absent. If there is no vault and no absolute farm_packet_dir,
ask where to save rather than writing into the working directory.
All four gates must pass. Any failure and the task stays here — say which gate failed and do the work.
| Gate | Question |
|---|---|
| Stateless | Answerable with no vault or repo state? |
| Self-contained | Fits in a paragraph plus a list of URLs? |
| Checkable | Verifiable without redoing the work? |
| Releasable | Every input safe to hand a third party? |
The default is that a task stays. This skill is for the minority that clears all four — it is not a way to avoid work, and a packet nobody can check is worse than no packet.
Releasable is default-deny. Never include: account identifiers, balances, position sizes, risk parameters, hostnames, internal IPs or domains, credential locations, non-public source code, or personal identifiers. A question that cannot be asked without one of those does not leave; abstract it until it can, or do it here. Check this gate while building the packet, not before sending it.
Which services exist is the user's choice, not this skill's. If farm_services in
~/.claude/vault-config.json names a Markdown file (absolute, or relative to the vault),
read its table — one row per service: name, what it is good for, transport (web UI or
API), terms that limit automation, and where its key lives (location only, never the
value). If there is no such file, ask the user which services they have access to, and
offer to write that file so the question is not asked again. When that file is inside the
vault, write it the way Step 3 writes a packet — a scratch file, then gt_write_queue.py --op create and gt_broker.py drain — never directly; outside the vault, write it as is.
Then route by the capability the task needs:
| Task shape | Send to |
|---|---|
| Many URLs → clean Markdown | a page-contents / extraction API (usually cheapest per page) |
| "Did any of these change upstream?" | whichever configured service has budget left today |
| Broad research wanting citations | a search or research service that returns per-claim citations |
| Second opinion where being wrong is expensive | A non-Claude model — this is the one thing more Claude cannot buy |
| Anything needing repo or vault state | Nobody. It failed gate 1. |
Plain Markdown, because every transport accepts it:
### TASK
<one sentence: what to produce>
### INPUTS
<URLs, quoted text, explicit constraints — everything needed, nothing assumed>
### CURRENT VOCABULARY — use these terms, not your own recollection
Today is <YYYY-MM-DD>. The following are current, read from <where you read them> today.
Use these names in your searches:
<exact model ids / product names / version numbers / console paths>
**Do NOT search for <the superseded names>.** Those are earlier generations and any
figures attached to them are out of date. If a page you find discusses only those, say so
in GAPS rather than reporting its numbers as current.
### RETURN CONTRACT
Answer ONLY in this shape. Omit preamble, apologies and restatement.
FINDINGS:
- claim: <one sentence>
source: <URL of the PAGE carrying the statement — not a homepage — or NONE>
confidence: high | medium | low
GAPS:
- <what you could not establish, and why>
source: NONE is a legal answer. A claim admitting it has no source beats
one that invents a citation. Say so in the packet.GAPS is mandatory, and GAPS: None must be justified, not asserted. The
first real return claimed "None. All 7 questions were fully established" while one
claim's citation did not support it and another had been falsified by direct
observation an hour earlier — both at confidence: high.source: NONE. This is the failure mode the format exists to catch: an inference
presented as a citation reads exactly like a fact until someone opens the page.Save it to <packet dir>/<YYYY-MM-DD>-<slug>.md (see the top of this skill) so the
request is auditable next to whatever came back.
When the packet dir is inside the vault (the default, Projects/<project>/packets/), the
packet goes through the write queue, never a direct write — Core rule 1 (gt 0.17.11)
denies a Write/Edit or shell redirect to vault content. Write the packet to a scratch file
outside the vault, then queue it as a new file and apply it, with the same gt scripts
Step 5 uses (~/.claude/plugins/cache/golden-thread-plugin/gt/<newest>/scripts/):
python3 <gt-scripts>/gt_write_queue.py --vault "<vault>" --op create --path "<packet dir>/<YYYY-MM-DD>-<slug>.md" --content-file "<scratch file>"
python3 <gt-scripts>/gt_broker.py drain --vault "<vault>"
--path is vault-relative. No --origin farm here: this session wrote the packet, so it is
an ordinary session write. The broker creates a missing packet directory. Relay the drain's
output, and read the packet back from its vault path for Step 4. If the drain held the write
(a live claim) or refused it (a file of that name with other content), say so and pick
another slug rather than writing around it. An absolute farm_packet_dir outside the vault
is not governed: save the packet there directly.
A service's research mode will not honour the return contract. Measured: the same
packet that produced a clean FINDINGS/GAPS block in plain mode came back from that
service's deep-research mode as an executive summary with ASCII diagrams and a findings
table. That is not a
failed attempt at the format — it is a pipeline with its own view of a deliverable.
| Need | Mode | Cost |
|---|---|---|
| Parseable output — required at rung 1+ | plain generation, contract enforced | shallower retrieval |
| Maximum source depth | research mode, contract abandoned | prose only; a human reads it; rung 0 only |
Depth is a rung-0 capability. Do not plan automation around a research mode.
Also state explicitly in the packet that forum, community and blog URLs are not documentation — a run restricted to a provider's "official documentation" cited a community forum thread on that provider's support site inside its citations table.
A model formulates its search queries from its priors, so a stale prior produces a stale query, which retrieves a stale page, which is then cited for a current-sounding claim. Grounding does not cure staleness — it launders it, and every mechanical check still passes.
Measured, same packet and same model, with and without a vocabulary block:
| Queries it ran | The rate-limit question | |
|---|---|---|
| Without | "<model id two generations old>" per token price — stale | Invented a requests-per-minute / tokens-per-day table, cited to a page carrying no such table |
| With | "<exact phrase from the current terms page>" site:<provider docs domain> — site:-scoped, phrase-anchored | Put it in GAPS, noting "older documentation references deprecated model series" |
Claims went 9 → 6, with real gaps instead of padding. The fix is prompt-side and free.
The rule generalises past model ids: any fact the model would otherwise recall, supply instead. Product names, version numbers, console paths, price points, today's date.
Read the vocabulary from the system, never from memory — your own recollection is the thing being worked around. Model ids come from the provider's live model-listing API; console paths from the console; versions from the package manifest. A vocabulary block written from memory reproduces the bug it exists to fix.
Relay (rung 0, available now). Hand the packet over from the file, never as terminal text — a rendered packet is a lossy view and long lines are silently truncated by the display. This has already corrupted one run:
Extract from the ### TASK heading to the end of the file, and put that on the clipboard
with whichever tool this machine has:
sed -n '/^### TASK/,$p' <packet-file> | pbcopy # macOS
sed -n '/^### TASK/,$p' <packet-file> | wl-copy # Linux, Wayland
sed -n '/^### TASK/,$p' <packet-file> | xclip -selection clipboard # Linux, X11
sed -n '/^### TASK/,$p' <packet-file> | clip.exe # Windows / WSL
Check with command -v which one exists; do not guess. If none does (a headless or
remote session), do not print the packet as a substitute — give the user the packet
file's path and tell them to open it and copy from the ### TASK line down.
Then say where to paste it. The human is the transport, which is what keeps it within terms — many services permit automated access only through an API key, so for their web UI relay is the permanent ceiling, not a stage to grow out of. Check the terms column of the service table before suggesting anything else.
Wire (rung 1+). A runner script POSTs the identical packet to an API. Requires a key; record only its location, never its value. The ladder: rung 0 is relay by a human; rung 1 is a script sending one packet and parsing the contract; higher rungs batch and schedule. Each rung up needs parseable output, so the contract is not optional above rung 0.
Everything enters unverified. It has no verification state until something
here gives it one.
Promote a finding to self-verified only by opening its source: URL and
confirming the claim. Not by finding it plausible.
A packet whose findings are all source: NONE produced an opinion, not
research. Record it as such or discard it.
File results next to the packet through the write queue, never by writing the vault
file directly — another session may be writing the same project. Save the returned
text to a scratch file outside the vault, then submit it with gt's gt_write_queue.py
(installed at ~/.claude/plugins/cache/golden-thread-plugin/gt/<newest>/scripts/):
python3 <gt-scripts>/gt_write_queue.py --vault "<vault>" --origin farm --op create --path "<packet path>-result.md" --content-file "<scratch file>"
<packet path> is the packet's vault-relative path without .md. The request waits in
the vault's write queue until gt_broker.py drain --vault "<vault>" (same
directory) applies it; run that now and relay its output. A farmed result may only
create a new file — the broker escalates any farmed append or replace to the owner as a
#conflict task, because external free text is never auto-written into existing notes.
If the packet dir is outside the vault (an absolute farm_packet_dir), no vault write is
involved: save the result there directly.
Then promote anything durable with /gt:gt-promote.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (shaven/golden-thread) — no native marketplace selected
npx claudepluginhub p/shaven-gt-farm-golden-thread-plugin-golden-thread-farm-0-21-0Other plugins' skills for the same job