Skip to content

"Create a crew … use @playbook:name" builds a playbook-shaped Crew #323

Closed

Description

@bryantderosier

This is the headline for the milestone. It is done when someone sends this in any thread and gets a playbook-shaped Crew:

ok, lets create a crew to implement what we have discussed. Please use @Playbook:[playbook name] for this work.

My rule: the agent that receives that message becomes the Captain and does, in order:

  1. Reads the named playbook with playbook_read: every step's prompt and persona, and any warning.
  2. Calls list_personas and matches each step's persona to an available saved persona.
  3. Staffs one seat per distinct persona the playbook names. A seat owns every step that names its persona. Steps without a persona go to the seat that fits them best, or stay with the Captain.
  4. When a named persona is missing or disabled, proposes a custom seat in its place, with instructions drawn from the steps it will own, and says so in the seat's reason. The roster card flags the swap. It does not stop and ask.
  5. Writes the brief from "what we have discussed": the conversation so far, plus the playbook's title and description.
  6. Calls propose_crew with playbook and per-seat steps.
  7. After approval, starts the run with playbook_start, passing the Crew's crew_instance_id from the launch notice, and drives it as the Captain (The Captain runs a Crew's playbook and each seat receives its steps #322).

Where it stands today:

  • None of this is instructed. The crew instructions (T3OrchestrationInstructions.ts, J5_PROPOSE_CREW_DESCRIPTION in apps/server/src/j5/a2a/mcp/tools.ts) never mention playbooks, and PLAYBOOK_INSTRUCTIONS says steps "do not … spawn agents". Whether a Captain reads a mentioned playbook, or matches personas, is up to the model.

What should change:

  • Instructions: add the steps above to PLAYBOOK_INSTRUCTIONS (apps/server/src/j5/playbooks/instructions.ts) and J5_PROPOSE_CREW_DESCRIPTION (apps/server/src/j5/a2a/mcp/tools.ts). My call is that this text stays in J5 files: do not edit the Crew bullet inside the upstream apps/server/src/provider/T3OrchestrationInstructions.ts, which already interpolates PLAYBOOK_INSTRUCTIONS. Replace the line saying steps "do not … spawn agents" with the Crew-shaped exception. Keep it short enough that both Claude and Codex follow it.
  • Refusals the Captain can act on: if the playbook is missing or invalid, the Captain says so in its own reply, naming the playbook and the error, and stops instead of proposing a Crew without it. No Inbox ask: the Captain is the thread the person watches (Jackson's ruling on feat(crews): a crew request that mentions @playbook: builds the playbook's Crew #387, 2026-09-30).
  • Product docs: docs/j5/product/features/crews.md and playbooks.md get a scenario for this flow, with the AC links, and a History entry for my 1A/2A/3A rulings (Captain owns the run, persona per step, the Crew records its playbook).
  • User docs: docs/user/playbooks.md "With a Crew" shows the example prompt.

Acceptance criteria:

  • The headline prompt, with a playbook whose steps name two available personas and one step with no persona, produces a roster card with two persona seats, each owning its steps, the unassigned step placed, and "Follows playbook" shown.
  • The same prompt, where one named persona is disabled, produces a custom seat for its steps, flagged as a swap.
  • After approval, the Captain starts the run and the first step reaches its owning seat.
  • The prompt works from a Claude Captain and a Codex Captain.
  • A crew request that doesn't ask to use a playbook behaves exactly as today. Asking for one by name in plain words counts the same as @playbook:; a playbook merely named in passing, or seen in quoted text, code, files, or tool results, doesn't (my ruling (a) on feat(crews): a crew request that mentions @playbook: builds the playbook's Crew #387, 2026-09-30).

Tests to ship:

  • server test: given the tool calls above, a Captain's proposal decodes and launches with the right ownership (the model's choices are not what's under test)
  • an integrated pass of the headline prompt in a real client against seeded personas and a seeded playbook, run once after the other issues land, with screenshots on the PR

Depends on #319, #320, #321, and #322.

Activity

  1. added this to the Crew playbooks milestone on Sep 25, 2026
  2. added
    size:M
    on Sep 25, 2026
  3. added a commit that references this issue on Sep 30, 2026
    960a745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

size:M

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions