<!-- Copied from llms.txt by scripts/bundle_docs.py; edit the original and rerun it. -->
# europacore

> The agent and harness core for building agent-based applications: `AgentHarness` (a multi-turn, tool-calling loop with guardrails, checkpoint/resume, human-in-the-loop approval, streaming, retry, context compaction and delegation), an LLM layer over Bedrock, the Anthropic API and OpenAI, an HTTP + SSE server, declarative flows (FlowScript), a coding agent, fleets of coding tasks, and offline testing and evals. Python 3.11+.

Start with the README's quickstart, then the guide. `docs/api.md` is the public API: a name not listed there is internal. Every page here runs offline with `europacore.testing.ScriptedLLM` in place of a model. The guide and the reference pages also ship in the installed package: `europacore docs` lists them, `europacore docs TOPIC` prints one, and `europacore docs TOPIC --path` prints its file.

## Guide

- [The guide's contents](docs/guide/README.md): one page per topic, each ending in a snippet that runs offline
- europacore in pictures (`docs/showcase.md` in the europacore repository, not bundled): a screenshot tour of the harness, the coding agent, the `ec` and web clients, the flow designer and fleets
- [Building an agent](docs/guide/01-agent.md): tools, structured answers, option groups, models by name and failover, hooks, prompt templates, `europacore.configure()`, results and stop hints, security defaults
- [Durable state](docs/guide/02-durable.md): Postgres checkpoints and the run journal, approvals and `resume`, shutdown and recovery, steering, inspecting runs, long-term memory, telemetry
- [The server](docs/guide/03-server.md): `europacore serve`, `AgentRegistry`, editors over ACP, Slack, tool credentials
- [Flows](docs/guide/04-flows.md): `FlowRunner`, pauses, `flow_tool`, serving flows and the designer
- [Coding agents](docs/guide/05-coding.md): sandboxes, `build_coding_harness`, permission modes, fleets, design checks, the autonomous runtime
- [Testing and evals](docs/guide/06-evals.md): `ScriptedLLM`, `RecordingLLM`/`ReplayLLM` cassettes, `EvalSet`, `europacore eval`, the pytest fixtures

## Reference

- [Public API](docs/api.md): every public name with its signature and summary
- [Constructor](docs/constructor.md): every `AgentHarness` argument, its default and its option group
- [Events](docs/events.md): every `HarnessEvent` type a run emits
- [Settings](docs/settings.md): every `EUROPACORE_*` environment variable
- [Install and configure](docs/install.md): `europacore demo` (the showcase, offline, with a chat page and the designer), `europacore notebook` (the API notebooks in euporie), the extras, `europacore doctor`, the providers' environment variables
- [Server API](docs/server-api.md): the HTTP + SSE protocol; Server settings (`docs/server-settings.md` in the europacore repository, not bundled): running one
- [FlowScript](docs/flowscript.md): the flow language
- [Deprecations](docs/deprecations.md): what a release may change

## Examples

- minimal_agent.py (`examples/minimal_agent.py` in the europacore repository, not bundled): one tool and a scripted model
- delegation_agent.py (`examples/delegation_agent.py` in the europacore repository, not bundled): a sub-task handed to a specialist sub-agent
- mcp_agent.py (`examples/mcp_agent.py` in the europacore repository, not bundled): an MCP server's tools, with a permission rule that asks first
- model_router.py (`examples/model_router.py` in the europacore repository, not bundled): three tiers of model, the turn's tier judged by a scripted Jev
- memory_agent.py (`examples/memory_agent.py` in the europacore repository, not bundled): a fact saved in one session, preloaded in the next
- artifact_agent.py (`examples/artifact_agent.py` in the europacore repository, not bundled): a report written as an artifact, revised and published
- credentialed_tool.py (`examples/credentialed_tool.py` in the europacore repository, not bundled): a tool that needs an API key the person enters
- eval_in_ci (`examples/eval_in_ci/README.md` in the europacore repository, not bundled): an eval set with recorded cassettes, replayed offline by `europacore eval`
- kubernetes (`examples/kubernetes/README.md` in the europacore repository, not bundled): two replicas of `europacore serve` on Postgres, with probes, a graceful stop and the schema applied first
- server_agents.py (`examples/server_agents.py` in the europacore repository, not bundled): a registry to serve; graph_flow.py (`examples/graph_flow.py` in the europacore repository, not bundled): a FlowScript flow; coding_agent.py (`examples/coding_agent.py` in the europacore repository, not bundled): the coding agent on parallel worktree tasks

## Optional

- Long-term memory (`docs/memory.md` in the europacore repository, not bundled): org, user and project memories (a project's shared by its team), their markdown format and `europacore memory`
- Projects (`docs/projects.md` in the europacore repository, not bundled): what a team works in: one owner, members, sessions in a project, shared memory, project artifacts
- Superadmins (`docs/server-admin.md` in the europacore repository, not bundled): the server-wide role that suspends accounts, deletes and restores workspaces, and reassigns projects
- Skills (`docs/skills.md` in the europacore repository, not bundled): the procedural layer, `SKILL.md` folders in any harness, `/name`, profiles' skills, the rules a skill follows
- Artifacts (`docs/artifacts.md` in the europacore repository, not bundled): pages the agent makes for a person, their tools, the viewer and Cloudflare publishing
- Documents (`docs/documents.md` in the europacore repository, not bundled): files a person attaches to a session, indexed in the Index App, and the agent's tools to search, read, rewrite and rebuild them
- Model routing (`docs/model-routing.md` in the europacore repository, not bundled): a tier of model per turn, judged by Jev, within the task's budget and aware of prompt caches
- Sessions that share a repository (`docs/peers.md` in the europacore repository, not bundled): file claims, requests answered path by path, peer messages, cloud sessions and replicas
- Fleet (`docs/fleet.md` in the europacore repository, not bundled): durable, scored parallel coding tasks
- Where the fleet came from (`docs/fleet-origins.md` in the europacore repository, not bundled): the comparison it was designed from, and how a fleet differs from a flow and from a coder delegation
- Cloud (`docs/cloud.md` in the europacore repository, not bundled): moving sessions and fleet runs to another server and back
- Design checks (`docs/design.md` in the europacore repository, not bundled): the checks that keep a change from making a repository worse
- Learned rules (`docs/rules.md` in the europacore repository, not bundled): mistakes a person caught kept as rules in `.europacore/rules.toml`, replayed, offered back and tidied; a mistake in the code as a regression test
- Self-improvement (`docs/improve.md` in the europacore repository, not bundled): `europacore improve`, rounds that change a repository's harness files and keep a change only when its own suite passes more often
- Mods (`docs/mods.md` in the europacore repository, not bundled): behaviour added to a harness as files, by a person or the agent, each version approved before it loads
- Slack (`docs/slack.md` in the europacore repository, not bundled): `europacore slack`, a Socket Mode bot that lets people talk to a server's agents in Slack, approvals and questions as buttons
- Claude Code sessions (`docs/claude-code.md` in the europacore repository, not bundled): Claude Code served next to europacore's agents
- Threat model (`docs/threat-model.md` in the europacore repository, not bundled): trust boundaries, controls and their tests
- Developing europacore (`docs/development.md` in the europacore repository, not bundled): local checks and requesting the full CI gates
