Simulate the impact of code changes
arc sim
command allows you to simulate the potential impact of code changes before merging them. It analyzes your changes, runs tests in a sandbox environment, and provides insights into how they might affect your system.
run
history
show
run
Option | Description |
---|---|
--scenario <scenario> | Simulation scenario to run (default: all) |
--diff <diff_path> | Path to a diff file to simulate (default: current changes) |
--branch <branch> | Branch to compare against (default: main) |
--sandbox <type> | Sandbox type: local, docker, e2b (default: local) |
--memory | Use memory from previous simulations to improve results |
--output <format> | Output format: text, json, markdown (default: text) |
--save <path> | Save simulation results to a file |
--debug | Enable debug mode |
history
Option | Description |
---|---|
--limit <n> | Limit the number of results (default: 10) |
--format <format> | Output format: text, json, table (default: table) |
--service <service> | Filter by affected service |
--scenario <scenario> | Filter by scenario |
--risk <min>..<max> | Filter by risk score range |
Scenario | Description |
---|---|
network_latency | Simulates the impact on network latency |
memory_usage | Simulates the impact on memory usage |
cpu_usage | Simulates the impact on CPU usage |
disk_io | Simulates the impact on disk I/O |
error_rates | Simulates the impact on error rates |
security | Analyzes potential security implications |
dependencies | Analyzes impact on dependencies |
all | Runs all available scenarios |
Environment | Description |
---|---|
local | Runs in a local sandbox with limited isolation |
docker | Runs in a Docker container for better isolation |
e2b | Runs in an E2B cloud sandbox for maximum isolation and reproducibility |
--debug
for more detailed error information--memory
to leverage insights from previous simulations