Observed since 20 Oct, 21:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Durable, policy-aware orchestration primitives for multi-agent systems
agent-company-core is an alpha Python framework for durable, policy-aware
multi-agent workflows. Bring your own model, create a persistent mission, and
keep model decisions separate from the effects an application is allowed to
apply.
Alpha software: the API is useful for prototypes and internal tools, but it is not production-ready. Threat-model your application before using sensitive data or consequential effects.
Read the documentation site for the guided quickstart, concepts, provider setup, and contributor guide.
The fastest path needs no account, API key, Docker, database server, or network call:
python -m pip install agent-company-core
agent-company demo
The deterministic demo creates a durable mission, delegates by capability, runs a typed FakeModel decision, reopens the SQLite state, records redacted audit events, and pauses at approval and STOP boundaries.
1. created durable mission status=received
2. delegated by capability agent=researcher
3. FakeModel typed decision status=completed
4. redacted audit trail events=6
5. reopened persistent state status=completed
6. human approval boundary status=waiting_approval
7. persistent STOP boundary status=stopped
Demo complete: offline, deterministic, no credentials or network.
Agent applications need more than a model call: they need state that survives restarts, explicit approval for sensitive effects, predictable recovery, and a record of what actually happened. The core stays provider-neutral so an application can use a fake model locally, an optional hosted provider, or a local OpenAI-compatible server without changing mission contracts.
flowchart LR
A[Application or CLI] --> E[MissionEngine]
E --> C[Typed Mission and AgentDecision]
E --> R[Structured Model Router]
R --> P[ModelProvider]
E --> G[Risk and Approval Policy]
G --> T[ToolRegistry]
E --> S[Persistent STOP]
E --> M[MemoryStore]
E --> DB[(SQLite default)]
E --> L[Redacted JSONL audit]
P -. optional .-> AN[Anthropic / Claude]
P -. optional .-> OA[OpenAI-compatible / Ollama]
P -. optional .-> GO[Google Gen AI]
E -. optional .-> X[Temporal gateway]
The model proposes a typed intention. MissionEngine validates that
intention, checks STOP and policy boundaries, and applies effects only through
registered interfaces. Message text is not a hidden business router.
FakeModel and a small agent-company CLI.| Provider | Adapter | Install extra | Structured decisions | CI mode |
|---|---|---|---|---|
| FakeModel | built in | none | Pydantic validation | deterministic |
| Anthropic Claude | AnthropicModel | anthropic | JSON + Pydantic validation | mocked |
| OpenAI-compatible | OpenAICompatibleModel | openai | JSON + Pydantic validation | mocked |
| Google Gen AI | GoogleModel | google | SDK parsed response | mocked boundary |
| Ollama/local | OpenAI-compatible adapter | openai | JSON + Pydantic validation | mocked |
Provider SDKs are optional. Model identifiers are configuration, not package
defaults. For example, Anthropic currently documents claude-sonnet-4-6 as an
active model, but applications should check the provider catalog before
deploying. See the provider matrix,
Anthropic guide, and
OpenAI-compatible guide.
python -m pip install agent-company-core
agent-company run "Review a harmless local note"
For a library application:
import asyncio
from pathlib import Path
from agent_company_core import MissionCreate, MissionEngine
from agent_company_core.persistence import SQLiteStore
async def main() -> None:
engine = MissionEngine(store=SQLiteStore(Path("runtime/state.sqlite3")))
mission = engine.create_mission(
MissionCreate(title="First mission", objective="Complete a harmless example")
)
result = await engine.run_mission(mission.id)
print(result.status.value, result.summary)
asyncio.run(main())
The default provider is FakeModel: the example is local, deterministic, and
does not perform an external action. SQLite state, STOP state, and JSONL audit
events remain available after a process restart.
agent-company --version
agent-company doctor
agent-company demo
agent-company init my-agent-app
agent-company run "Summarize a local task"
doctor reports Python/package versions, optional SDK availability, writable
runtime/database readiness, and only whether provider configuration is present;
it never prints credential values. init creates a small understandable
starter project rather than a large generated scaffold.
python -m pip install "agent-company-core[anthropic]"
python -m pip install "agent-company-core[openai]"
Anthropic uses ANTHROPIC_API_KEY and a configured AnthropicModel(model=...).
The generic OpenAI-compatible adapter uses OPENAI_API_KEY,
OPENAI_BASE_URL, and model. A local server may use a custom base URL and a
non-secret placeholder key. No key belongs in source, examples, or CI.
Runnable provider-shaped examples use mocked clients by default; live calls
are explicit and are never part of the test suite. See
examples/anthropic_claude/, examples/openai_compatible/, and
examples/local_ollama/.
Each example has a short README and a runnable entrypoint where appropriate:
basic: durable mission basics.human_approval: exact approval resolution.stop_recovery: persistent STOP and resume.capability_delegation: capability-based
agent selection.custom_tool: a policy-aware registered tool.custom_provider: a provider implementing the
neutral protocol.anthropic_claude: Claude adapter and typed
decisions without a default network call.openai_compatible: hosted or compatible
endpoints.local_ollama: a zero-paid-API local path.fastapi_integration: reference app usage.research_team: planner, researcher, and
reviewer missions with durable state.The project is alpha. Policy, exact-match approvals, persistent STOP, and
redacted audit logs are application controls, not a complete security system.
RestrictedRunner is an experimental local runner, disabled by default; it is
not a hostile-code sandbox and provides no OS/container isolation. Keep it
disabled for untrusted input and use a separately isolated execution service
when needed. Read SECURITY.md before enabling effects.
uv sync --all-extras --dev
uv run pytest
uv run ruff check src tests scripts
uv run mypy src
uv build
Start with CONTRIBUTING.md and the architecture guide. Please open a focused issue before a large API or security-boundary change. The project is licensed under Apache-2.0.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 16 Sept 2026 | 17 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:41 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5e4f8a2b6ae9a0d92a8c3727f3b8c6d043498813e7520ddd9b4e85aafa9a78c5