Building AI agents, atomically
Onboarding
Last Updated: 2026-06-13
Prerequisites
- Python ≥3.12
uv— package & workspace manager- An LLM API key for whatever provider you use (e.g.
OPENAI_API_KEY); a repo-level.envis supported.
Quick start
git clone https://github.com/eigenwise/atomic-agents.git
cd atomic-agents
uv sync # install the whole workspace (core + assembler + dev deps)
# add your API key(s) to a .env file
Examples are standalone projects — cd atomic-examples/<name> and follow that example's README to run
it. To launch the tool-installer TUI: uv run atomic (or atomic once it's on your PATH).
Common commands
| Command | Purpose |
|---|---|
uv sync |
Install/update all workspace dependencies |
uv run pytest --cov=atomic_agents atomic-agents |
Run the core test suite with coverage |
uv run black --check atomic-agents atomic-assembler atomic-examples atomic-forge |
Format check |
uv run flake8 --extend-exclude=.venv atomic-agents atomic-assembler atomic-examples atomic-forge |
Lint |
cd docs && uv run make html |
Build the Sphinx docs |
./build_and_deploy.ps1 patch --dry |
Dry-run a release (version bump + build) |
Common tasks
- Build a new agent: define input/output
BaseIOSchemasubclasses, wrap an LLM client with Instructor, pass it toAtomicAgent[In, Out](AgentConfig(...)). Seepatterns.md+entry-points.md. - Add a forge tool: create
atomic-forge/tools/<name>/followingatomic-forge/guides/tool_structure.md(input/output schemas,BaseToolConfig, aBaseToolsubclass,tests/). - Add an example: create
atomic-examples/<name>/with its ownpyproject.toml. - Release:
build_and_deploy.ps1 <major|minor|patch>(needsPYPI_TOKEN).
Gotchas
- The LLM client must be Instructor-wrapped before it goes into
AgentConfig. - For Gemini, set
assistant_role="model"inAgentConfig. __version__is read from installed package metadata (importlib.metadata) — it reflects the installed build, not a hardcoded constant.- Migrating from v1? See
UPGRADE_DOC.md(renamed classes, flattened imports, schemas as generics).