Skip to main content

skharness

Sovereign "phone-drives-my-agent-swarm" harness.

Run many coding/work agents, each in an isolated session, and drive them from a phone over the tailnet — the feel of Claude Code's remote control, but self-hosted on SKWorld infra with no Big-Tech broker.

Why

Claude Code Remote Control has great UX but routes phone↔laptop through Anthropic's relay — it fails the sovereignty test. skharness replicates the experience, not the foundation, over Tailscale + capauth. (Design basis: the 2026-06-13 harness deep-research — pi / cmux / OpenCode / web-shells / Claude Code Remote Control. Full spec in docs/superpowers/specs/2026-06-13-skharness-design.md.)

Architecture

A capauth-gated FastAPI over a SessionManager:

Module Role
gateway.py FastAPI app; bind to a Tailscale IP only (never a public port). verify_caller is the auth seam — a real capauth verifier in prod, a fake in tests.
manager.py SessionManager — ties registry + spawner; spawn creates an isolated worker.
spawner.py Spawner seam — FakeSpawner for CI, TmuxSpawner for real sessions.
registry.py SessionRegistry — track/persist sessions (JSON now; coord-board / skmem-pg later).
session.py Session model — one isolated agent worker.

Mostly reuse: pi (MIT, multi-provider incl. local qwen) as orchestrator + the coord board / skmem-pg as the session/task registry.

Run

pip install -e .            # fastapi + pydantic
# build_app(manager=..., verify_caller=<capauth verifier>) -> FastAPI
# serve bound to the tailscale IP only; auth every call via capauth.

Status

v0.1.0, P0 session core (spec + plan under docs/superpowers/). Mirror: smilinTux (private).

skcode-hostd (P0, read-only)

skcode-hostd is the read-only remote-control daemon over the unified Harness session plane. It owns ONE harness (the claude-code tmux adapter) and exposes exactly three capauth-gated data routes plus a self-contained static client. There is NO write surface: no spawn, inject, kill, dispatch, rename, archive, or model switch. A test (tests/test_daemon.py::test_no_write_surface) proves POST/DELETE return 405 and /inject / /dispatch return 404.

Routes:

Method Path Purpose
GET /api/v1/hosts/self host + harness identity
GET /api/v1/sessions list live + historical sessions
GET /api/v1/sessions/{sid} one session, or 404
WS /api/v1/sessions/{sid}/stream typed SessionEvent stream (?token=)
GET / and /app the static read-only web client

HTTP routes require a Bearer token; the WebSocket takes the token as a ?token= query param (browsers cannot set headers on a WS). The capauth verifier in P0 is a fail-closed deny-all placeholder: real verification lands with the pairing work (spec 7.6), so the daemon rejects every token until then by design.

Run (Tailscale IP only, never 0.0.0.0):

~/.skenv/bin/python -m skharness --host <your-tailscale-ip> --port 9394 --host-id .158

skcode-hostd defaults to :9394 (SKWorld platform spec R0.4). Port :9390 is owned by skcomms.transports.broker_server (its honest, documented default), so the two no longer collide on a shared host. Override with --port <free> and record it in ~/.skcapstone/docs/PORTS.md if :9394 is taken.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skharness-0.3.14.tar.gz (370.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skharness-0.3.14-py3-none-any.whl (198.2 kB view details)

Uploaded Python 3

File details

Details for the file skharness-0.3.14.tar.gz.

File metadata

  • Download URL: skharness-0.3.14.tar.gz
  • Upload date:
  • Size: 370.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for skharness-0.3.14.tar.gz
Algorithm Hash digest
SHA256 fc051d6384ccf15ba9afeafb8f672789aa4474a9035bd321b85a3e8910978869
MD5 5a90a6d67abdcf8d5f05b30fcdbaa8b6
BLAKE2b-256 6f91c594aa37613614642522d069c8a965206f1bd6dce0e8ff4f81da98c31397

See more details on using hashes here.

Provenance

The following attestation bundles were made for skharness-0.3.14.tar.gz:

Publisher: publish.yml on smilinTux/skharness

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skharness-0.3.14-py3-none-any.whl.

File metadata

  • Download URL: skharness-0.3.14-py3-none-any.whl
  • Upload date:
  • Size: 198.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for skharness-0.3.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f554c06cb7a849e5d1b0d5d80f8d2d2228c8b363532a0e2bfaf562964f0cdf
MD5 dd5cf7d7b7fa878fc5ed75a9f0aa6fe9
BLAKE2b-256 04ffc931addfc953aef504f03265b4cb29c8738e405995cdbc51e9885a92310c

See more details on using hashes here.

Provenance

The following attestation bundles were made for skharness-0.3.14-py3-none-any.whl:

Publisher: publish.yml on smilinTux/skharness

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.44

2 files

0.3.43

2 files

0.3.42

2 files

0.3.41

2 files

0.3.40

2 files

0.3.39

2 files

0.3.38

2 files

0.3.37

2 files

0.3.36

2 files

0.3.35

2 files

0.3.34

2 files

0.3.33

2 files

0.3.32

2 files

0.3.31

2 files

0.3.30

2 files

0.3.29

2 files

0.3.28

2 files

0.3.27

2 files

0.3.26

2 files

0.3.25

2 files

0.3.24

2 files

0.3.23

2 files

0.3.22

2 files

0.3.21

2 files

0.3.20

2 files

0.3.19

2 files

0.3.18

2 files

0.3.17

2 files

0.3.16

2 files

0.3.15

2 files

This release

0.3.14 This release

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page