Skip to content

Mention a playbook with @playbook: in the composer #320

Closed

Description

@bryantderosier

My rule: @playbook:<name> in a message means "use this playbook". On its own, the agent starts that playbook in the thread, like /playbook <name>. Combined with a crew ask, the Crew is built from it and follows it (#323).

Where it stands today:

  • @persona: has a shared detector (packages/shared/src/j5/agentMention.ts), composer pickers on web (apps/web/src/j5/agents/useAgentMentionPicker.ts, wired in ChatComposer.tsx) and mobile (apps/mobile/src/j5/agents/useAgentMentionPicker.ts, wired in use-composer-command-menu.ts), and server guidance (AGENT_INVOCATION_INSTRUCTIONS).
  • There is no @playbook: anything.
  • /playbook <name> followed by more text keeps the name intact, and playbook names are kebab-case (both landed in fix(playbooks): kebab-case names so /playbook keeps the name when text follows it #379).

What should change:

Tests to ship:

  • detection and replacement for @playbook: names, including trailing punctuation
  • the mobile command-menu test covers the new trigger

Done when every client can insert @playbook:<name> from a picker and an agent that receives it knows exactly which playbook is meant.

Can start now, on top of #314's branch: the detector, pickers, and docs don't depend on #319. The server guidance names playbook_read, so merge this after #319, or stack it on #319.

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
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