Repository navigation
Description
Item 2 of 11 in the Crews: organic teamwork milestone. Ships with #677.
The problem
Different models have different habits about when they message their crewmates. In my live data, GPT 6 seats send about 3 messages per turn: they post updates while they work. Claude seats send about 1 per turn, usually at the end. Nobody told them to do either. Today's standing guidance is one soft line ("grouped into one message rather than sent as each one happens"), and each model reads it its own way.
The result is that the same crew behaves differently depending on which models are in the seats, and the chatty senders feed the queue pile-ups in #677.
Where this sits
#677 makes the receiving end handle any volume. This issue makes the sending end consistent across models, so there's less to handle in the first place. Once the notepad (#683) exists, this rule gets one more line pointing progress there. That rewrite is part of #683, not this issue.
Definition
The docs PR on j5/crew-teamwork-docs writes the end state into the definitions, so read these first; this issue builds to them. Crews AC27. Its end state includes "put progress on the notepad", which #683 adds.
What we already have
- Standing instructions every J5 agent gets:
packages/provider-core/src/j5/orchestrationInstructions.ts. The crew coordination bullet is around line 24. - The crew facts every seat gets on its first turn:
spawnFirstTurnTextinapps/server/src/j5/a2a/spawnIds.ts(crew context block at line 126). - The seat's "ask your Captain" rule:
apps/server/src/j5/a2a/crewSeatQuestions.ts. It's the pattern for a short standing rule aimed at seats. - The
j5_send_messagetool description inapps/server/src/j5/a2a/mcp/tools.ts, and its doc indocs/j5/product/a2a/agent-tools.md.
Proposal
One rule, the same text for every provider, written once and used in the standing instructions, the seat's first turn, and the j5_send_message description:
Message a teammate only when: you're blocked and need them, they need to act on something now, or you're done. Put everything you have for that person into one message. Don't send progress updates; nobody needs to act on them.
Keep it short. It's guidance, and the platform never refuses a send over it.
Acceptance criteria
- The rule lives in one place in code, and the standing instructions, the crew context in a seat's first turn, and the
j5_send_messagedescription all use that same text. - The old "grouped into one message rather than sent as each one happens" line is replaced, not kept next to the new one.
- Nothing refuses, holds, or delays a send because of the rule.
- The quoted tool descriptions in
agent-tools.mdstay as shipped until the code changes them, so this PR updates the shipped description and its quoted copy together (EnvelopeFormatter.test.tscompares thej5_send_messageone). Crews.md already carries the rule. - A live test (
j5-live-test) with one Codex seat and one Claude seat on the same small task shows both sending at blockers and at the end, not after every step. Put the per-seat message counts in the PR.
Out of scope
- Any enforcement or rate limit.
- Pointing progress at the notepad (Crews: a shared crew notepad (Captain plan page plus one page per seat) #683 does that).
Dependencies
- None blocking. Ship together with Crews: a busy agent reads every message that arrived in one catch-up turn #677.
- Crews: a shared crew notepad (Captain plan page plus one page per seat) #683 is blocked on this, since it extends the rule.
Activity