Roles Commands¶
Manage team roles and their execution configuration in SuperQode.
Overview¶
The superqode roles command group provides commands for viewing and inspecting team roles, their execution modes (BYOK or ACP), and configuration details.
roles list¶
List all configured roles with their execution mode and status.
Options¶
| Option | Description |
|---|---|
--mode, -m | Filter by mode (e.g., dev, qe, devops) |
--enabled-only | Show only enabled roles |
Examples¶
# List all roles
superqode roles list
# List only dev mode roles
superqode roles list --mode dev
# List only enabled roles
superqode roles list --enabled-only
# Filter to enabled qe roles
superqode roles list --mode qe --enabled-only
Output¶
Shows a table with: - Role: Role identifier (format: mode.role) - Mode: Execution mode name - Exec Mode: BYOK (direct LLM) or ACP (coding agent) - Provider/Agent: Provider ID (BYOK) or Agent ID (ACP) - Model: Model name (BYOK) or "(agent-managed)" (ACP) - Status: [CORRECT] Enabled or [INCORRECT] Disabled
Example Output¶
Team Roles
βββββββββββββββββ¬βββββββ¬βββββββββββ¬ββββββββββββ¬ββββββββββββββββ¬βββββββββββββββ
β Role β Mode β Exec Modeβ Provider β Model β Status β
βββββββββββββββββΌβββββββΌβββββββββββΌββββββββββββΌββββββββββββββββΌβββββββββββββββ€
β dev.fullstack β dev β BYOK β anthropic β claude-sonnet β [CORRECT] Enabled β
β qe.api_tester β qe β ACP β opencode β (agent-managed)β [CORRECT] Enabled β
βββββββββββββββββ΄βββββββ΄βββββββββββ΄ββββββββββββ΄ββββββββββββββββ΄βββββββββββββββ
Execution Modes:
BYOK = Bring Your Own Key (direct LLM API via gateway)
ACP = Agent Client Protocol (full coding agent)
roles info¶
Show detailed execution information for a specific role.
Arguments¶
| Argument | Description |
|---|---|
MODE.ROLE | Role path in format mode.role (e.g., dev.fullstack, qe.api_tester) |
Examples¶
# Show dev.fullstack role details
superqode roles info dev.fullstack
# Show qe.api_tester role details
superqode roles info qe.api_tester
# Show qe mode role (if using direct role config)
superqode roles info qe
Output¶
Displays comprehensive role information including:
BYOK Mode Roles: - Role name and description - Provider and model configuration - Provider status and API key configuration - Capabilities (chat completion, streaming, tool calling) - Limitations (no file editing, no shell commands, no MCP)
ACP Mode Roles: - Agent identifier and status - Protocol type - Authentication method - Agent LLM configuration (provider/model) - Capabilities (file editing, shell commands, MCP tools, etc.) - Setup instructions (if not supported)
Common Information: - MCP servers (if configured) - Job description (truncated if long) - Security information
Example Output (BYOK)¶
Role: dev.fullstack
Description: Full-stack development assistant
Enabled: Yes
βββ BYOK MODE (Direct LLM) βββ
Provider: anthropic
Model: claude-sonnet-4-20250514
Gateway: LiteLLM
Provider Status: [CORRECT] Configured
Required Env: ANTHROPIC_API_KEY
Capabilities:
β’ Chat completion
β’ Streaming responses
β’ Tool calling (if model supports)
Limitations:
β’ No file editing
β’ No shell commands
β’ No MCP tools
Job Description:
You are a full-stack development assistant...
βββ SECURITY βββ
π API key read from YOUR environment variables
π SuperQode NEVER stores your keys
π Data flows: You β SuperQode β LiteLLM β Provider
Example Output (ACP)¶
Role: qe.api_tester
Description: API testing specialist
Enabled: Yes
βββ ACP MODE (Coding Agent) βββ
Agent: opencode
Agent Status: [CORRECT] Supported
Protocol: ACP
Auth: Managed by OpenCode CLI (run `opencode /connect`)
Agent LLM Config:
Provider: anthropic
Model: claude-sonnet-4-20250514
Capabilities:
β’ File editing
β’ Shell command execution
β’ MCP tool integration
β’ Git operations
MCP Servers:
β’ filesystem
β’ github
Job Description:
You are an API testing specialist...
βββ SECURITY βββ
π Auth managed by the agent (not SuperQode)
π Agent stores its own credentials
π Data flows: You β SuperQode β Agent β Provider
roles check¶
Check if a role is ready to run (auth configured, dependencies available).
Arguments¶
| Argument | Description |
|---|---|
MODE.ROLE | Role path in format mode.role |
Examples¶
# Check if dev.fullstack is ready
superqode roles check dev.fullstack
# Check if qe.api_tester is ready
superqode roles check qe.api_tester
Output¶
Reports issues and warnings:
- Issues: Must be fixed before role can run
- Missing API keys
- Missing provider/model configuration
-
Unsupported agents
-
Warnings: May cause problems but won't prevent execution
- Provider/agent not in registry (may still work)
- Configuration inconsistencies
Example Output¶
Checking role: dev.fullstack
[INCORRECT] Issues found:
β’ API key not set. Set ANTHROPIC_API_KEY
To configure: export ANTHROPIC_API_KEY="your-key"
Get key at: https://console.anthropic.com/
Success Output¶
Execution Modes¶
BYOK Mode (Bring Your Own Key)¶
Capabilities: - Direct LLM API access via LiteLLM - Chat completion and streaming - Tool calling (if model supports)
Limitations: - No file editing - No shell command execution - No MCP tool integration
Requirements: - Provider must be configured in providers section - API key must be set in environment variable - Model must be specified
ACP Mode (Agent Client Protocol)¶
Capabilities: - Full file editing and creation - Shell command execution - MCP tool integration - Git operations - Advanced coding workflows
Requirements: - Agent must be installed on system - Agent must be in agent registry - Agent authentication must be configured
Common Workflows¶
List All Roles¶
# See all configured roles
superqode roles list
# See only enabled roles
superqode roles list --enabled-only
Inspect Role Configuration¶
Verify Role Readiness¶
# Check if role is ready before use
superqode roles check qe.api_tester
# Fix any issues shown
export ANTHROPIC_API_KEY="your-key"
Troubleshoot Role Issues¶
# 1. List roles to see current state
superqode roles list
# 2. Get detailed info
superqode roles info dev.fullstack
# 3. Check for issues
superqode roles check dev.fullstack
# 4. Fix issues (e.g., set API key)
export ANTHROPIC_API_KEY="sk-ant-..."
# 5. Verify again
superqode roles check dev.fullstack
Troubleshooting¶
Role Not Found¶
Solution: - Use superqode roles list to see available roles - Check role name spelling (format: mode.role) - Verify role is enabled in configuration
Provider Not Configured¶
Solution:
Agent Not Supported¶
Solution: - Check superqode agents list --supported for supported agents - Update role configuration to use a supported agent - Or wait for agent to be marked as supported
Related Commands¶
superqode agents list- List available ACP agentssuperqode agents show- Show agent detailssuperqode config list-modes- View configured modes and rolessuperqode providers list- List BYOK providers
Next Steps¶
- Config Commands - Configuration management
- Agents Commands - ACP agent management
- Provider Commands - BYOK provider management
- Team Configuration - Role configuration guide