Atomic Agents
Build controlled AI applications from composable, typed Python components.
- Source repo
- Eigenwise/atomic-agents
- Stars
- ★ 6.4k
- Last updated
- 11d ago v2.16.2
- FARS reviewed
- Nov 08, 2026 +3 new
- License
- MIT
- Primary language
- Python
- FA score
- 65/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A Python backend team can require model responses to match Pydantic fields before passing them into business logic.
- Not a fit if
- Teams that need a ready-to-deploy end-user agent product
- Users who want a visual builder instead of writing Python orchestration
- Teams unwilling to own their own service layer, storage, and deployment
- Website
- eigenwise.github.io/atomic-agents ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-22latest release v2.16.2 (2026-11-17)+0.6 ★/day over 7 days
- Source review
- 65/100 · Some gaps
What does this agent do, and when should you use it?
Atomic Agents is a lightweight Python framework for composing agents, tools, and context providers into agentic AI pipelines. Its core library supplies AtomicAgent, AgentConfig, typed I/O schemas, SystemPromptGenerator, ChatHistory, and dynamic-context interfaces, with Pydantic and Instructor handling structured outputs. Developers write the control flow in Python, so the framework runs inside an application or service rather than acting as a standalone hosted agent. The monorepo also includes the atomic-assembler component CLI, atomic-examples, and the atomic-forge tool collection. OpenAI is included by default, while Instructor provides documented paths to Anthropic, Gemini, Groq, Ollama, Mistral, Cohere, and OpenAI-compatible APIs. It fits teams that prioritize explicit orchestration, reusable components, and validated outputs, provided they are prepared to own deployment and production workflow design.
An application defines input and output contracts as Pydantic models derived from BaseIOSchema, describes behavior through SystemPromptGenerator, and passes an Instructor client, model, prompt generator, and optional ChatHistory into AgentConfig. AtomicAgent.run() accepts typed input, calls the configured model API, and returns an object constrained by the selected output schema. Runtime information can be injected into the system prompt by implementing BaseDynamicContextProvider.get_info() and attaching the provider with register_context_provider(). Agents and tools can be chained by making one component's output schema match the next component's input schema; the documented query-agent example targets SearXNGSearchTool.input_schema directly. The installed atomic CLI opens Atomic Assembler, which downloads selected Atomic Forge tools. Listed tools cover arXiv, BoCha, Hacker News, SearXNG, Tavily, Wikipedia, weather, PDF reading, webpage scraping, YouTube transcripts, date and time, and calculation, while repository examples cover chat, image extraction, research, RAG, web search, tool routing, and video-to-structured-data workflows.
- A Python backend team can require model responses to match Pydantic fields before passing them into business logic.
- An engineer building a search or research pipeline can chain query generation, a SearXNG-style search tool, and answer generation through compatible schemas.
- A RAG application team can implement
BaseDynamicContextProviderto inject retrieved material into an agent's system prompt at runtime. - A project that may change model vendors can preserve its agents and schemas while replacing the Instructor client for OpenAI, Anthropic, Gemini, Groq, Ollama, or a compatible API.
- A prototype developer can use Atomic Assembler to download only the search, PDF, weather, or YouTube tools needed by the application.
- A production engineering team can use the Hooks System example as a basis for monitoring, performance metrics, error handling, and retry behavior.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install atomic-agentspip install instructor[groq]pip install instructor[anthropic]pip install instructor[google-genai]
How do you install or deploy this agent?
You need Python, network access, and valid credentials for the chosen model provider. The supplied material does not state a minimum Python version or prescribe credential environment-variable names. OpenAI support is included with the default package:
pip install atomic-agentsInstall the appropriate Instructor extra for another provider:
pip install instructor[groq]
pip install instructor[anthropic]
pip install instructor[google-genai]For local development from source:
git clone https://github.com/eigenwise/atomic-agents.git
cd atomic-agents
uv syncTo install every workspace package, including examples and tools:
uv sync --all-packagesHow do you use this agent?
Configure credentials as required by the selected provider SDK; the supplied material does not specify an exact environment variable. This documented OpenAI pattern sends a message and prints a schema-validated response plus three follow-up questions:
from pydantic import Field
from openai import OpenAI
import instructor
from atomic_agents import AtomicAgent, AgentConfig, BasicChatInputSchema, BaseIOSchema
from atomic_agents.context import SystemPromptGenerator, ChatHistory
class CustomOutputSchema(BaseIOSchema):
"""Custom structured response."""
chat_message: str = Field(..., description="The chat message from the agent.")
suggested_questions: list[str] = Field(..., description="Suggested follow-up questions.")
system_prompt_generator = SystemPromptGenerator(
background=["This assistant is knowledgeable, helpful, and suggests follow-up questions."],
steps=[
"Analyze the user's input to understand the context and intent.",
"Formulate a relevant and informative response.",
"Generate 3 suggested follow-up questions for the user."
],
output_instructions=[
"Provide clear and concise information in response to user queries.",
"Conclude each response with 3 relevant suggested questions for the user."
]
)
client = instructor.from_openai(OpenAI())
agent = AtomicAgent[BasicChatInputSchema, CustomOutputSchema](
config=AgentConfig(
client=client,
model="gpt-5-mini",
system_prompt_generator=system_prompt_generator,
history=ChatHistory(),
)
)
if __name__ == "__main__":
user_input = "Tell me about atomic agents framework"
response = agent.run(BasicChatInputSchema(chat_message=user_input))
print(f"Agent: {response.chat_message}")
print("Suggested questions:")
for question in response.suggested_questions:
print(f"- {question}")Launch the installed Atomic Assembler menu to download tools:
atomicFrom a cloned repository managed with uv, run:
uv run atomicSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
BaseIOSchema, Pydantic, and Instructor provide explicit, validated input and output contracts instead of relying only on free-form text.- Agents, tools, and context providers are designed as single-purpose components that can be composed or replaced through compatible schemas.
- Control flow remains ordinary Python, allowing teams to apply familiar testing, review, and error-handling practices.
- The documented provider surface includes OpenAI, Anthropic, Gemini, Groq, Ollama, Mistral, Cohere, and OpenAI-compatible APIs.
- The repository includes both quickstarts and fuller examples for RAG, research, search, multimodal extraction, orchestration, and hooks.
- This is an application framework rather than a deployable end-user agent; teams must supply their own service layer, interface, storage, and infrastructure.
- Runtime operation depends on an external or local model provider, whose credentials, pricing, rate limits, and availability remain outside the framework.
- Non-OpenAI providers require additional Instructor extras and may require client-configuration changes.
- Schema alignment and explicit Python orchestration improve control but leave workflow design, state management, and component integration to the developer.
- The supplied material does not state a minimum Python version, a production deployment recipe, or one standard credential configuration.
- Version 2.0 is identified as a major release, but the supplied material does not enumerate its migration changes, leaving upgrade effort from 1.x to be assessed.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Atomic Agents This agent | 65 · Some gaps | Library / SDKFree + model costs | ★ 6.4k | 11d ago | Python | OpenAI API · Claude API |
| Mirascope | 50 · Major gaps | Library / SDKFree + model costs | ★ 1.5k | 1d ago | Python | Claude API |
| Qwen Code | 73 · Some gaps | CLIFree + model costs | ★ 31k | today | TypeScript | OpenAI API · Claude API |
| Agentica | 69 · Some gaps | CLIFree + model costs | ★ 367 | 2d ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
Explicit schemas, on-demand tool downloads, and environment-variable API-key examples show some attention to permissions and data handling. Optional input hiding in tracing configuration also demonstrates a sensitive-data control. However, examples send user content to external models and MCP/tools can contact outside services; the packet does not describe pre-call confirmation, default permission boundaries, or operation rollback, so these controls are partial. Dependencies have version ranges, but no vulnerability-review evidence is supplied. Release guidance includes a hard-reset command for failure recovery without explaining data recovery. Author details are present, while publisher identity is not verified by the supplied material.
The README and guides describe schema-driven composition, and tests plus CI configuration show concrete quality checks. The static packet still contains inconsistencies: the README says OpenAI is included by default while installation guidance describes it as an Instructor extra, and requirements.txt has an older v1 constraint that conflicts with pyproject.toml metadata at v2.15.0. Bounded dependencies and CI's fresh-environment import check support availability, and an example gives a specific missing-key error; scores are reduced for documentation/metadata divergence and limited evidence of broader failure handling.
The project clearly targets Python developers and shows chat, structured extraction, RAG, search, multimodal, async, and multiple-provider scenarios. Schemas, context providers, and tool interfaces define capabilities, but the practical boundaries of Instructor-supported providers and external tools are not fully enumerated. Skills give fairly precise triggers for creating agents, schemas, tools, and context providers, but only a sample of skill content is supplied, and environment compatibility and limits remain incomplete.
The README, guides, FAQ, examples, and repository guidance form a clear information architecture with installation, quickstarts, common questions, and contribution steps; the MIT LICENSE is explicit. Naming and version information visibly conflict: repository guidance does not align fully with pyproject metadata, requirements.txt, and the README's v2 description. The packet provides a Beta status, version, and contribution channels, but no clear maintenance response commitment or thorough known-limitations list.
Typed inputs and outputs, composable components, CLI tool management, and numerous domain examples give developers practical patterns they can reuse, with clear marginal value. Costs include Python 3.12, Instructor, provider SDKs, API charges, and integration and maintenance of individual tools. The lightweight goal and dependency choices are discussed, but the core dependency list is substantial and cost-benefit guidance is incomplete.
Main README claims have partial corroboration in configuration, examples, tests, and CI workflows; the supplied tests demonstrate hook behavior and the workflow defines concrete checks. Some security-guide filtering and injection-defense snippets are recommendations, not evidence that the framework supplies those protections by default. The docs mix claims, examples, and advice without consistently distinguishing their evidence status, and the packet is partial, so cross-source verification is only adequate in part.
- Treat user input, history, and context as potentially sent to the configured external model; inspect network and data access before connecting MCP or downloaded tools.
- The README, requirements.txt, and pyproject.toml disagree on provider installation and versions; verify the target revision's package metadata and matching examples before implementation.
- Injection filtering and output-cleaning code in the security guide is illustrative advice, not evidence of built-in protection or a dependable security boundary.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Read before upgrading - AgentConfig.max_context_tokens has to be a positive number or None. Zero and negative values now fail validation instead of trimming the whole history before raising. (#475) - TokenCounter.count_text() counts the text alone. It used to wrap the text in a chat message, so every result was a few tokens too high (7 for an empty string on GPT-4). If you calibrated a budget against the old numbers, they drop by that amount. (#407) …View on GitHub ↗ -
Release notes excerpt
Read before upgrading - This release fixes a privacy leak in tracing. In 2.15.0 and 2.16.0, with hide_inputs on and hide_outputs off, a failed tool call, agent run or model attempt wrote the raw exception message and stack trace to the span's exception event and status description. A Pydantic validation error quotes the rejected input, so hidden tool arguments ended up in the trace. If you run with hide_inputs=True (or ATOMIC_AGENTS_TRACE_HIDE_INPUTS=true) and leave outputs visible, upgrade, and treat exception events in traces recorded by those two versions as possibly containing …View on GitHub ↗ -
Release notes excerpt
Read before upgrading - AgentConfig.model now defaults to gpt-5.6-terra. The old default, gpt-5-mini, is on OpenAI's deprecation list with a shutdown date of 2026-12-11. If you never set model, your agents switch models with this upgrade. Set model explicitly to stay on a specific one. (#355) - AgentConfig takes its mode from the Instructor client and warns when an explicit mode disagrees with the client. (#293) …View on GitHub ↗
FAQ
Does Atomic Agents itself cost money?
Is it restricted to OpenAI?
Does it autonomously manage an entire multi-agent workflow?
Can schema-constrained calls still fail?
Does Atomic Forge force every tool dependency into the project?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.