patchcord 0.5.26 → 0.5.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -74,6 +74,8 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
74
74
 
75
75
  ## Receiving workflow
76
76
 
77
+ **Check the age first.** Every pending message shows a relative timestamp like `(3h ago)` or `(45d ago)`. For action requests older than 7 days, **do not execute** — ask the human first. Old tasks are usually already done, superseded, or no longer wanted. Ack-style messages and pure FYIs can still be silently resolved at any age.
78
+
77
79
  1. Read the message from `inbox()` or `wait_for_message()`. Check `message.thread` / `message.thread_id` if present.
78
80
  2. Do the work - use real code, real files, real results from your project
79
81
  3. Reply with the right flag:
@@ -85,6 +87,8 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
85
87
 
86
88
  When you have multiple pending messages, prioritize by urgency. Use `defer=true` for tasks you'll do later — if you reply without doing the work and don't defer, the message vanishes from your inbox and you will never remember to do it.
87
89
 
90
+ **Prune stale deferred messages.** Deferred messages persist across sessions and consume context on every inbox(). If you see a deferred message that looks outdated (old timestamp, work probably already done, requirements likely changed, sender moved on), ask the human: *"This deferred message from [sender] is [Xd] old — should I resolve it?"* On confirmation, `reply(id, resolve=true)` clears it. Don't unilaterally resolve a deferred task — but don't let dead weight accumulate either.
91
+
88
92
  ## Cross-user messaging (Gate)
89
93
 
90
94
  To message a user outside your namespace, use `@username` as the to_agent. Example: `send_message("@maria", "hello")`. The message goes through their Gate - connection approval and guardrails apply. If the connection isn't approved yet, your message is held pending their approval (cap 5, 7-day TTL).
@@ -84,6 +84,8 @@ After sending to an offline agent, tell the human: "Message sent. [agent] is not
84
84
 
85
85
  ## Receiving workflow
86
86
 
87
+ **Check the age first.** Every pending message shows a relative timestamp like `(3h ago)` or `(45d ago)`. For action requests older than 7 days, **do not execute** — ask the human first. Old tasks are usually already done, superseded, or no longer wanted. Ack-style messages and pure FYIs can still be silently resolved at any age.
88
+
87
89
  1. Read messages from inbox(). Check `message.thread` / `message.thread_id` if present.
88
90
  2. Check the context tag - is this for your chat?
89
91
  3. If yes: do the work, then reply with the right flag:
@@ -95,6 +97,8 @@ After sending to an offline agent, tell the human: "Message sent. [agent] is not
95
97
 
96
98
  When you have multiple pending messages, prioritize by urgency. Use `defer=true` for tasks you'll do later — if you reply without doing the work and don't defer, the message vanishes from your inbox and you will never remember to do it.
97
99
 
100
+ **Prune stale deferred messages.** Deferred messages persist across sessions and consume context on every inbox(). If you see a deferred message that looks outdated (old timestamp, work probably already done, requirements likely changed, sender moved on), ask the human: *"This deferred message from [sender] is [Xd] old — should I resolve it?"* On confirmation, `reply(id, resolve=true)` clears it. Don't unilaterally resolve a deferred task — but don't let dead weight accumulate either.
101
+
98
102
  ## File sharing
99
103
 
100
104
  As a web agent, you CANNOT PUT to presigned URLs (egress is blocked). Two options:
@@ -61,6 +61,8 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
61
61
 
62
62
  ## Receiving (inbox has messages)
63
63
 
64
+ **Check the age first.** Every pending message shows a relative timestamp like `(3h ago)` or `(45d ago)`. For action requests older than 7 days, **do not execute the task** — ask the human first. Old tasks are usually already done, superseded, or no longer wanted. Confirmation cost (one short question) is far less than cost of running a stale plan. Ack-style messages and pure FYIs can still be silently resolved at any age.
65
+
64
66
  1. Read the message. If it belongs to a thread, `message.thread` and `message.thread_id` will be present.
65
67
  2. Do the work described in the message - using your project's actual code, real files, real lines
66
68
  3. Reply with what you did, choosing the right flag:
@@ -73,6 +75,8 @@ If send_message fails with a send gate error: call inbox(), reply to or resolve
73
75
 
74
76
  When you have multiple pending messages, prioritize by urgency. Use `defer=true` for tasks you'll do later — if you reply without doing the work and don't defer, the message vanishes from your inbox and you will never remember to do it.
75
77
 
78
+ **Prune stale deferred messages.** Deferred messages persist across sessions and consume context on every inbox(). If you see a deferred message that looks outdated (old timestamp, work probably already done elsewhere, requirements likely changed, sender moved on), ask the human: *"This deferred message from [sender] is [Xd] old — should I resolve it?"* On confirmation, `reply(id, resolve=true)` clears it. Don't unilaterally resolve a deferred task — but don't let dead weight accumulate either.
79
+
76
80
  ## Cross-user messaging (Gate)
77
81
 
78
82
  To message a user outside your namespace, use `@username` as the to_agent. Example: `send_message("@maria", "hello")`. The message goes through their Gate - connection approval and guardrails apply. If the connection isn't approved yet, your message is held pending their approval (cap 5, 7-day TTL).