Files

235 lines
6.7 KiB
JSON

{
"schema": 1,
"id": "handoff",
"name": "Handoff",
"version": "1.1.1",
"description": "Continue a conversation in a new one on another model, provider, harness or machine, from a brief — linked both ways (Continued from / Continued in).",
"category": "agents",
"icon": "icon.svg",
"color": "#515d8f",
"author": "gabrielvidal",
"capabilities": [
"conversations.read",
"conversations.send",
"runs.start",
"models.read",
"conversations.data"
],
"skill": {
"dir": "skill",
"name": "handoff"
},
"settings": {
"subtitle": "Carry a conversation over to another model"
},
"ui": {
"menuItems": [
{
"id": "handoff",
"where": "conversation.menu",
"label": "Hand off…",
"icon": "arrow-right-left",
"html": "ui/dialog.html",
"height": 300,
"title": "Hand off"
}
],
"slots": [
{
"id": "from",
"where": "conversation.threadHeader",
"html": "ui/from.html",
"reuseFrame": true,
"height": 40,
"label": "Continued from",
"vis": {
"key": "banners",
"label": "Handoffs",
"hint": "banners linking a conversation handed off to another model and the one that continues it"
}
},
{
"id": "to",
"where": "conversation.threadEnd",
"html": "ui/to.html",
"query": {"action": "peek", "payload": {"sessionId": "$sessionId"}},
"reuseFrame": true,
"height": 40,
"label": "Continued in",
"vis": {
"key": "banners",
"label": "Handoffs",
"hint": "banners linking a conversation handed off to another model and the one that continues it"
}
}
]
},
"actions": {
"link": {
"script": "handlers/link.py",
"timeoutSec": 30,
"ownerOnly": true,
"description": "Record a handoff: the new conversation continues the source (both ends stamped)"
},
"handoff": {
"script": "handlers/handoff.py",
"timeoutSec": 200,
"ownerOnly": true,
"description": "Hand a conversation off: warm (it writes its own brief) or cold (Haiku writes it from the transcript)"
},
"models": {
"script": "handlers/models.py",
"timeoutSec": 30,
"readOnly": true,
"ownerOnly": true,
"description": "The models to hand off to, and the ★ shortlist"
},
"peek": {
"script": "handlers/peek.py",
"timeoutSec": 20,
"readOnly": true,
"ownerOnly": true,
"description": "One conversation's id, title and state (the banners' live read)"
},
"links": {
"script": "handlers/links.py",
"timeoutSec": 30,
"readOnly": true,
"ownerOnly": true,
"description": "A conversation's handoff links: the one it continues and the one it was handed to"
}
},
"commands": {
"start": {
"action": "handoff",
"summary": "Hand a conversation off to another model, harness or machine: it writes its own brief (warm) or Haiku writes it from the transcript (cold)",
"description": "The conversation menu's Hand off… as a command. warm sends the source the handoff skill's turn (a Claude Code conversation only); cold starts a Haiku writer on the lab that reads the transcript; auto (the default) picks warm for a Claude Code conversation, else cold. Either way the new conversation shows up linked both ways a minute later; this answers the session now writing the brief.",
"args": [
{
"name": "id",
"positional": true,
"required": true,
"help": "The conversation to hand off: a conversation or session id."
},
{
"name": "model",
"required": true,
"help": "Where it goes: a model key, alias or id (ai-agent models), e.g. gpt-6-sol, sonnet, 'qwen local'."
},
{
"name": "mode",
"enum": [
"auto",
"warm",
"cold"
],
"default": "auto",
"help": "Who writes the brief: warm = the conversation itself, cold = Haiku from the transcript, auto = warm when it can."
},
{
"name": "harness",
"enum": [
"claude",
"pi",
"opencode",
"agy"
],
"help": "The harness (default: the one the model's preset picks)."
},
{
"name": "effort",
"enum": [
"low",
"medium",
"high",
"xhigh",
"max"
],
"help": "Its effort."
},
{
"name": "worker",
"help": "The machine it starts on (ai-agent workers; default: the lab)."
},
{
"name": "account",
"help": "The login it bills (default: the machine's ★)."
},
{
"name": "note",
"help": "A note for the next agent; it goes into the brief."
}
],
"mcp": true
},
"link": {
"action": "link",
"summary": "Record that conversation TO continues FROM (both ends linked: Continued from / Continued in) — for a successor started by hand",
"args": [
{
"name": "from",
"positional": true,
"required": true,
"help": "The source: a session or conversation id."
},
{
"name": "to",
"positional": true,
"required": true,
"help": "The new conversation's session id."
},
{
"name": "model",
"help": "The model it runs (shown on the banner)."
},
{
"name": "harness",
"enum": [
"claude",
"pi",
"opencode",
"agy"
],
"help": "Its harness."
},
{
"name": "worker",
"help": "The machine it runs on."
},
{
"name": "title",
"help": "Its title until it has synced."
}
],
"mcp": true
},
"links": {
"action": "links",
"summary": "A conversation's handoff links: the one it continues (from) and the newest one it was handed to (to)",
"args": [
{
"name": "id",
"positional": true,
"required": true,
"help": "A conversation or session id."
}
],
"mcp": true
},
"models": {
"action": "models",
"summary": "The models a conversation can be handed off to (★ = favourite)",
"output": {
"rows": "models",
"columns": [
"key",
"harness",
"label",
"favorite",
"unavailable"
]
}
}
}
}