Skip to content

Building AI agents, atomically

Fix stale AI-facing docs: AGENTS.md v2 API, version drift, file casing

Eigenwise7e85456d9984
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 01261df..5b7f081 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -38,10 +38,6 @@ jobs:
run: |
uv sync
- - name: Sync version from pyproject.toml
- run: |
- uv run python scripts/sync_version.py
-
- name: Build singlehtml for documentation extraction
run: |
cd docs
diff --git a/agents.md b/AGENTS.md
similarity index 85%
rename from agents.md
rename to AGENTS.md
index e925db1..d9e4b7c 100644
--- a/agents.md
+++ b/AGENTS.md
@@ -40,19 +40,15 @@ atomic-monorepo/
### 1. atomic-agents/ - Core Framework
-**Published as:** `atomic-agents` on PyPI
-**Current Version:** 2.2.2
+**Published as:** `atomic-agents` on PyPI (version lives in the root `pyproject.toml`)
**Purpose:** Main Python package containing all core framework components
**Key Components:**
- `agents/` - AtomicAgent class and agent configuration
-- `base/` - Base abstractions (BaseIOSchema, BaseTool, BasePrompt, BaseResource)
-- `context/` - Chat history and system prompt generation
+- `base/` - Base abstractions (BaseIOSchema, BaseTool, BaseToolConfig)
+- `context/` - ChatHistory, SystemPromptGenerator, dynamic context providers
- `connectors/` - External integrations (MCP support)
-- `lib/` - Extended library components (components, factories, utils)
-- `memory/` - Memory management systems
-- `prompting/` - Prompt engineering utilities
-- `services/` - Service integrations
+- `utils/` - Shared utilities (token counting, formatting)
**Installation:**
```bash
@@ -138,14 +134,18 @@ Every Atomic Agent consists of:
All data flows through typed Pydantic schemas:
```python
-from atomic_agents.base import BaseIOSchema
+from atomic_agents import BaseIOSchema
from pydantic import Field
class CustomOutputSchema(BaseIOSchema):
+ """Response with follow-up suggestions."""
+
chat_message: str = Field(..., description="The response message")
suggested_questions: list[str] = Field(..., description="Follow-up questions")
```
+Every `BaseIOSchema` subclass requires a non-empty docstring — the framework enforces this at class-definition time, and the docstring plus field descriptions flow into the LLM prompt via Instructor.
+
### Composability Pattern
Agents can be chained by connecting output schemas to input schemas:
@@ -161,15 +161,21 @@ This creates predictable data flow pipelines with type safety at each step.
Dynamic context injection pattern allows runtime enhancement of prompts without modifying agent code:
```python
-context_provider = CustomContextProvider()
-agent = AtomicAgent(
- system_prompt=prompt,
- input_schema=InputSchema,
- output_schema=OutputSchema,
- context_providers=[context_provider] # Inject runtime context
-)
+from atomic_agents.context import BaseDynamicContextProvider
+
+class SearchResultsProvider(BaseDynamicContextProvider):
+ def __init__(self, title: str):
+ super().__init__(title=title)
+ self.results: list[str] = []
+
+ def get_info(self) -> str:
+ return "\n".join(self.results)
+
+agent.register_context_provider("search_results", SearchResultsProvider("Search Results"))
```
+Providers can also be passed up front via `SystemPromptGenerator(context_providers={...})`. `get_info()` runs on every `agent.run()`, so keep it free of blocking I/O.
+
### Model Context Protocol (MCP)
Full support for MCP enables connection to external tools and resources through standardized interfaces:
@@ -324,32 +330,46 @@ Recent improvements include:
## Quick Start
```python
-from atomic_agents import AtomicAgent
-from atomic_agents.base import BaseIOSchema
+import os
+
+import instructor
+import openai
from pydantic import Field
-# Define schemas
+from atomic_agents import AgentConfig, AtomicAgent, BaseIOSchema
+from atomic_agents.context import ChatHistory, SystemPromptGenerator
+
class InputSchema(BaseIOSchema):
+ """User's question for the agent."""
+
query: str = Field(..., description="User's question")
class OutputSchema(BaseIOSchema):
+ """Agent's answer with a confidence estimate."""
+
answer: str = Field(..., description="Agent's response")
confidence: float = Field(..., description="Confidence score 0-1")
-# Create agent
-agent = AtomicAgent(
- system_prompt="You are a helpful assistant. Provide accurate answers.",
- input_schema=InputSchema,
- output_schema=OutputSchema,
- model="gpt-5-mini",
+client = instructor.from_openai(openai.OpenAI(api_key=os.environ["OPENAI_API_KEY"]))
+
+agent = AtomicAgent[InputSchema, OutputSchema](
+ config=AgentConfig(
+ client=client,
+ model="gpt-5-mini",
+ history=ChatHistory(),
+ system_prompt_generator=SystemPromptGenerator(
+ background=["You are a helpful assistant. Provide accurate answers."],
+ ),
+ )
)
-# Run agent
result = agent.run(InputSchema(query="What is atomic computing?"))
print(result.answer)
print(f"Confidence: {result.confidence}")
```
+The type parameters on `AtomicAgent[In, Out]` carry runtime information (they drive Instructor's `response_model`), so write them explicitly and keep them accurate. The client must always be wrapped with Instructor — a raw provider SDK client will not enforce output schemas.
+
---
## Philosophy Summary
diff --git a/README.md b/README.md
index fb2b8bf..094ed79 100644
--- a/README.md
+++ b/README.md
@@ -410,8 +410,6 @@ If you want to learn more about the motivation and philosophy behind Atomic Agen
## Star History
-## Star History
-
<a href="https://www.star-history.com/?type=date&repos=eigenwise%2Fatomic-agents">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=eigenwise/atomic-agents&type=date&theme=dark&legend=top-left&sealed_token=bLmINE964wFC41alauDl3hSyqW8sm5FyyW99qO_99iZLJ5RG_Mqygi8SrdMmVx06pCB-IdgNUbaiN_e57ToEL3XA1WAliiCjyA8TAgXAPUYsW1OPAJunEw" />
diff --git a/claude-plugin/atomic-agents/CHANGELOG.md b/claude-plugin/atomic-agents/CHANGELOG.md
index 57f84df..2819cf6 100644
--- a/claude-plugin/atomic-agents/CHANGELOG.md
+++ b/claude-plugin/atomic-agents/CHANGELOG.md
@@ -5,6 +5,27 @@ All notable changes to the Atomic Agents Claude Code Plugin will be documented i
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+### Changed
+
+- Rebranded BrainBlend → Eigenwise: marketplace name, URLs, and install docs now point at the `eigenwise` GitHub home. Install via `/plugin marketplace add eigenwise/atomic-agents`.
+- `new-app` MiniMax default model updated to MiniMax M3.
+
+### Fixed
+
+- Quoted `argument-hint` YAML values in skill frontmatter so GitHub Copilot CLI ≥1.0.65 loads all skills ([#265](https://github.com/eigenwise/atomic-agents/pull/265)).
+
+## [2.1.0] - 2026-04-29
+
+### Added
+
+- Four action-oriented creation skills: `create-atomic-schema`, `create-atomic-agent`, `create-atomic-tool`, `create-atomic-context-provider`. Each walks a clarify → write → verify → hand-off workflow for its component type, auto-triggering on the matching phrasing ("create a schema", "add a tool", ...). The `framework` skill and `new-app` scaffolder route to them instead of duplicating the material.
+
+### Fixed
+
+- `atomic-reviewer` no longer flags current-generation model names as errors.
+
## [2.0.1] - 2026-04-16
Bug-fix release addressing two recurring false positives from `atomic-reviewer` reported in [issue #238](https://github.com/eigenwise/atomic-agents/issues/238).
diff --git a/docs/conf.py b/docs/conf.py
index 9a19ac0..7eded9d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,13 +1,17 @@
import os
import sys
+import tomllib
+from pathlib import Path
sys.path.insert(0, os.path.abspath(".."))
project = "Atomic Agents"
copyright = "2026, Kenny Vaneetvelde"
author = "Kenny Vaneetvelde"
-version = "2.0.4"
-release = "2.0.4"
+
+with open(Path(__file__).resolve().parent.parent / "pyproject.toml", "rb") as f:
+ version = tomllib.load(f)["project"]["version"]
+release = version
extensions = [
"sphinx.ext.autodoc",
diff --git a/scripts/sync_version.py b/scripts/sync_version.py
deleted file mode 100644
index adbd325..0000000
--- a/scripts/sync_version.py
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/env python3
-"""
-Sync version from pyproject.toml to docs/conf.py
-"""
-
-import re
-from pathlib import Path
-
-# Define paths
-PROJECT_ROOT = Path(__file__).parent.parent
-PYPROJECT_FILE = PROJECT_ROOT / "pyproject.toml"
-DOCS_CONF_FILE = PROJECT_ROOT / "docs" / "conf.py"
-
-def get_version_from_pyproject():
- """Extract version from pyproject.toml using regex"""
- with open(PYPROJECT_FILE, 'r') as f:
- content = f.read()
-
- # Look for version line in [project] section
- match = re.search(r'^version = ["\'](.*?)["\']', content, re.MULTILINE)
- if match:
- return match.group(1)
- else:
- raise ValueError("Could not find version in pyproject.toml")
-
-def update_docs_conf(version):
- """Update version in docs/conf.py"""
- with open(DOCS_CONF_FILE, 'r') as f:
- content = f.read()
-
- # Replace version line
- content = re.sub(
- r'^version = "[^"]*"$',
- f'version = "{version}"',
- content,
- flags=re.MULTILINE
- )
-
- # Replace release line
- content = re.sub(
- r'^release = "[^"]*"$',
- f'release = "{version}"',
- content,
- flags=re.MULTILINE
- )
-
- with open(DOCS_CONF_FILE, 'w') as f:
- f.write(content)
-
- print(f"Updated docs/conf.py to version {version}")
-
-def main():
- """Main function"""
- try:
- version = get_version_from_pyproject()
- print(f"Found version {version} in pyproject.toml")
- update_docs_conf(version)
- except Exception as e:
- print(f"Error: {e}")
- exit(1)
-
-if __name__ == "__main__":
- main()
\ No newline at end of file