Teacher/Student orchestration toolkit for Bring-Your-Own-Agent workflows.
Project description
Atlas SDK — PyPI Quickstart
Atlas wraps your Bring-Your-Own-Agent (BYOA) in a guided Teacher → Student → Reward loop. Install the SDK from PyPI, point it at your agent, and Atlas handles planning, orchestration, evaluation, and optional persistence for you.
Atlas defaults to an in-memory workflow—leave
storage: nullin your config for quick experiments. You can add PostgreSQL later if you want durable telemetry.
What's New in v0.1.8
- Autodiscovery & CLI –
atlas env initscaffolds configs. See Autodiscovery Guide. - Learning Playbooks in Runtime – Student and Teacher personas fetch hashed “learning playbooks”, inject them into every planner/synthesizer/executor prompt, and track metadata so cached prompts stay in sync when playbooks change (#76).
- Persistent Telemetry & Learning Reports – Discovery and runtime sessions log directly to Postgres, and the new learning evaluation harness can filter by project/task/tags while generating model-level breakdowns in Markdown/JSON reports (#72, #73).
- Safety Guardrails & Approvals – Session exports require explicit approval, with CLI tooling to review/approve/quarantine runs and drift alerts captured alongside reward metadata (#63).
- Expanded Evaluation Suites – Added capability probe updates (xAI Grok support), dual-agent runtime benchmarking, and a reward model harness with packaged datasets and docs to keep offline validation comprehensive (#55, #56, #57).
- Lean Learning History Payloads – Capability probe history now respects an operator-defined cap, trims noisy fields, and keeps streak stats lightweight for faster probes (#54).
What's New in v0.1.7
- Adaptive Runtime – Capability probe selects execution mode (
auto,paired,coach,escalate) per request based on task complexity and historical performance. - Persistent Learning Memory – Guidance from each episode is tagged by reward and automatically reused on similar tasks.
- Fingerprint-Based Certification – First-run tasks get certified, enabling auto mode on future similar requests when confidence is high.
Install in Minutes
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install --upgrade pip
pip install arc-atlas
- Python 3.10 or newer is required (3.13 recommended).
- For development tooling and tests, install extras with
pip install arc-atlas[dev].
Configure Your Environment
Set API keys before running Atlas:
export OPENAI_API_KEY=sk-... # your api key
export GEMINI_API_KEY=... # for reward system
Prefer storing secrets in a .env file? The SDK automatically loads it on startup (via python-dotenv), so CLI commands and examples pick up those values without manual exports.
Atlas reads additional provider keys from adapter-specific llm.api_key_env fields.
Create a Minimal Config
Save the following as atlas_quickstart.yaml (storage disabled by default):
agent:
type: litellm
name: quickstart-openai-agent
system_prompt: |
You are an Agent. Follow instructions carefully and keep responses concise.
tools: []
llm:
provider: openai
model: gpt-4o-mini
api_key_env: OPENAI_API_KEY
temperature: 0.1
max_output_tokens: 1024
student:
max_plan_tokens: 1024
max_step_tokens: 1024
max_synthesis_tokens: 1024
teacher:
llm:
provider: openai
model: gpt-4o-mini
api_key_env: OPENAI_API_KEY
temperature: 0.1
max_output_tokens: 768
orchestration:
max_retries: 1
step_timeout_seconds: 600
emit_intermediate_steps: true
rim:
small_model:
provider: gemini
model: gemini/gemini-2.5-flash
api_key_env: GEMINI_API_KEY
max_output_tokens: 8096
large_model:
provider: gemini
model: gemini/gemini-2.5-flash
api_key_env: GEMINI_API_KEY
max_output_tokens: 8096
judge_prompt: 'reward the agent for attending the issues mentioned in the task'
variance_threshold: 0.15
uncertainty_threshold: 0.3
storage: null
See Configuration Guide for comprehensive options, tuning, and advanced features.
Run Your First Task
Quick start with the demo:
atlas quickstart
Or run a custom task:
from atlas import core
result = core.run(
task="Your task",
config_path="atlas_quickstart.yaml",
)
print(result.final_answer)
See Quickstart Guide for detailed command options and learning demonstrations.
Wrap Your Existing Agent
OpenAI-Compatible Chat Agent
from atlas import core
from atlas.connectors import create_adapter
from atlas.config.models import LitellmAdapterConfig
adapter = create_adapter(LitellmAdapterConfig(
type="litellm",
name="my-openai-agent",
system_prompt="You are a helpful assistant.",
tools=[],
llm={
"provider": "openai",
"model": "gpt-4o-mini",
"api_key_env": "OPENAI_API_KEY",
},
))
result = core.run(
task="Draft a product brief for Atlas",
config_path="atlas_quickstart.yaml",
adapter_override=adapter,
)
Override the adapter to reuse the same orchestration settings with different agents.
Local Python Function
# my_agent.py
def respond(prompt: str, metadata: dict | None = None) -> str:
return f"echo: {prompt}"
Update the config’s agent block:
agent:
type: python
name: local-function-agent
system_prompt: |
You call a local Python function named respond.
import_path: my_agent
attribute: respond
tools: []
Atlas imports your callable (optionally from working_directory), handles async execution, generator outputs, and metadata passing.
HTTP Endpoint
agent:
type: http_api
name: http-agent
system_prompt: |
You delegate work to a REST endpoint that accepts {"prompt": "..."}.
transport:
base_url: https://your-agent.example.com/v1/atlas
timeout_seconds: 60
payload_template:
prompt: "{{ prompt }}"
result_path: ["data", "output"]
tools:
- name: web_search
description: Search the web.
parameters:
type: object
properties:
query:
type: string
required: [query]
Atlas retries requests based on the adapter’s retry policy and normalises JSON responses using result_path.
Optional: Persist Runs with PostgreSQL
# Start a local Postgres via Docker (installs Docker if missing)
atlas init # writes atlas-postgres.yaml, starts Postgres, and applies the schema
# Or run docker compose yourself if you prefer:
# docker compose -f docker/docker-compose.yaml up -d postgres
# Point Atlas at the database
export STORAGE__DATABASE_URL=postgresql://atlas:atlas@localhost:5433/atlas
Add a storage section to your config when you want Atlas to log plans, attempts, and telemetry into Postgres for later inspection. If Docker isn’t available, install Postgres manually and provide the same connection URL.
Observe and Export
- Set
stream_progress=Trueincore.runto stream planner/executor/judge events alongside the adaptive summary. - Export stored sessions with
arc-atlas --database-url postgresql://... --output traces.jsonl—the JSONL includesadaptive_summary,session_reward, per-session learning notes, the consolidatedlearning_state, and aggregated history. - Explore
docs/examples/for telemetry and export walkthroughs.
Train with Atlas Core
Use the SDK CLI to bridge runtime traces into the Atlas Core training pipeline:
git clone https://github.com/Arc-Computer/ATLAS ~/src/ATLAS
export ATLAS_CORE_PATH=~/src/ATLAS
export STORAGE__DATABASE_URL=postgresql://atlas:atlas@localhost:5433/atlas
atlas train --config-name offline/base --dry-run
# inspect the command, then rerun without --dry-run to execute training
atlas train writes a JSONL export to <atlas-core-path>/exports/<timestamp>.jsonl and then executes scripts/run_offline_pipeline.py from that directory. You can point --output at a custom path, forward Hydra overrides with repeated --override flags, or use --output-dir / --wandb-project to steer checkpoints and logging. Pass --use-sample-dataset to copy the bundled sample dataset when you just want to validate the workflow without hitting Postgres.
Next Steps
- Real-World Example: See
examples/mcp_tool_learning/for production-ready MCP tool learning with LangGraph agents - Quickstart Guide: ../sdk/quickstart.mdx
- Configuration: ../configs/configuration.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arc_atlas-0.1.14.tar.gz.
File metadata
- Download URL: arc_atlas-0.1.14.tar.gz
- Upload date:
- Size: 523.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9dc801b17103afb0d4ea7747fd584ee27f29c3e74585860fd53ad146be807a
|
|
| MD5 |
8e373bb11f2989946a8bc1b9367a71ba
|
|
| BLAKE2b-256 |
6840dd4ea9306f2aea4503a90552d15c5cd97f29328e08fe99a24e9c0a016f36
|
File details
Details for the file arc_atlas-0.1.14-py3-none-any.whl.
File metadata
- Download URL: arc_atlas-0.1.14-py3-none-any.whl
- Upload date:
- Size: 561.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72e50e5c9c6e5684bb3c21743f887b97ac40de85441224b89c402a62e5181fb9
|
|
| MD5 |
36a453cb422b5dc65bcfd502d96825f5
|
|
| BLAKE2b-256 |
9a145617b70546749e88baafbc0c02cc3d2bc7ecab110e36a1a2caaae73c6db2
|