Files
reliquary/plugins/spire/providers/hosts/t3-code/spawning.md
T
g4borg f6dc43be19 ✨ export: 36 files (features)
M plugins/gitea/.claude-plugin/plugin.json
M plugins/gitea/.codex-plugin/plugin.json
M plugins/gitea/README.md
M plugins/gitea/skills/gitea/SKILL.md
M plugins/gitea/skills/gitea/scripts/fetch_ticket.py
M plugins/gitea/skills/gitea/scripts/start_ticket.py
A plugins/spire/UPGRADES.md
A plugins/spire/agents/designer.md
M plugins/spire/agents/planner.md
A plugins/spire/providers/README.md
A plugins/spire/providers/hosts/claude-desktop/spawning.md
A plugins/spire/providers/hosts/t3-code/spawning.md
A plugins/spire/providers/runtimes/codex/spawning.md
M plugins/spire/skills/gremlins/grm/call.py
M plugins/spire/skills/gremlins/grm/cli.py
A plugins/spire/skills/gremlins/grm/codex.py
A plugins/spire/skills/gremlins/grm/errors.py
A plugins/spire/skills/gremlins/grm/harness.py
M plugins/spire/skills/gremlins/grm/launch.py
A plugins/spire/skills/gremlins/grm/scrub.py
M plugins/spire/skills/gremlins/grm/stream.py
A plugins/spire/skills/gremlins/grm/title.py
A plugins/spire/skills/gremlins/tests/_pin.py
M plugins/spire/skills/gremlins/tests/fake_claude.py
A plugins/spire/skills/gremlins/tests/fake_codex.py
M plugins/spire/skills/gremlins/tests/test_cli.py
A plugins/spire/skills/gremlins/tests/test_cli_codex.py
A plugins/spire/skills/gremlins/tests/test_codex.py
A plugins/spire/skills/gremlins/tests/test_harness.py
A plugins/spire/skills/gremlins/tests/test_scrub.py
A plugins/spire/skills/gremlins/tests/test_title.py
A plugins/spire/skills/igor/references/upgrades.md
A plugins/spire/skills/igor/tests/test_upgrade_notes.py
A plugins/spire/skills/igor/upgrade-notes.sh
R plugins/spire/skills/implementation/references/spawning-claude-code.md -> plugins/spire/providers/runtimes/claude-code/spawning.md
M plugins/spire/skills/project/SKILL.md
2026-11-25 01:52:10 +01:00

6.9 KiB

Spawning on T3 Code

Host layer over the runtime file. Detection and legend: ../../README.md.

Versions seen

T3 Code (Beta) 0.1.11 with Claude 2.1.330 and Codex 0.171.0 (dirigent T3 tools report §2).

Primitives

§n = dirigent T3 tools report; "lineage" = dirigent T3 lineage report; "bundle" = tool text and system-prompt rules of the 0.1.11 app.

Primitive What it is Reaches the parent Status
native Agent (Claude runtime) provider's own subagent, in-process, same provider, no extra settings final report verified 2026-11-23 (bundle, §1)
delegate_task child thread run by T3, "no parent history"; any provider and model from orchestrator_capabilities completion wakes the parent; task_status returns summary, marks it delivered verified 2026-11-23 (bundle, §1-2); wake observed (lineage §3)
orchestrator_capabilities lists providers, models, options, runtime modes n/a verified 2026-11-23 (bundle, §2); returned live, observed (lineage §2)
t3_thread_launch new top-level thread; workspaceStrategy, modelSelection, first message nothing; pull with t3_thread_wait / t3_thread_read verified 2026-11-23 (bundle, §3); flat, steerable: observed (lineage §3)
create_threads several top-level threads here; "Not delegation" as above verified 2026-11-23 (bundle, §3)
t3_thread_send (auto/queue/steer/restart), _interrupt, _read, _wait drive a thread n/a verified 2026-11-23 (bundle, §3)
task_cancel stops a delegate, its delegates, PR watches; never t3_thread_interrupt its childThreadId n/a verified 2026-11-23 (bundle, §2)
t3_background_wait keeps the thread Working during background Bash; Claude and OpenCode only; not for Agent or delegate ids n/a verified 2026-11-23 (bundle, §2)

