patchcord 0.3.96 → 0.3.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/per-project-skills/codex/SKILL.md +20 -8
- package/per-project-skills/web/SKILL.md +19 -8
- package/skills/patchcord/SKILL.md +16 -5
- package/skills/patchcord-wait/SKILL.md +2 -2
- /package/commands/{patchcord.toml → inbox.toml} +0 -0
- /package/commands/{patchcord-wait.toml → wait.toml} +0 -0
package/package.json
CHANGED
|
@@ -15,12 +15,12 @@ project's MCP config.
|
|
|
15
15
|
|
|
16
16
|
## Tools available
|
|
17
17
|
|
|
18
|
-
- `inbox(all_agents?)` - read pending messages, current identity, and recently active agents. `all_agents=true` includes inactive agents. Presence tells you whether to wait for a reply after sending, not whether to send.
|
|
19
|
-
- `send_message(to_agent, content)` - send a message. Comma-separated for multiple: `send_message("backend, frontend", "hello")`. Use `@username` for cross-user Gate messaging. Messages support up to 50,000 characters - send full content, specs, and code as-is. Never summarize or truncate.
|
|
20
|
-
- `reply(message_id, content?, defer?, resolve?)` - reply to a received message. `defer=true` keeps the original visible in inbox for later (survives context compaction). `resolve=true`
|
|
18
|
+
- `inbox(all_agents?)` - read pending messages, current identity, and recently active agents. `all_agents=true` includes inactive agents. Returns a `groups` list (messages grouped by thread) alongside the legacy `pending` flat list. Presence tells you whether to wait for a reply after sending, not whether to send.
|
|
19
|
+
- `send_message(to_agent, content, thread?)` - send a message. Comma-separated for multiple: `send_message("backend, frontend", "hello")`. Use `@username` for cross-user Gate messaging. `thread` is an optional slug to start or join a named thread: `send_message("backend", "...", thread="auth-migration")`. Messages support up to 50,000 characters - send full content, specs, and code as-is. Never summarize or truncate.
|
|
20
|
+
- `reply(message_id, content?, defer?, resolve?)` - reply to a received message. Auto-inherits the thread of the original. `defer=true` keeps the original visible in inbox for later (survives context compaction). `resolve=true` closes the thread — stamps `thread_resolved_at` and notifies sender. Content is optional: use `reply(message_id, resolve=true)` to silently close without sending.
|
|
21
21
|
- `wait_for_message(timeout_seconds?)` - block until incoming message arrives. Default 5 minutes. Known to error intermittently - if it fails, poll inbox() every 10-15 seconds as fallback.
|
|
22
22
|
- `attachment(...)` - upload, download, or relay files between agents (see File sharing below)
|
|
23
|
-
- `recall(limit?, from_agent?)` - view recent message history including already-read messages. `from_agent` filters by sender. For debugging only, not routine use.
|
|
23
|
+
- `recall(limit?, from_agent?, thread_id?)` - view recent message history including already-read messages. `from_agent` filters by sender. `thread_id` filters to a specific thread. For debugging only, not routine use.
|
|
24
24
|
- `unsend(message_id)` - take back a message before the recipient reads it
|
|
25
25
|
|
|
26
26
|
## Do the work, never just acknowledge
|
|
@@ -49,10 +49,21 @@ If there are pending actionable messages:
|
|
|
49
49
|
|
|
50
50
|
Do not ask the user for permission to reply unless the requested action is destructive or requires secrets you do not have.
|
|
51
51
|
|
|
52
|
+
## Threads
|
|
53
|
+
|
|
54
|
+
Named threads group related messages between a pair of agents. Use them for multi-turn tasks that need their own context.
|
|
55
|
+
|
|
56
|
+
- **Start**: `send_message("backend", "track this here", thread="deploy-review")`
|
|
57
|
+
- **Reply stays in thread automatically** — `reply()` inherits `thread_id` from the message you're replying to.
|
|
58
|
+
- **Close**: `reply(message_id, "done", resolve=true)` — closes the thread and notifies sender.
|
|
59
|
+
- **Filter history**: `recall(thread_id="<uuid>")` — only messages in that thread.
|
|
60
|
+
|
|
61
|
+
`inbox()` `groups` field clusters pending messages by thread. Each group: `{ thread_id, thread_title, messages }`. `thread_id: null` = pair-level.
|
|
62
|
+
|
|
52
63
|
## Sending workflow
|
|
53
64
|
|
|
54
65
|
1. `inbox()` - clear pending messages that block outbound sends. Note who's online (determines whether to wait after sending).
|
|
55
|
-
2. `send_message("agent", "specific question with paths and context")` - or `"agent1, agent2"` for multiple, or `"@username"` for cross-user Gate messaging.
|
|
66
|
+
2. `send_message("agent", "specific question with paths and context")` - or `"agent1, agent2"` for multiple, or `"@username"` for cross-user Gate messaging. Add `thread="slug"` to group messages in a named thread.
|
|
56
67
|
3. If recipient is online: `wait_for_message()` - stay responsive for the response. If offline: skip the wait, tell the human the message is queued.
|
|
57
68
|
|
|
58
69
|
Always send regardless of online/offline status. Messages are stored and delivered when the recipient checks inbox. Never refuse to send because an agent appears offline.
|
|
@@ -63,11 +74,12 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
|
|
|
63
74
|
|
|
64
75
|
## Receiving workflow
|
|
65
76
|
|
|
66
|
-
1. Read the message from `inbox()` or `wait_for_message()`
|
|
77
|
+
1. Read the message from `inbox()` or `wait_for_message()`. Check `message.thread` / `message.thread_id` if present.
|
|
67
78
|
2. Do the work - use real code, real files, real results from your project
|
|
68
79
|
3. Reply with the right flag:
|
|
69
|
-
- `reply(message_id, "done: [details]")` — work done, sender might follow up
|
|
70
|
-
- `reply(message_id, "done: [details]", resolve=true)` — work done,
|
|
80
|
+
- `reply(message_id, "done: [details]")` — work done, sender might follow up. Thread auto-inherited.
|
|
81
|
+
- `reply(message_id, "done: [details]", resolve=true)` — work done, thread closed.
|
|
82
|
+
- `reply(message_id, resolve=true)` — silently close without sending anything.
|
|
71
83
|
- `reply(message_id, "ack, prioritizing [other task] first", defer=true)` — acknowledged but work not done yet. Message stays in your inbox as a reminder.
|
|
72
84
|
4. If sender is online: `wait_for_message()` for follow-ups
|
|
73
85
|
|
|
@@ -11,12 +11,12 @@ You are connected to Patchcord, a message bus that lets you talk to AI agents on
|
|
|
11
11
|
|
|
12
12
|
## Tools
|
|
13
13
|
|
|
14
|
-
- **inbox(all_agents?)** - read pending messages + recent activity. `all_agents=true` includes inactive agents. Presence tells you whether to wait for a reply, not whether to send.
|
|
15
|
-
- **send_message(to_agent, content)** - send a message. Comma-separated for multiple: `send_message("backend, frontend", "hello")`. Supports `@username` for cross-user Gate messaging. Up to 50,000 characters
|
|
16
|
-
- **reply(message_id, content?, defer?, resolve?)** - reply to a received message. `defer=true` keeps message visible in inbox (survives context compaction). `resolve=true`
|
|
14
|
+
- **inbox(all_agents?)** - read pending messages + recent activity. Returns a `groups` list (messages grouped by thread) alongside the legacy `pending` flat list. `all_agents=true` includes inactive agents. Presence tells you whether to wait for a reply, not whether to send.
|
|
15
|
+
- **send_message(to_agent, content, thread?)** - send a message. Comma-separated for multiple: `send_message("backend, frontend", "hello")`. Supports `@username` for cross-user Gate messaging. `thread` slug starts or joins a named thread: `send_message("backend", "...", thread="deploy-review")`. Up to 50,000 characters — never summarize.
|
|
16
|
+
- **reply(message_id, content?, defer?, resolve?)** - reply to a received message. Auto-inherits thread from the original. `defer=true` keeps message visible in inbox (survives context compaction). `resolve=true` closes the thread — stamps `thread_resolved_at` and notifies sender. Content optional: `reply(message_id, resolve=true)` to silently close.
|
|
17
17
|
- **wait_for_message(timeout_seconds?)** - block until incoming message arrives. Default 300s. Known to error intermittently - if it fails, poll inbox() in a loop as fallback.
|
|
18
18
|
- **attachment(...)** - file operations (see File sharing section below)
|
|
19
|
-
- **recall(limit?, from_agent?)** - view recent message history including already-read messages.
|
|
19
|
+
- **recall(limit?, from_agent?, thread_id?)** - view recent message history including already-read messages. `from_agent` filters by sender. `thread_id` filters to a specific thread. Debugging only.
|
|
20
20
|
- **unsend(message_id)** - take back a message before recipient reads it.
|
|
21
21
|
|
|
22
22
|
## Chat identification
|
|
@@ -61,10 +61,21 @@ Use the dominant topic of your current conversation as the tag. Keep it short (1
|
|
|
61
61
|
|
|
62
62
|
10. **MCP tools are cached at session start.** New tools deployed after your session began are invisible until you open a new chat. If a tool you expect is missing, this is why.
|
|
63
63
|
|
|
64
|
+
## Threads
|
|
65
|
+
|
|
66
|
+
Named threads group related messages. Use them for multi-turn tasks that need their own context.
|
|
67
|
+
|
|
68
|
+
- **Start**: `send_message("backend", "...", thread="auth-migration")`
|
|
69
|
+
- **Reply stays in thread automatically** — `reply()` inherits the thread from the original.
|
|
70
|
+
- **Close**: `reply(message_id, "done", resolve=true)` — closes thread, notifies sender.
|
|
71
|
+
- **Filter history**: `recall(thread_id="<uuid>")` — only that thread's messages.
|
|
72
|
+
|
|
73
|
+
`inbox()` `groups` field clusters pending messages by thread: `{ thread_id, thread_title, messages }`. `thread_id: null` = pair-level (no thread).
|
|
74
|
+
|
|
64
75
|
## Sending workflow
|
|
65
76
|
|
|
66
77
|
1. inbox() - clear pending messages that block outbound sends. Note who's online (determines whether to wait after sending).
|
|
67
|
-
2. send_message("agent_name", "[your-chat-tag] your question with context") - or "agent1, agent2" for multiple, or "@username" for cross-user
|
|
78
|
+
2. send_message("agent_name", "[your-chat-tag] your question with context") - or "agent1, agent2" for multiple, or "@username" for cross-user. Add `thread="slug"` to group in a named thread.
|
|
68
79
|
3. If recipient is online: wait_for_message() - block until response arrives. If offline: skip wait, tell the human the message is queued.
|
|
69
80
|
|
|
70
81
|
ALWAYS send regardless of online/offline status. Messages are stored and delivered when the recipient checks inbox. Never refuse to send because an agent appears offline.
|
|
@@ -73,11 +84,11 @@ After sending to an offline agent, tell the human: "Message sent. [agent] is not
|
|
|
73
84
|
|
|
74
85
|
## Receiving workflow
|
|
75
86
|
|
|
76
|
-
1. Read messages from inbox()
|
|
87
|
+
1. Read messages from inbox(). Check `message.thread` / `message.thread_id` if present.
|
|
77
88
|
2. Check the context tag - is this for your chat?
|
|
78
89
|
3. If yes: do the work, then reply with the right flag:
|
|
79
|
-
- `reply(message_id, "[tag] done: [details]")` — work done,
|
|
80
|
-
- `reply(message_id, "[tag] done", resolve=true)` — work done,
|
|
90
|
+
- `reply(message_id, "[tag] done: [details]")` — work done, thread auto-inherited
|
|
91
|
+
- `reply(message_id, "[tag] done", resolve=true)` — work done, thread closed
|
|
81
92
|
- `reply(message_id, "[tag] ack, will do after [other task]", defer=true)` — acknowledged but work not done yet. Message stays in inbox.
|
|
82
93
|
4. If no: reply(message_id, "For [other-tag] chat", defer=true)
|
|
83
94
|
5. wait_for_message() - stay responsive for follow-ups
|
|
@@ -39,7 +39,7 @@ If there are pending messages, reply to all of them immediately. Do not ask the
|
|
|
39
39
|
## Sending
|
|
40
40
|
|
|
41
41
|
1. inbox() - clear any pending messages that block outbound sends. Note who's online (determines whether to wait after sending, not whether to send).
|
|
42
|
-
2. send_message("agent_name", "specific question with file paths and context") - or "agent1, agent2" for multiple recipients. Use `@username` for cross-user Gate messaging.
|
|
42
|
+
2. send_message("agent_name", "specific question with file paths and context") - or "agent1, agent2" for multiple recipients. Use `@username` for cross-user Gate messaging. To start or join a named thread: `send_message("frontend", "content", thread="auth-migration")`.
|
|
43
43
|
3. If recipient is online: wait_for_message() - block until response arrives. Use the default timeout (300s) - you get the message instantly when it arrives, not after the timeout. The other agent needs time to do the work and reply. Never shorten the timeout. If offline: skip the wait, tell the human the message is queued.
|
|
44
44
|
|
|
45
45
|
Always send regardless of whether the recipient appears online or offline. Messages are stored and delivered when the recipient checks inbox. "Offline" means not recently active - not that they can't receive messages.
|
|
@@ -50,11 +50,11 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
|
|
|
50
50
|
|
|
51
51
|
## Receiving (inbox has messages)
|
|
52
52
|
|
|
53
|
-
1. Read the message
|
|
53
|
+
1. Read the message. If it belongs to a thread, `message.thread` and `message.thread_id` will be present.
|
|
54
54
|
2. Do the work described in the message - using your project's actual code, real files, real lines
|
|
55
55
|
3. Reply with what you did, choosing the right flag:
|
|
56
|
-
- `reply(message_id, "done: [details]")` — work done, sender might follow up
|
|
57
|
-
- `reply(message_id, "done: [details]", resolve=true)` — work done,
|
|
56
|
+
- `reply(message_id, "done: [details]")` — work done, sender might follow up. Thread is auto-inherited.
|
|
57
|
+
- `reply(message_id, "done: [details]", resolve=true)` — work done, thread closed. Stamps `thread_resolved_at` and notifies sender.
|
|
58
58
|
- `reply(message_id, resolve=true)` — silently close a thread without sending anything (e.g. clearing misfired messages)
|
|
59
59
|
- `reply(message_id, "ack, prioritizing [other task] first", defer=true)` — you acknowledged but haven't done the work yet. The message stays in your inbox as a reminder.
|
|
60
60
|
4. wait_for_message() if the sender is online - stay responsive for follow-ups
|
|
@@ -97,9 +97,20 @@ Use the path from the sender's message.
|
|
|
97
97
|
|
|
98
98
|
Send the returned `path` to the other agent in your message so they can download it.
|
|
99
99
|
|
|
100
|
+
## Threads
|
|
101
|
+
|
|
102
|
+
Named threads group related messages between a pair of agents. Use them for multi-turn tasks that need their own context (e.g. "auth-migration", "deploy-review").
|
|
103
|
+
|
|
104
|
+
- **Start a thread**: `send_message("backend", "let's track this here", thread="auth-migration")`
|
|
105
|
+
- **Reply stays in thread automatically**: `reply()` inherits `thread_id` from the message you're replying to — no extra param needed.
|
|
106
|
+
- **Close a thread**: `reply(message_id, "done", resolve=true)` — stamps `thread_resolved_at` and notifies sender.
|
|
107
|
+
- **View thread history**: `recall(thread_id="<uuid>")` — filters history to one thread.
|
|
108
|
+
|
|
109
|
+
`inbox()` returns a `groups` list alongside the legacy `pending` flat list. Each group has `thread_id`, `thread_title`, and `messages`. `thread_id: null` means pair-level (no thread). Read from `groups` for thread-aware handling.
|
|
110
|
+
|
|
100
111
|
## Other tools
|
|
101
112
|
|
|
102
|
-
- recall(limit=10, from_agent="") - view recent message history including already-read messages.
|
|
113
|
+
- recall(limit=10, from_agent="", thread_id="") - view recent message history including already-read messages. `from_agent` filters by sender. `thread_id` filters to a specific thread. For debugging only, not routine use.
|
|
103
114
|
- unsend(message_id) - take back a message before the recipient reads it.
|
|
104
115
|
|
|
105
116
|
## Rules
|
|
@@ -11,9 +11,9 @@ Enter listening mode. Call `wait_for_message()` to block until a message arrives
|
|
|
11
11
|
|
|
12
12
|
When a message arrives:
|
|
13
13
|
|
|
14
|
-
1. Read it
|
|
14
|
+
1. Read it — the tool returns from, content, and message_id. If it belongs to a thread, `thread` and `thread_id` will be set.
|
|
15
15
|
2. Do the work described in the message first. Update the file, write the code, fix the bug - whatever it asks.
|
|
16
|
-
3. Reply with what you did: `reply(message_id, "here's what I changed: [concrete details]")
|
|
16
|
+
3. Reply with what you did: `reply(message_id, "here's what I changed: [concrete details]")`. Thread is auto-inherited. Use `resolve=true` to close the thread when the task is fully done.
|
|
17
17
|
4. Tell the human who wrote and what you did about it
|
|
18
18
|
5. Call `wait_for_message()` again to keep listening
|
|
19
19
|
|
|
File without changes
|
|
File without changes
|