taut-summon
Summon extension for Taut: host an existing agent harness (Claude Code and friends) as an ordinary member of a taut workspace.
This package is intentionally separate from the core taut-chat
distribution. The summon driver is the agent's terminal, not its runtime: it
injects chat into the harness's own live session (its ears), and the agent
speaks through the ordinary taut CLI selected by its continuity token (its
mouth). The full contract lives in the core repository at
docs/specs/04-summon.md.
Status
Functional. The CLI surface (taut-summon run|stop|status) and the installed
root verbs (taut summon, taut dismiss), the foreground driver
(bootstrap, chat injection, event pump, crash-resume, clean shutdown), the
session ledger with a single-driver guard and PTY wired flag, the control
plane (STOP/STATUS/PING) with a rate backstop, the default persona, and the
provider adapters are implemented. pty is the default adapter for the
interactive harnesses (claude, codex, coder, grok, qwen, kimi,
opencode, pi); claude-stream remains available for Claude Code's
structured stream-json mode. See
docs/plans/2026-07-06-taut-summon-plan.md,
docs/plans/2026-07-07-taut-summon-pty-harness-adapter-plan.md, and
docs/implementation/05-taut-summon-architecture.md for the driver design.
Command registration and rich-host composition are documented in
docs/implementation/06-command-extensions.md.
Requirements
- Python 3.11+
- Core distribution
taut-chatand extensiontaut-summoninstalled in the same environment - A SQL-sidecar backend (SQLite or Postgres) — summon state rides sidecar tables
Installation
The core distribution is taut-chat; it still installs the taut command and
import package. The extension remains taut-summon. Once the first coordinated
PyPI release is published:
pipx install taut-chat
pipx inject --include-apps taut-chat taut-summon
The tag gate reuses the exact wheel and sdist built by canonical Test. It
stages them in a draft GitHub Release, publishes them through the
taut-summon top-level PyPI Trusted Publisher, verifies filenames and SHA-256
digests, and only then publishes the GitHub Release as immutable.
Usage
taut summon claude # summon a claude into #general
taut summon reviewer --provider claude dev
taut summon reviewer --provider claude-stream dev
taut dismiss reviewer
taut-summon status
When the workspace is discoverable from the current directory, --db is not
required. The quickstart above exercises the same discovery path for the
driver, control loop, and recovered broker handles.
taut-summon --help lists the three verbs and their exit classes; each verb's
own --help documents every positional and flag. Exit 0 is success, 1 is
an invocation, adapter, storage, or unresponsive-driver error, and 2 means
nothing is currently summoned. With no verb, help goes to stderr and exits 1.
Installing this package registers native taut summon and taut dismiss
command adapters through Taut's command-extension interface. The root and
standalone consoles use the same parser configuration and controller adapters;
neither console invokes the other. taut-summon status remains the standalone
control-plane listing and inspection command.
On first PTY use, summon attaches your terminal so you can answer trust,
login, or model prompts in the real harness UI. Detach with Ctrl-\ Ctrl-\.
After detach the member is marked wired and future summons run detached.
Use taut summon --attach NAME to re-enter setup, or --detach for an
explicit detached run. PTY output is never parsed as speech; the agent speaks
by running taut say.
Summon command records, standalone status/errors, and Summon-owned
non-interactive logs use core's public taut.escape_terminal_text policy. This
reduces the chance that prompt-injected chat or provider text is relayed as a
live terminal command sequence. It is a safe default, not a sandbox boundary.
The explicit PTY attach is intentionally exempt and copies provider terminal
bytes unchanged because those bytes are the attached terminal protocol.
Provider-owned stderr inherited directly by an external adapter is also
outside Taut-owned text rendering and may contain controls. Constrain or
redirect that provider stream when its output is not trusted; mediating it
would require a separately drained pipe rather than this text-display policy.
The PTY orientation is the first injected user turn, not a privileged system message. Chat continuation lines are indented to keep attribution visible, but chat remains untrusted user-role workspace input. Notification injection is at most once because inbox records are consumable pointers; the source chat is durable. The rate backstop limits posting volume and does not detect a low-rate semantic loop.
Trust boundary
Anyone who can write the configured Taut storage can feed user-role input and storage-backed control requests to the summoned harness. For SQLite this is the local file-access boundary. For shared Postgres, a remote database writer can therefore influence tools on the harness host. Restrict storage writers to principals authorized for that effect, or constrain the harness tools separately. Names, personas, message framing, driver evidence, and continuity tokens preserve attribution or lifecycle state; they are not authorization.
Control requests carry driver evidence as a stale-generation fence. That evidence prevents an old queued command from acting on a replacement driver; it does not authenticate the requester.
Testing
From the repository root:
uv run pytest extensions/taut_summon/tests
Local runs attempt the live PTY harness smoke matrix by default. A provider
skips with an explicit reason when its binary is absent, the fresh test
database has not been onboarded with a real attach/detach cycle, or status
cannot reach a usable detached session. CI skips the real-harness matrix
unless TAUT_SUMMON_LIVE_HARNESS=1 is set. For a fast local loop, use:
TAUT_SUMMON_LIVE_HARNESS=0 uv run pytest extensions/taut_summon/tests
Run taut summon --attach <name> once for a provider that still needs trust,
login, or model setup before expecting its detached live smoke to pass.
For a hard local external-provider smoke, use strict mode. It prewires the
temporary test session to model an already-onboarded provider and fails on
missing binaries, readiness gaps, status timeouts, unanswered terminal queries,
or injection catch-up failures. The external-provider lane does not require
hosted CLIs to auto-execute shell commands; the local LLM lane below owns the
deterministic sentinel-posting proof.
TAUT_SUMMON_LIVE_HARNESS_STRICT=1 uv run pytest extensions/taut_summon/tests/test_live_harness.py
The local LLM smoke runs locally by default when a loopback OpenAI-compatible endpoint lists the served model, and it runs in CI through the dedicated Ollama-backed workflow job. Defaults:
TAUT_SUMMON_LOCAL_LLM_ENDPOINT=http://127.0.0.1:11434/v1
TAUT_SUMMON_LOCAL_LLM_MODEL=taut-summon-local-model:latest
To run it locally with Ollama:
ollama pull qwen2.5:0.5b
cat > /tmp/TautSummonModelfile <<'EOF'
FROM qwen2.5:0.5b
PARAMETER num_ctx 2048
PARAMETER num_predict 64
PARAMETER temperature 0
EOF
ollama create taut-summon-local-model:latest -f /tmp/TautSummonModelfile
uv run pytest extensions/taut_summon/tests/test_live_local_llm.py
Use TAUT_SUMMON_LOCAL_LLM=0 to skip the local LLM smoke locally, or
TAUT_SUMMON_LOCAL_LLM=1 to make missing endpoint/model setup fail instead of
skip.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taut_summon-0.8.1.tar.gz.
File metadata
- Download URL: taut_summon-0.8.1.tar.gz
- Upload date:
- Size: 73.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9f43a5f46d610c986b0ba052eaf48b6d4f85e959c78f69838ee414febdab3e
|
|
| MD5 |
0fd522e0dc4a58f438e3c17caa7429d3
|
|
| BLAKE2b-256 |
6dfe8b8698b8151856786643975e227dc870e3b1adcf1cd598c3d18af0d42769
|
Provenance
The following attestation bundles were made for taut_summon-0.8.1.tar.gz:
Publisher:
release-gate-summon.yml on VanL/taut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taut_summon-0.8.1.tar.gz -
Subject digest:
5f9f43a5f46d610c986b0ba052eaf48b6d4f85e959c78f69838ee414febdab3e - Sigstore transparency entry: 2349634017
- Sigstore integration time:
-
Permalink:
VanL/taut@33a3d73fb14191459cfd22961f43a0f8fcf3440e -
Branch / Tag:
refs/tags/taut_summon/v0.8.1 - Owner: https://github.com/VanL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-gate-summon.yml@33a3d73fb14191459cfd22961f43a0f8fcf3440e -
Trigger Event:
push
-
Statement type:
File details
Details for the file taut_summon-0.8.1-py3-none-any.whl.
File metadata
- Download URL: taut_summon-0.8.1-py3-none-any.whl
- Upload date:
- Size: 88.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89c59b5505c34c894760ce8b3d931472a49fc90b40e19ac5056406a7f41a5f19
|
|
| MD5 |
0f9421dc6490db5c4a60cd11ac7d8a65
|
|
| BLAKE2b-256 |
e0e265c1a9c306f49d318f0c1e60b60cfa9553a37562f91a87a2a2dd03a828cf
|
Provenance
The following attestation bundles were made for taut_summon-0.8.1-py3-none-any.whl:
Publisher:
release-gate-summon.yml on VanL/taut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taut_summon-0.8.1-py3-none-any.whl -
Subject digest:
89c59b5505c34c894760ce8b3d931472a49fc90b40e19ac5056406a7f41a5f19 - Sigstore transparency entry: 2349634383
- Sigstore integration time:
-
Permalink:
VanL/taut@33a3d73fb14191459cfd22961f43a0f8fcf3440e -
Branch / Tag:
refs/tags/taut_summon/v0.8.1 - Owner: https://github.com/VanL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-gate-summon.yml@33a3d73fb14191459cfd22961f43a0f8fcf3440e -
Trigger Event:
push
-
Statement type: