name: scion description: Manage concurrent LLM-based code agents with scion - orchestrate parallel agents with isolated workspaces
Scion Agent Management Skill
Scion is a container-based orchestration tool for managing concurrent LLM-based code agents. It enables parallel execution of specialized sub-agents with isolated identities, credentials, and workspaces.
Core Concepts
Projects
A project is the grouping construct for agents, represented by the .scion directory. Each project can have its own project, and there's also a global project in ~/.scion/.
Agents
An agent is an isolated LLM instance running in a container with its own workspace (git worktree), credentials, and configuration.
Templates
Templates are blueprints for creating agents. Common templates include:
gemini- Gemini CLI-based agentsclaude- Claude Code-based agentsopencode- OpenCode-based agentscodex- Codex-based agents
Harnesses
A harness is the LLM interface (Gemini CLI, Claude Code, etc.) that the agent uses.
Command Reference
Initialization
# Initialize a project in the current project (creates .scion directory)
scion init
# Initialize the global project
scion init --global
Starting Agents
# Start an agent with a task
scion start <agent-name> <task description>
# Start with a specific template
scion start <agent-name> "task" --type claude
# Start and immediately attach to the session
scion start <agent-name> "task" --attach
# Start with a custom branch
scion start <agent-name> "task" --branch feature-branch
# Start with a custom workspace path
scion start <agent-name> "task" --workspace /path/to/workspace
Listing Agents
# List agents in the current project
scion list
# List all agents across all projects
scion list --all
# Output as JSON
scion list --format json
Output columns:
- NAME: Agent name
- TEMPLATE: Template used (gemini, claude, etc.)
- RUNTIME: Execution runtime (docker, container, k8s)
- PROJECT: Project name
- AGENT STATUS: Agent state
- SESSION: Session status
- CONTAINER: Container status
Interacting with Agents
# Attach to an agent's interactive session
scion attach <agent-name>
# Send a message to an agent
scion message <agent-name> "Your message here"
# Send message with interrupt (stops current work first)
scion message <agent-name> "Urgent task" --interrupt
# Broadcast message to all agents in current project
scion message --broadcast "Stop and report status"
# Broadcast to all agents across all projects
scion message --all "Global announcement"
Viewing Logs
# View agent logs
scion logs <agent-name>
Stopping and Resuming
# Stop an agent
scion stop <agent-name>
# Stop and remove the agent
scion stop <agent-name> --rm
# Resume a stopped agent
scion resume <agent-name>
# Resume with attach
scion resume <agent-name> --attach
Deleting Agents
# Delete an agent (stops container, removes directory and worktree)
scion delete <agent-name>
# Delete but preserve the git branch
scion delete <agent-name> --preserve-branch
# Delete all stopped agents
scion delete --stopped
Workspace Synchronization
# Sync workspace (direction depends on sync mode)
scion sync <agent-name>
# Sync to the agent container
scion sync to <agent-name>
# Sync from the agent container
scion sync from <agent-name>
Template Management
# List available templates
scion templates list
# Show template configuration
scion templates show <template-name>
# Create a new template
scion templates create <name> --harness gemini
# Clone an existing template
scion templates clone <source> <destination>
# Delete a template
scion templates delete <name>
# Update default templates from binary
scion templates update-default
Configuration
# List all effective settings
scion config list
# Get a specific setting
scion config get <key>
# Set a local setting (in current project)
scion config set <key> <value>
# Set a global setting
scion config set <key> <value> --global
Common Workflows
Parallel Task Execution
To run multiple agents in parallel on different tasks:
# Start multiple agents for parallel work
scion start coder "Implement the new API endpoint"
scion start tester "Write tests for the auth module"
scion start auditor "Review security of user input handling" --type claude
# Check status of all agents
scion list
# Attach to any agent to monitor or interact
scion attach coder
Agent Collaboration Pattern
When coordinating work across agents:
- Start agents for different subtasks
- Use
scion listto monitor progress - Use
scion messageto communicate new information - Use
scion attachwhen human intervention is needed - Use
scion logsto review work history
Cleanup
# Delete all stopped agents at once
scion delete --stopped
# Delete specific agent, keeping its branch for review
scion delete my-agent --preserve-branch
Global Flags
These flags work with most commands:
--project, -g <path>: Specify a project directory--global: Use the global project (~/.scion/)--profile, -p <name>: Use a specific configuration profile--format <type>: Output format (json, plain) - currently for list only
Tips for Agents
Check existing agents first: Before starting a new agent, use
scion listto see what's already running.Use descriptive names: Agent names should reflect their purpose (e.g.,
refactor-auth,test-api,audit-security).Choose appropriate templates: Use
--type claudefor Claude Code, default is Gemini CLI.Monitor with logs: Use
scion logs <agent>to check progress without interrupting.Interrupt carefully: The
--interruptflag on messages stops current work - use only when necessary.Preserve branches: When deleting agents whose work might need review, use
--preserve-branch.Use attach for complex interactions: When an agent needs guidance,
scion attachprovides full interactive access.