@creator-notes/cnotes 0.121.0 → 0.121.1
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/dist/lib/errors.js
CHANGED
|
@@ -220,6 +220,8 @@ const REASON_HINTS = {
|
|
|
220
220
|
builder_unknown: undefined,
|
|
221
221
|
not_the_reviewer: undefined,
|
|
222
222
|
prepare_needs_key: undefined,
|
|
223
|
+
// The sentence says the next round is a person's and how to hand it over.
|
|
224
|
+
agent_rounds: undefined,
|
|
223
225
|
// Review requests and note batches: the same key with a different body.
|
|
224
226
|
// Re-fetching changes nothing; the key is what has to change.
|
|
225
227
|
idempotency_key_reused: "That idempotency key already went with a different body. Use a new key for this one; to get the earlier result back, send exactly what was sent with that key.",
|
|
@@ -69,6 +69,11 @@ export function inPlaceStatusLines(s) {
|
|
|
69
69
|
else if (p.isReviewer && p.isOwner && p.status === "open" && p.message) {
|
|
70
70
|
out.push(`Another agent of yours, under its own key, may prepare the answer for you to give: cnotes draft prepare ${p.displayId} --accept|--send-back --note "<why>".`);
|
|
71
71
|
}
|
|
72
|
+
if (s.agentRounds && p.status === "open") {
|
|
73
|
+
out.push(s.agentRounds >= 3
|
|
74
|
+
? "Sent back three times between agents with nobody looking: the next send-back is a person's."
|
|
75
|
+
: `Sent back ${s.agentRounds} of 3 times between agents; after three, the next round goes to a person.`);
|
|
76
|
+
}
|
|
72
77
|
if (p.intent)
|
|
73
78
|
out.push(`Why: ${p.intent}`);
|
|
74
79
|
if (p.message) {
|
package/package.json
CHANGED
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -144,6 +144,7 @@ After you create a canvas or finish changing one, end your reply with its link,
|
|
|
144
144
|
| Using any other canvas command: read, add, edit, move, remove, edges, templates, milestones, digest | [references/canvas.md](references/canvas.md) |
|
|
145
145
|
| Running two agents at once, bracketing canvas edits, verifying attribution, reading the timeline | [references/operations.md](references/operations.md) |
|
|
146
146
|
| Reworking notes or a board other people read, or asked to draft | [references/drafts.md](references/drafts.md) |
|
|
147
|
+
| Another agent works in the same workspace: handing work over, reviewing another agent's proposal, overlaps, settling it, when to stop | [references/agents-together.md](references/agents-together.md) |
|
|
147
148
|
| Reviewing (propose the fix, or comment), addressing comments, requesting or answering a review, checking what teammates shared | [references/reviews-and-comments.md](references/reviews-and-comments.md) |
|
|
148
149
|
| Hitting exit `8`, or asked for another workspace | [references/billing.md](references/billing.md) |
|
|
149
150
|
| Planning focus blocks, handling images, setup, theme, config, or reporting a CLI problem | [references/more-commands.md](references/more-commands.md) |
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Working with other agents
|
|
2
|
+
|
|
3
|
+
Read this when another agent works in the same workspace as you: a second session of yours, a teammate's agent, or a bot in the same Slack, Teams or Discord channel as you. CreatorNotes is where you find each other's work, hand it over and settle it. A post in a Slack thread (or Teams, Discord, a GitHub comment) is not: some bots never see other bots' posts (Claude in Slack filters them out), and the next agent, in a terminal with no access to that thread, never sees it at all.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- [Have your own key](#have-your-own-key)
|
|
8
|
+
- [Start by reading what waits](#start-by-reading-what-waits)
|
|
9
|
+
- [Hand work over as a proposal](#hand-work-over-as-a-proposal)
|
|
10
|
+
- [Review another agent's proposal](#review-another-agents-proposal)
|
|
11
|
+
- [When two proposals overlap](#when-two-proposals-overlap)
|
|
12
|
+
- [Settle it in a note](#settle-it-in-a-note)
|
|
13
|
+
- [When to stop](#when-to-stop)
|
|
14
|
+
|
|
15
|
+
## Have your own key
|
|
16
|
+
|
|
17
|
+
CreatorNotes tells agents apart by key. The agent that built a proposal is its key: that key can never prepare or give the answer to it. Two agents on one login key count as one agent, so a reviewer on the builder's key is refused.
|
|
18
|
+
|
|
19
|
+
- An agent you start gets a named key from you: `cnotes auth keys create --name "Codex (Slack)" --expires 8h -w <workspace> -q`, handed over as `CNOTES_TOKEN`. Its runs show the name in History ("Deniss via Codex (Slack)").
|
|
20
|
+
- Two agents on one machine each set `CNOTES_TOKEN`, and each pins its own proposal with `CNOTES_PROPOSAL=<id>` (or `none` to work live). A proposal id saved on another machine works too.
|
|
21
|
+
|
|
22
|
+
## Start by reading what waits
|
|
23
|
+
|
|
24
|
+
`cnotes operations begin` lists, before you write anything:
|
|
25
|
+
|
|
26
|
+
- **Waiting on you**: proposals asked of the person you act for, who built each ("built by you via Codex (Slack)"), whether another agent already prepared an answer, and which reword the same notes.
|
|
27
|
+
- **Your proposals that overlap another**: yours, not yet asked, that reword a note another open proposal also rewords.
|
|
28
|
+
|
|
29
|
+
With `-q` these lines go to stderr. Read them first: the work you were about to start may already be proposed, or already reviewed. You only ever see proposals your person could already see.
|
|
30
|
+
|
|
31
|
+
## Hand work over as a proposal
|
|
32
|
+
|
|
33
|
+
Hand another agent work as a proposal, never as a post in Slack or another channel outside CreatorNotes. Open it (`cnotes draft open "<name>" --intent "<the problem>"`), write into it, then ask a person: `cnotes draft ask --reviewer <email|me> --headline "..."`. The person asked is always a person; their agents review it for them. Then stop. Details: [drafts.md](drafts.md).
|
|
34
|
+
|
|
35
|
+
To point another agent at anything else (a finding, a note to check), write it in a note and give the display id: "my results are in OBSERVATION-123". In a Slack thread, post that id, never the finding itself.
|
|
36
|
+
|
|
37
|
+
## Review another agent's proposal
|
|
38
|
+
|
|
39
|
+
What you may do depends on whose proposal it is:
|
|
40
|
+
|
|
41
|
+
- **Built by another agent of your own person:** you cannot accept or send it back; your person gives every answer to their own agents' work. Prepare the answer instead, after you read it (`cnotes draft status <PROPOSAL-n>` and its rewordings): `cnotes draft prepare <PROPOSAL-n> --accept --note "<why>"` or `--send-back --note "<what should change>"`. Your person sees "<your key's name> recommends landing it" with your line and gives it with one tap. A later write into the proposal clears what you prepared.
|
|
42
|
+
- **Built by a teammate's agent and asked of your person:** you may accept it or send it back under your person's key, as they would: `cnotes draft accept <PROPOSAL-n> --note "<why>"` or `cnotes draft send-back <PROPOSAL-n> --note "<what>"`. Decide only when your person told you how; otherwise prepare.
|
|
43
|
+
|
|
44
|
+
## When two proposals overlap
|
|
45
|
+
|
|
46
|
+
`draft ask` prints "Overlaps: PROPOSAL-7 ... also rewords DECISION-1, built by ...", `draft status` lists it as a `proposal-overlap` warning, and `operations begin` marks it. It never blocks. Read the other one and decide which holds:
|
|
47
|
+
|
|
48
|
+
- **They agree:** say in your ask which should land first.
|
|
49
|
+
- **Yours repeats it:** fold what is new into the other, or dismiss yours.
|
|
50
|
+
- **They conflict:** write a Question for the person naming both, with your lean, and stop.
|
|
51
|
+
|
|
52
|
+
## Settle it in a note
|
|
53
|
+
|
|
54
|
+
When the agents agree on something, one agent writes it down; the others check it. Say "I'll write it" first (in the proposal's ask, a canvas comment, or the Slack thread you share) so two agents do not write it twice.
|
|
55
|
+
|
|
56
|
+
- An outcome is a **Decision** that cites what it rests on (the proposals, the findings) with typed links. It counts as agreed only when the person versions it.
|
|
57
|
+
- A choice only the person can make is a **Question** with the options and your lean.
|
|
58
|
+
- The other agent reads the note and fixes it with an edit, never a second note.
|
|
59
|
+
|
|
60
|
+
## When to stop
|
|
61
|
+
|
|
62
|
+
- **Three send-backs between agents is the cap.** Between two people, after three send-backs made by agents with no person in between, the fourth is refused (`agent_rounds`). Write a Question for your person that names what the two sides disagree on, with your lean, and stop. A person sending it back or asking for it in the browser starts the count again. Accepting stays open.
|
|
63
|
+
- **Ask, then stop.** After `draft ask` or `draft prepare`, your part is done until a person answers.
|
|
64
|
+
- **Nothing lands without a person** you act for or under their key; never press Accept in a browser for work you built.
|