Building AI agents, atomically
Technology Landscape
Last Updated: 2026-10-21
Source-of-Truth Files
| Information | File |
|---|---|
| Package metadata, deps, console scripts | pyproject.toml |
| Locked dependency versions | uv.lock |
| Legacy install shims | setup.py, requirements.txt |
| Lint | .flake8 |
| Format + git hooks | .pre-commit-config.yaml, [tool.black] in pyproject.toml |
| Type checking | pyrightconfig.json |
| Tests | pytest.ini, .coveragerc |
| CI/CD | .github/workflows/ |
| Release | build_and_deploy.ps1 |
| Docs build | docs/conf.py |
Stack
| Layer | Technology | Notes |
|---|---|---|
| Language | Python ≥3.12 | PEP 695 generics |
| Structured LLM I/O | Instructor >=1.17.0,<2 (range in 2.13.0) | provider-agnostic structured outputs |
| Data modeling | Pydantic v2 (≥2.11.4) | all schemas are Pydantic models |
| Provider / token utils | LiteLLM (≥1.50) | token counting, model metadata |
| Tool protocol | MCP — mcp[cli] (≥1.8,<2) |
Model Context Protocol connectors |
| TUI | Textual (≥5.3,<6) | the atomic assembler UI |
| Console output | Rich, pyfiglet | |
| HTTP / Git | requests, GitPython | assembler fetches forge from GitHub |
| Build backend | Hatchling | [build-system] |
| Workspace / lock / publish | uv | uv sync / uv build / uv publish |
| Static type checking | Pyright | configured for the workspace .venv via pyrightconfig.json |
| Docs | Sphinx + MyST + RTD theme | + sphinxcontrib-mermaid, deployed to GitHub Pages |
Infrastructure
- CI (GitHub Actions):
code-quality.yml— on push/PR tomain/v2.0, three jobs:quality(uv sync,black --checkandflake8across all four project directories, a focused Pyright 1.1.414 constructor check, thenpytest --cov=atomic_agentsfor the core);fresh-install(build the wheel, install it with theobservabilityextra plusopentelemetry-sdkinto a clean venv without the lockfile, proveopeninferenceis not importable, run a realinstructor.from_openaiclient overhttpx.MockTransportthrough a tool and an agent and assert the GenAI span names, usage keys and the absence of every OpenInference key, then import every module underatomic_agents);lowest-versions(resolve the runtime dependencies plus theobservabilityandphoenixextras withuv pip compile --resolution lowest-direct, install current pytest tooling plusopentelemetry-instrumentation==0.51b0compatible with the OpenTelemetry API floor, then run the suite). Observability tests exercise real installed discovery metadata, the auto-loader and enabled/disabled launcher subprocesses with local exporters; no live model/backend calls are needed.docs.yml— on push tomain: build Sphinx docs, runscripts/generate_llms_files.py(spec-compliantllms.txtindex +llms-*.txtbundles, copied to the site root), deploy to GitHub Pages. The docs version needs no sync step —docs/conf.pyreads it from the rootpyproject.tomlviatomllib.
- Release:
build_and_deploy.ps1 <major|minor|patch> [--dry]bumps the version inpyproject.toml, thenuv sync→uv build→uv publish(requires aPYPI_TOKEN). - Distribution: PyPI package
atomic-agents; theatomicconsole script ships with it. - No runtime infrastructure — no database, no server, no containers. It is a library + CLI.