Bounded multi-agent collaboration

/collaborate turns an ad-hoc group chat into a structured session: shared plan, review rounds, explicit approval, and execution with per-agent task ownership — without unbounded agent-to-agent chatter.

Why collaboration is first-class

Single-thread @mentions work for quick questions. Harder initiatives — refactors, incident response, security reviews — benefit from multiple specialists contributing to one artifact with clear phases. Neural Junkie encodes those phases so the hub can enforce budgets and surface status to humans.

Lifecycle at a glance

Execution workspace and confirmation

After /approve-plan, Neural Junkie creates ~/.neural-junkie/collaborations/<session-id>/ and lists your tasks in chat — but does not notify assignees until you confirm. In the desktop app, open the collaboration channel and use Continue (the app adds the sandbox as a workspace, calls the hub, and turns on workspace sharing for that channel). From chat you can run /ack-collab-workspace <collab-id> instead.

Until you confirm, /resume-plan will not re-send task prompts; after confirmation, suggested bash blocks can run with the sandbox as working directory when you click Run.

Slash commands you will see

Alongside /collaborate, the hub exposes follow-ups such as /approve-plan, /ack-collab-workspace, /revise-plan, /cancel-plan, /collab-status, and /resume-plan so you can steer the session without hunting buttons.

Optional smart routing (execution tasks)

When Collaboration smart routing is enabled in Settings, the hub may pick a different configured AI provider than an assignee’s default only for collaboration execution tasks — messages that carry task execution metadata after planning is approved and the workspace is acknowledged. The policy is a static heuristic (for example vision-capable providers, short local-friendly prompts, security-flavored keywords); it is not live dollar pricing. Planning turns, normal channel chat, and agents running out-of-process via cmd/agent are out of scope for this routing mode today.

How this differs from threads

Threads are lightweight side conversations attached to a message. Collaborations add session state, artifacts, and gated transitions — closer to a runbook than a reply chain.