Starts a Claude session from a brief in a new background tmux window, for /new-window and follow-ups (from agent-tools, AGT-85)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
merge-queue 0d43752371
All checks were successful
Suite release / reused-checks (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / scope (push) Successful in 8s
Suite release / module (push) Successful in 20s
Take forgejo.romaine.life/romaine-life/strip-protocol@v0.1.6
Written by merge-queue for romaine-life/strip-protocol#7, which was tested with this repository before it landed (RLMQ-6).

Anvil-Prebuilt: romaine-life/strip-protocol@461bfb83e8
2026-12-02 17:30:20 +00:00
go.mod Take forgejo.romaine.life/romaine-life/strip-protocol@v0.1.6 2026-12-02 17:30:20 +00:00
go.sum Take forgejo.romaine.life/romaine-life/strip-protocol@v0.1.6 2026-12-02 17:30:20 +00:00
hide_other.go spawn moves in from agent-tools, on strip-protocol (#1) 2026-11-29 23:40:02 -08:00
hide_windows.go spawn moves in from agent-tools, on strip-protocol (#1) 2026-11-29 23:40:02 -08:00
README.md spawn: the README, before the package moves in from agent-tools (AHT-258) 2026-11-29 23:16:53 -08:00
spawn.go spawn moves in from agent-tools, on strip-protocol (#1) 2026-11-29 23:40:02 -08:00
spawn_test.go spawn moves in from agent-tools, on strip-protocol (#1) 2026-11-29 23:40:02 -08:00

spawn

Starts a Claude session from a brief in a new background tmux window: what /new-window and a follow-up's session both do (tmux-strip spawn, claude-pane open, AGT-65). The window runs at-claude, which every Claude window is (HOMECFG-246), with the brief as its first prompt, read from a file saved under ~/.claude-spawn and never typed. Below Medium integrity, as a Low claude's tools run, tmux refuses a new window, so the session's at-claude host opens it instead (at-claude open-window).

  • SaveBrief(home, stem, prompt, now): writes the brief and returns its path.
  • Open(tmux, window): opens the window running at-claude on that brief.

It reads the caller's integrity through strip-protocol. It was agent-tools' spawn package until shared packages got repositories of their own (AGT-85, AHT-258); tmux-strip and claude-pane import it.

Using it

require forgejo.romaine.life/romaine-life/spawn v0.1.0

Testing

go test ./..., with a fake tmux; no window opens.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.