From varie-workstation
Auto-routes messages to the best matching session in Workstation Manager using fuzzy matching on repo name, task ID, or keywords. For dispatching without knowing session IDs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/varie-workstation:routeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Auto-route a message to the best matching session.
Auto-route a message to the best matching session.
Context: This skill is designed for the Manager session inside Workstation. If Claude detects it's not in a Manager context (no workstation socket responding), inform the user:
This is the primary dispatch skill for orchestration. Use it when:
Important: /route finds an existing session or creates a first session on a repo. It does NOT create a second session on a repo that already has one — it routes to the existing one. To create an additional session on the same repo, use create-worker (see "Multiple Sessions on the Same Repo" below).
<query> - Search query to match a session (repo name, task ID, or keywords)<message> - The message to send to the matched session's terminalThe workstation uses fuzzy matching to find the best session:
When multiple sessions exist on the same repo, the query is also matched against task names. For example, if my-app has sessions "auth-refactor" and "bug-fixes", routing with query "bug-fixes" matches the correct one.
${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch route "<query>" "<message>"
Success response:
{
"status": "ok",
"received": "route",
"targetSessionId": "abc123"
}
Error responses:
{"status": "error", "message": "No session found matching: xyz"}
{"status": "error", "message": "Missing query in payload"}
On success:
Routed to session (matched: "<query>")
Session: abc123
Message sent: "<first 50 chars>..."
On no match:
No session found matching "<query>".
Available sessions:
- webapp (task: user_auth)
- my-project (task: orchestration)
Would you like me to:
1. Create a new session for this repo?
2. Try a different search query?
User: "Continue the character API work"
Manager interprets:
- Query: "character API" (from user's words)
- Message: "resume the work" (inferred intent)
Runs:
${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch route "character API" "resume the work"
Response to user:
Routed to webapp session.
Sent: "resume the work"
User: "What's happening with spine automation?"
Orchestrator:
${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch route "spine" "what's your current status?"
User: "Let's get back to the infra work"
Orchestrator:
${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch route "infra" "/work-resume"
A single project/repo can have multiple sessions running simultaneously (e.g., one for feature work, one for bug fixes). Here's how to handle this:
Routing to one of several sessions:
/route bug-fixes "run the test suite"Creating an additional session on an existing repo:
/route does not create a second session — it finds the existing one. To create another session, use create-worker:
${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch create-worker <repo> <repo-path> <task-name>
Always ask the user for a task name when creating an additional session. Without distinct task names, sessions are indistinguishable.
Example flow:
User: "I need another session on my-app for testing"
Manager: "I'll create a 'testing' session on my-app."
Run: ${CLAUDE_PLUGIN_ROOT}/scripts/workstation-dispatch create-worker my-app /path/to/my-app testing
→ "Created! Route to it with: /route testing <message>"
To find the repo path, check projects.yaml:
cat ~/.varie/manager/projects.yaml | grep -A3 "<project_name>"
skipPermissions setting from ~/.varie/config.yaml. Use /workstation skip-permissions on to enable autonomous mode for auto-created workers.create-worker for additional sessions and always assign a task namenpx claudepluginhub varie-ai/workstation --plugin varie-workstationCreates, loads, syncs, and archives work sessions with git worktree support. Requires explicit session paths or .samocode config.
Unified session management for Claude Code: list active sessions, check inbox, and broadcast messages across sessions. Explicit /session invocation only.
Manages Claude Code sessions using /rename, /resume, and CLI commands for naming, checkpointing, and resuming workflows in debugging, feature development, PR reviews, and investigations.