Visible vs in-process

  • Native Agent is in-process. A delegate_task child shows only in the parent's right-hand panel (no tree in the left list), is one-shot, and records parentThreadId plus relationshipToParent: "subagent" (observed 2026-11-23, lineage §3-4).
  • A launched thread is a flat top-level peer, steerable, with no parent recorded even with delegatedFrom (observed, lineage §3). No reparenting either way; the title is the only free-text handle (observed, lineage §5-6).
  • A native general-purpose subagent saw mcp__t3-code__* (observed 2026-11-23, §1).

Worktree defaults

  • delegate_task isolation: "worktree": new checkout from the parent commit; uncommitted edits stay out. "shared" (default): the parent checkout. Unsupported for remote delegation (verified 2026-11-23, bundle, §1, §8).
  • t3_thread_launch workspaceStrategy: "worktree": from baseRef, default origin/<default> with startFromOrigin: true. Omitted workspaceStrategy = project root, not the caller's worktree (verified 2026-11-23, bundle, §3, §10).

Wake and notification

  • Delegate completion is injected into the parent thread; its next says "Completion wakes this thread. Do not wait on it or poll it." (observed 2026-11-23, lineage §3).
  • mode: "wait" caps at 45 s; a timeout does not cancel. Threads: pull only (verified 2026-11-23, bundle, §2-3).

Host rules that override Spire defaults

T3 puts these in the system prompt; they win over Spire defaults. All verified 2026-11-23 (bundle, §1-3, §10).

  • Never a background native Agent; background work goes through delegate_task. Collides with a background Athanor (see Spire use).
  • New threads only when the user asks; "subagent", "delegate", "parallel" never mean one.
  • Call orchestrator_capabilities once per thread before the first delegate_task. Unavailable provider or model: say so, never fall back silently.
  • Do not poll delegates (task_status, sleep, Monitor).
  • Each delegate review or re-check is a new delegate_task, never a send to the old one.
  • Mention a thread by its link, verbatim.
  • Children and launched threads cannot exceed the caller's permission modes.
  • As a subagent or child, do the work yourself; start no subagents unless the task says to.

Spire use

Rules; Igor only. The Athanor never calls any mcp__t3-code__* tool (delegate_task, threads); Igor owns them (rests on: unknown "whose thread wakes for a delegate a native subagent started").

  • Native Agent, foreground: anything needing a Spire agent type (pin, skills, SendMessage resume): planner, advocate, reviewer, adepts, researcher, search, scout, the Athanor.
  • delegate_task, mode: "async": another provider or model (Codex review), user-asked settings (effort max), a separate checkout from the parent commit, or a leaf run in the background. Self-contained brief: agent body pasted (e.g. agents/reviewer.md), input files, output path, hand-back headings; no secrets; at most 120k chars. A Codex child has no Spire (read the Codex file first); a Claude child gets the body pasted too, since delegate_task takes no agent type (rests on: assumed Claude-delegate row).
  • Before isolation: "worktree", commit what the child must see; "shared": the child writes only its output path. After a wake, read the output file.
  • The Athanor in T3. Igor dispatches it as a foreground native Agent (no background Agent here). Igor tells the user it blocks until hand-back. Assumed default; Athanor-as-delegate awaits a probe. Igor's brief says the Athanor runs its own subagents (the child rule may reach it).
  • Threads. t3_thread_launch only when the user asks for a thread or peer. Always set workspaceStrategy. Title [igor] <topic>; journal id and link.
  • Background Bash. Before ending a turn on background Bash, Igor calls t3_background_wait (task id).
  • Supervision. Children inherit full-access (observed, lineage §3). runtimeMode: "approval-required" only on user request (rests on: assumed row below).
  • Not used by Spire in 0.4.0: PR and issue tools, request_secret, html_render, previews, devices, schedule_task, linked environments, t3_worktree_handoff, t3_thread_transfer.

Unknowns

Item Status
Whose thread wakes for a delegate started by a native subagent unknown (untested)
A Claude delegate child loads Spire assumed 2026-11-24 (not tested)
SendMessage resume of an adept is not a background Agent under T3's rule assumed 2026-11-24 (Igor waits; adepts reply in one turn)
A send to a finished delegate keeps its context unknown (untested; lineage §3)
approval-required children behave as supervised assumed 2026-11-23 (lineage §3, untested)
t3-thread:// handled by the OS unknown (untested; lineage §7)

Sources

dirigent workpad (separate repo): reports/2026-11-23-11-t3-code-mcp-tools.md ("dirigent T3 tools report"); reports/2026-11-23-16-t3-code-threads-lineage-and-links.md ("dirigent T3 lineage report").