Common Workflows
This guide covers common workflows and patterns for using the Radium CLI.
Getting Startedβ
1. Initialize Workspaceβ
# Initialize in current directory
rad init
# Initialize with context file
rad init --with-context
2. Create Your First Planβ
# Generate plan from specification
rad plan spec.md
# Or use direct input
rad plan "Build a REST API with authentication"
3. Execute Planβ
# Execute plan
rad craft REQ-001
# Or use YOLO mode for continuous execution
rad craft REQ-001 --yolo
Complete Workflowβ
From Specification to Executionβ
# Single command to complete entire workflow
rad complete spec.md
This automatically:
- Detects source type (file, Jira, Braingrid)
- Fetches content
- Generates plan
- Executes plan with YOLO mode
Agent Execution Patternsβ
Single Agent Executionβ
# Execute agent with default prompt
rad step code-agent
# Execute with custom prompt
rad step code-agent "Implement user authentication"
Parallel Executionβ
# Run multiple agents in parallel
rad run "agent1 'task1' & agent2 'task2' & agent3 'task3'"
Sequential Executionβ
# Run agents sequentially (each waits for previous)
rad run "agent1 'setup' && agent2 'build' && agent3 'test'"
Plan Managementβ
Resuming Executionβ
# Resume from last checkpoint
rad craft REQ-001 --resume
Selective Executionβ
# Execute specific iteration
rad craft REQ-001 --iteration I1
# Execute specific task
rad craft REQ-001 --task I1.T1
Dry Runβ
# See what would be executed
rad craft REQ-001 --dry-run
Monitoring and Analyticsβ
Track Executionβ
# Monitor agent execution
rad monitor list
# Check specific agent
rad monitor status agent-123
# View telemetry
rad monitor telemetry agent-123
View Statisticsβ
# Session statistics
rad stats session
# Cost tracking
rad stats costs
# Token usage
rad stats usage
Extension Managementβ
Install Extensionsβ
# Install from local directory
rad extension install ./my-extension
# Install from URL
rad extension install https://example.com/extension.zip
Manage Extensionsβ
# List installed extensions
rad extension list
# Get extension info
rad extension info my-extension
# Uninstall extension
rad extension uninstall my-extension
MCP Integrationβ
Configure MCP Serversβ
- Create
.radium/mcp-servers.toml:
[[servers]]
name = "my-server"
transport = "stdio"
command = "mcp-server"
args = ["--config", "config.json"]
- List and test:
rad mcp list
rad mcp test my-server
rad mcp tools my-server
Best Practicesβ
1. Use Workspace Structureβ
Always initialize workspace before starting:
rad init
2. Validate Before Executionβ
# Validate agents
rad agents validate arch-agent
# Validate templates
rad templates validate basic-workflow
3. Monitor Executionβ
Keep an eye on execution:
# In another terminal
watch -n 1 'rad monitor list'
4. Use Checkpointsβ
Checkpoints are automatically created. Restore if needed:
rad checkpoint list
rad checkpoint restore checkpoint-123
5. JSON Output for Scriptingβ
Use --json flag for programmatic access:
rad status --json | jq '.workspace'
rad agents list --json | jq '.[] | select(.name | contains("code"))'