atlas executable (installed with
arc-atlas) and the arc-atlas helper for export/review automation. The CLI automatically loads .env files from the
project root and extends PYTHONPATH with src/root directories.
| Workflow | Command(s) | Summary |
|---|---|---|
| Autodiscovery onboarding | atlas env init, atlas env scaffold | Detect agent/environment pairs, synthesize factories, and cache metadata. |
| Runtime execution | atlas run, atlas run --config | Replay discovery output or run a full orchestrator config. |
| Persistence bootstrap | atlas init | Provision Postgres via Docker (optional). |
| Review & export | arc-atlas review …, arc-atlas export … | Gate traces behind human review and export approved sessions. |
| Training handoff | atlas train | Reuse exporter filters and launch Atlas Core pipelines. |
Environment Discovery
atlas env init
Discovers agents/environments and populates .atlas/. Uses Claude Haiku 4.5 for agent ranking (auto-selects at 0.85+ confidence).
Key flags: --task, --scaffold-config-full, --no-run, --timeout (240s default)
Outputs: .atlas/discover.json, .atlas/generated_config.yaml, .atlas/runs/
atlas env scaffold
Seeds projects with reference factories (LangGraph template). Use --template, --output, --force flags. Follow with atlas env init to validate.
Runtime Execution
atlas run
Executes a discovered agent/environment pair using cached metadata.
--task(required) – prompt to execute.--path– project root containing.atlas/discover.json.--env KEY=value– additional environment variables surfaced to the runtime worker.--mode– experimental execution-mode override (auto,paired, etc.) used for deterministic tests.--max-steps– informational cap for orchestration steps (helpful during debugging).--timeout– worker timeout (default 300 s).
.atlas/runs/.
atlas run --config
When you provide --config path/to/runtime.yaml, the CLI bypasses discovery metadata and spins up the full orchestrator
stack defined in the YAML. This mode:
- loads the config via
atlas.config.loader, - enables validation caching and telemetry instrumentation from PR #74,
- respects the same environment-variable injection and task prompt flags,
- captures the full
ExecutionContextmetadata (steps, learning state, reward payloads) and writes it to.atlas/runs/alongside the config path, letting you correlate later exports with the exact settings that produced them.
Review & Safety Workflow
Atlas gates trace exports behind review status to keep production learning safe. Review utilities live behind thearc-atlas entrypoint (same binary as python -m atlas.cli.export).
arc-atlas review
Manage session approvals stored in Postgres:
-
List sessions
Groups by review status (defaults to pending/quarantined/approved). Use
--limit/--offsetto page through results. -
Approve
-
Quarantine
--quiet to suppress info logs. For local development you can bypass the gate with
ATLAS_REVIEW_REQUIRE_APPROVAL=0, but production exports should always run through the review queue.
Drift & Safety Flags
runtime_safety.driftin the config enables z-score based drift detection; alerts surface in the review output.runtime_safety.review.require_approval(defaulttrue) controls export gating; changing it requires a config update or environment override (ATLAS_REVIEW_REQUIRE_APPROVAL=0).
Exporting & Training
arc-atlas export
Exports approved sessions to JSONL for training or offline analysis.
--database-url– required Postgres connection.--output– destination file (default:<atlas-core-path>/exports/<timestamp>.jsonlwhenatlas-core-pathis known).--session-id– explicit session IDs (repeatable).--limit/--offset– pagination for recent sessions.--status– runtime completion status filter (succeeded,failed, etc.).--trajectory-event-limit– cap telemetry per session.--include-status approved– allow additional review statuses;--include-all-statusesbypasses the gate entirely.--batch-size– database fetch chunk size.
Export Runtime Traces.
atlas train
Bridges exports into Atlas Core’s offline pipeline. It reuses the exporter filters above and then launches
scripts/run_offline_pipeline.py with Hydra overrides.
- Filters:
--session-id,--limit,--status,--include-status,--trajectory-event-limit. - Atlas Core overrides:
--atlas-core-path,--config-name,--data-config,--trainer-config,--model-config. - Dataset sampling:
--eval-ratio,--max-samples,--use-sample-dataset. - Execution control:
--dry-runprints the derived command without launching. - Tracking:
--wandb-project,--wandb-run-name, and repeatable--overrideflags.
atlas train once Postgres contains a critical mass of approved sessions. For ad-hoc exports, stick with
arc-atlas export.
Storage & Bootstrap Utilities
atlas init– writesatlas-postgres.yaml(Docker Compose) to spin up the recommended Postgres instance. Use--forceto overwrite or--skip-docker-installif Docker is already available.atlas quit– tears down storage resources created byatlas init.
Environment & Troubleshooting Tips
.envloading – All CLI entrypoints callload_dotenv_if_available(); keep provider keys, database URLs, and custom environment variables there.- PYTHONPATH –
atlas env initadds the project root andsrc/directory toPYTHONPATH, making local packages importable without manual exports. - Timeouts – Adjust
--timeoutper command when hitting slower providers or complex factory initialization. - Logging – Most commands support
--quiet; otherwise logs stream to stdout with timestamps.
Related Guides
SDK Quickstart– end-to-end walkthrough using these commands.Learning System Architecture– how CLI telemetry feeds runtime learning.Installation– environment prerequisites and GPU-aware setup.Export Runtime Traces– JSON schema and downstream training integration.