From the SAGE repo root (where startup.sh lives):
- Linux/macOS:
bash startup.sh && source .venv/bin/activate - Windows:
.\startup.ps1and activate.venv
Details → INSTALL.md.
mkdir -p ~/myproject && cd ~/myproject
sage initThis creates .sage/, memory/, starter rules, and pytest hints. sage init does not install the SAGE package — run startup.sh from the clone for that.
export SAGE_MODEL_PROFILE=test # optional — one small model per role (laptop/CI)
sage doctor
sage run "Your goal here" --auto--research(default) — interactive plan checkpoints (a/r/e).--auto/--silent— less interaction; see CLI.md.
Overview and first-run tips → README.md. CLI reference → CLI.md. Spec vs implementation: ARCHITECTURE_STATUS.md.
sage benchsage bench --compare-policy— static vs learned routing (needs checkpoints)
Phase 5 — offline RL
sage rl collect-synth --rows 650sage rl export --output datasets/routing_v1.jsonlsage rl analyze-rewards --data datasets/routing_v1.jsonlsage rl train-bc --data datasets/routing_v1.jsonlsage rl train-cql --data datasets/routing_v1.jsonlsage rl eval-offline --data datasets/routing_v1.jsonl --checkpoint memory/rl/policy_cql.joblibscripts/train_routing_policy.py— BC then CQL in one script (from repo root with venv activated)
Phase 6 — simulator
sage sim generate --count 1000 --out datasets/sim_tasks.jsonlsage sim run --tasks datasets/sim_tasks.jsonl --workers 4docker build -f sim/Dockerfile -t sage-sim:latest .sage sim run --tasks datasets/sim_tasks.jsonl --workers 4 --docker