This release is a pre-release and may not be stable for production use.
europacore
A language model on its own takes text in and gives text out. It can ask for a tool to be called but can't call one, and it remembers nothing from one request to the next. A harness is the program around the model that makes it an agent. It gives the model the conversation so far and the tools it may use, runs the calls the model asks for, hands back their results, and goes round again until the model has its answer.
That loop is the simple part. Most of a harness is what surrounds it:
- deciding what the model may do on its own and what a person must approve;
- keeping the conversation within the model's context window;
- saving each step, so a run can wait for a person or survive a restart;
- retrying what fails;
- handing parts of the work to sub-agents;
- showing progress as it happens;
- keeping spending within a budget.
Claude Code, for example, is the harness Anthropic built around its models for coding.
europacore is a harness for building your own agent-based applications, on whichever provider's models you choose. It includes:
AgentHarness: a multi-turn, tool-calling loop with:- guardrails
- checkpoint/resume and human-in-the-loop approval
- streaming
- provider-agnostic retry
- context compaction
- sub-agent delegation
- opt-in failure-spend governance (
failure_spend_governance=True): a fan-out cap, a circuit breaker for identically failing calls, and a failure budget that steers a failing run to answer early (failure_arm_after_distinct_calls=2arms it only once two different calls have failed, for tools that report ordinary misses as errors)
SingleShotAgent: one prompt in, one schema-validated output, in a single forced LLM call.ToolAgent: the base class for the tools the harness dispatches.- Built-in tools for planning, skills (the design) and delegation, each enabled by a flag.
enable_planning=Trueregisterstodo_writeand, by default, nudges the model to plan before substantial work;planning_mode="auto"keeps the tool and drops the nudge, so a one-line question costs no extra round-trip. - An LLM layer: a Chat-Completions-shaped
LLMcontract with Amazon Bedrock (Claude), Anthropic API and OpenAI (Responses API) providers, everything else through litellm (Gemini, Ollama, Groq, OpenRouter, ...), plus a(name, version)prompt registry. - Optional durable state and runtimes:
- Postgres checkpointer and run journal
- a Temporal-backed autonomous multi-agent runtime
- sandbox providers (local subprocess, AWS Lambda MicroVMs)
Moving code from the library's predecessor? See docs/migration.md.
Install
Python 3.11+. The core has few dependencies; everything else is an extra, imported only when you use it:
pip install --pre europacore # core only (--pre: the 0.4 releases are alphas)
pip install --pre 'europacore[server,bedrock,postgres]' # the server, Claude on Bedrock, Postgres state
europacore doctor --model claude-haiku-4-5 # what is installed and configured, and how to fix what is not
docs/install.md lists every extra, what europacore doctor checks, and the providers' environment variables.
Quickstart
Try it
One command serves the showcase offline, with no credentials: an assistant that plans, calls tools and asks before it saves a note, the Europa Bistro's table-booking flow, a refunds agent whose tool is a flow with an approval gate, and the flow designer with both flows in it:
pip install --pre 'europacore[server,graph]'
europacore demo # --repo DIR adds a sample repository and a coding agent that fixes it
npx @markmo/europacore-cli # the terminal client (Node 22); or open the chat link the demo printed
The chat page at the server's address is europacoreui's session UI (europacoreui is the full product app) around this server; the terminal client is ec. europacore demo --model claude-haiku-4-5 runs the same agents live.
A new project
europacore init makes an agent project that passes its tests and serves offline before any credentials are set:
europacore init my-agents # --model claude-haiku-4-5 to start on a live model
cd my-agents && pip install -e '.[dev]'
pytest # a scripted model plays the turns
npx @markmo/europacore-cli --spawn my_agents.agents:registry # serve it and chat with it in the terminal
It writes:
- an agent registry (
my_agents/agents.py), built with the option groups; - its tools, one of which waits for the user's approval;
- offline tests with an eval set (
evals/smoke.json); .env.exampleand aDockerfile;- an
AGENTS.mdand a Claude Code skill (.claude/skills/europacore) that tell a coding agent how the project works and to look europacore up witheuropacore docs; - a
pyproject.tomlthat depends oneuropacore[server], plus the extra the model's provider needs.
The default model, demo, is an offline stand-in (europacore.testing.DemoLLM) that plans and calls the tools when asked to. Set EUROPACORE_MODEL to go live, and check it with europacore doctor.
In code
An agent that runs offline on a core-only install (examples/minimal_agent.py):
from europacore.agents import AgentHarness, function_tool
from europacore.testing import ScriptedLLM, text, tool_call
@function_tool
def add(a: float, b: float) -> float:
"""Add two numbers."""
return a + b
llm = ScriptedLLM([tool_call("add", {"a": 2, "b": 40}), text("2 + 40 = 42")]) # plays the model
agent = AgentHarness(llm, tools=[add], system_prompt="You are a careful calculator.")
print(agent(question="What is 2 + 40?").text)
To go live, pass a real model instead of ScriptedLLM: create_model("claude-haiku-4-5") (europacore.llm) runs Claude on Bedrock, create_model("anthropic/claude-opus-5-5") on the Anthropic API, and create_model("gpt-6-luna") on OpenAI.
In a notebook
The same API, a step at a time: europacore notebook opens four notebooks (a first agent, durable state and approval, flows, evals) in euporie, a Jupyter client that runs in the terminal. They run offline, and your edits are kept:
pip install --pre 'europacore[notebooks,graph]'
europacore notebook # or `europacore notebook 02` for one; --list lists them
The guide
docs/guide goes from a first agent to agents that run unattended:
- Building an agent: tools, structured answers, option groups, models, hooks, prompt templates, results and stop hints, security defaults
- Durable state: checkpoints and the run journal, approvals, recovery, steering, inspecting runs, memory, tracing
- The server: HTTP and SSE, shared sessions, voice calls, editors over ACP, Slack, tool credentials
- Flows: FlowScript, pauses, flows as tools, the designer
- Coding agents: sandboxes, the coding agent and its monitors (a command or file watch whose output wakes the session), your own Chrome, computer use on your Mac, fleets, design checks, the autonomous runtime
- Testing and evals: scripted models, cassettes, eval sets,
europacore eval, pytest fixtures
The tutorials use those parts together. In twelve steps on a real model, they build the agents of one small restaurant, Le Petit Bistro: a first agent, approvals and durable runs, a server and its clients, memory, a flow and evals. Then the coding agent works on the restaurant's website, the team signs in, the host takes calls by voice, and it all goes to production.
europacore in pictures tours it all with screenshots: the coding agent and computer use, the ec terminal client, the web session UI, the Mac app, shared sessions, voice calls, the flow designer and fleets.
What is in it
| Package | What | Read |
|---|---|---|
europacore.agents |
AgentHarness, tools, guardrails, checkpointers and the run journal |
guide 1, 2 |
europacore.llm |
the model contract, providers, create_model, FallbackLLM |
guide 1 |
europacore.routing |
a tier of model per turn (fast, standard, capable), judged by Jev, within the task's budget | guide 1, model-routing.md |
europacore.server |
europacore serve: sessions, runs and resumable streams over HTTP; sessions several people share; voice calls through Pipecat |
guide 3, server-api.md, shared-sessions.md, voice.md |
europacore.credentials |
tools that act with a person's own account (OAuth, API keys) | guide 3, tool-oauth.md |
europacore.identity |
people signing in to a server (a password, Google, GitHub), in workspaces with roles; the server's superadmins; projects and their members; the people let into a session | sign-in.md, server-admin.md, projects.md, shared-sessions.md |
europacore.memory |
long-term memory across sessions: org, user and project scopes | guide 2, memory.md |
europacore.artifacts |
pages the agent makes for a person to open, keep and share, versioned, served and published | artifacts.md |
europacore.documents |
documents a person attaches to a session, indexed in the Index App: searched, read, rewritten, a deck rebuilt in a template | documents.md |
europacore.graph |
FlowScript flows and the designer | guide 4, flowscript.md |
europacore.coding |
the coding agent; its browser in your own Chrome; computer use, the apps on your Mac (europacore.agents.tools.desktop) |
guide 5, browser.md, desktop.md |
europacore.sandbox |
local, OS-sandboxed and MicroVM sandboxes | guide 5 |
europacore.peers |
coding sessions in one repository told about each other: file claims, requests answered path by path | peers.md |
europacore.fleet |
scored parallel coding tasks over one repository; Linear tickets to draft pull requests; design requests to design artifacts; deck requests to consulting decks | fleet.md, fleet-origins.md, fleet-linear.md, fleet-visual.md, fleet-decks.md |
europacore.cloud |
moving sessions and fleet runs to another server and back | cloud.md |
europacore.design |
design checks that keep a change from making a repository worse | design.md |
europacore.lessons |
learned rules: a mistake a person caught kept as a rule that would have caught it, and a mistake in the code as a regression test | rules.md |
europacore.improve |
europacore improve: rounds that change a repository's harness files (instructions, skills, rules, hooks), kept only when its own suite passes more often |
improve.md |
europacore.mods |
behaviour added to a harness as files, by a person or the agent itself, loaded once approved | mods.md |
europacore.autonomous |
a persisted multi-agent run graph, in process or on Temporal | guide 5 |
europacore.evaluation, europacore.testing |
eval sets, scripted models, cassettes | guide 6 |
europacore.channels |
europacore slack: people talking to a server's agents in Slack, each as themselves, a thread a shared session; approvals and questions as buttons; Socket Mode or HTTP, installed into many Slack workspaces |
guide 3, slack.md |
europacore.claude_code |
Claude Code sessions served next to europacore's own agents | claude-code.md |
The examples run offline: minimal_agent.py, delegation_agent.py, mcp_agent.py, memory_agent.py, artifact_agent.py, monitor_agent.py, browser_agent.py (on a real browser), credentialed_tool.py, eval_in_ci, linear_ticket_fleet (a Linear ticket to a draft pull request), release_fleet (tickets to one release with its changelog), the server registries, flows and the coding agent. kubernetes deploys the server as two replicas on Postgres.
Reference
- api.md: every public name with its signature; anything not listed there is internal. deprecations.md says what a release may change.
- constructor.md: every
AgentHarnessargument, its default and its group. - events.md: every event a run emits.
- settings.md: every
EUROPACORE_*variable;europacore configshows their values. - server-api.md and server-settings.md: the HTTP protocol, and running a server.
- threat-model.md: each trust boundary, its control and its test.
- llms.txt: this documentation's map, for coding agents.
The guide and these reference pages also ship in the package, so they work offline and match the installed version: europacore docs lists them, europacore docs api prints one, and --path prints its file for an agent to search.
Development
poetry install --all-extras
make quick # while iterating: mypy, ruff, the design checks and the tests nearest your changes
make check # the full gates: the whole suite too (or `make idle-install` to run them when the machine is idle)
docs/development.md has the other commands, and how to request the full CI gates.
Metadata
Release files for europacore 0.4.0a49
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| europacore-0.4.0a49.tar.gz | 6.2 MB | With provenance | Details for europacore-0.4.0a49.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| europacore-0.4.0a49-py3-none-any.whl | Python 3 | none | any | Details for europacore-0.4.0a49-py3-none-any.whl |
Total release size: 13.4 MB
Release files / europacore-0.4.0a49.tar.gz
| Download URL | europacore-0.4.0a49.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ff996d99dc702157142b7c2246a3733800ffcaffc071c3a7820e24cb1a14c5d
|
|
BLAKE2b-256 checksum How to use checksums |
c01ab5db929cbe8bdb7925e5879ce504d6f96bf277f0385fe71d0503a5eb041d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / europacore-0.4.0a49-py3-none-any.whl
| Download URL | europacore-0.4.0a49-py3-none-any.whl |
|---|---|
| Size | 7.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
269fd8100ae3d10af1e28de4b201aec2ff77114fd606da78aa2714073b810a19
|
|
BLAKE2b-256 checksum How to use checksums |
366a7291ef4ef37c7281d9344634498d831737efb59827b01db4078f38426d92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for europacore 0.4.0a49
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for europacore-0.4.0a49.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.