Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions pm-stack/opencode-claimant/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ Never claim, bind, launch, or mutate a task in shadow mode.
it changed, skip it -- someone else owns the launch now. A task
that is assigned `opencode` but NOT handed off belongs to its
claiming lane, which is working it: never launch into it.
b. Create the worker session on the standing OpenCode server
(`POST /api/session`, directory = the repo's laptop primary,
title naming the queue task and issue, model = the route above).
b. Create the worker session on the standing OpenCode server:
`POST /api/session` with JSON body `{"directory": <the repo's
laptop primary>, "title": <names the queue task and issue>,
"model": {"id": <route model>, "providerID": "opencode-route"},
"agent": "build"}`. The model goes in the `model` OBJECT --
there is no `modelID` field; a create body with one is rejected
before any session exists (2026-11-02, task 5857: the fire's one
launch window closed while the request shape was corrected).
From the moment creation succeeds, the session id is KNOWN and
the steps below are ordered so it can never be lost.
c. BIND AT LAUNCH, immediately after creation and BEFORE sending
Expand Down
Loading