Skip to content
Open source · Apache-2.0

The agent runtime for Python.

Tools, permissions, sub-agents, MCP, scheduling and durable sessions in one package you can read, audit and embed. Zero dependencies. Any model.

uv pip install "tess-core @ git+https://github.com/drost-ai/tess-core.git"
agent.py
import asyncio
from tess_core import SessionOptions, start_runtime

async def main():
    runtime = await start_runtime(
        "~/.my-agent",
        provider_registry="providers.yaml",
        session_options=lambda sid, why: SessionOptions(provider="claude"),
    )
    session = await runtime.sessions.open()
    result = await session.run_turn("Group every TODO by owner.")
    print(result["text"])
    await runtime.stop()

asyncio.run(main())

That is a full agent. It edits files, runs commands under a permission policy, delegates to sub-agents, and can be resumed tomorrow from the same session.

0runtime dependencies
30built-in tools
1,600+tests, all offline
Anymodel, per session
Why Tess Core

Agents have outgrown the request and response loop.

A useful agent holds a conversation for weeks, runs work in the background, wakes itself on a schedule, asks before it touches something that matters, and survives a restart without losing its place. That is not a prompt wrapper. It is a runtime, and now there is one in Python.

Zero dependencies

The standard library and 88,000 lines you can read. Nothing else in your supply chain, and no version conflicts with your application.

Any model, one interface

Anthropic, OpenAI, Google Gemini, any OpenAI-compatible endpoint, or a model on your own hardware. Choose per session.

Complete, not assembled

The agent loop, tools, permissions, sub-agents, MCP, scheduling and persistence are all here and already work together.

Embedded in your process

A library, not a server. Your application decides how each session is set up and receives every event.

Nothing off the record

Watch every step of a turn.

Each model call, tool call and permission decision reaches your application as an event. Stream them to an interface, write them to an audit log, or measure cost from them.

The event catalogue
One turn, as your application sees it
uv run python -m tess_core run -p "Fix the flaky test" --output-format stream-json
turn.started
tool.startedGrep "flaky|retry" tests/
tool.completedGrep 3 matches
tool.startedRead tests/test_sync.py
permission.requestedEdit tests/test_sync.py
permission.decidedallow (rule: Edit(tests/**))
tool.startedBash pytest tests/test_sync.py
tool.completedBash 12 passed
message.assistantThe test raced the writer. It now waits for the flush.
turn.completedend_turn · 4 tool calls
What is inside

Everything an agent needs, already working together.

Built for production

What an engineering organisation asks of infrastructure.

Tess Core runs a personal AI that stays up for months. The same properties make it fit for a company to depend on.

  • An auditable supply chainNo third-party runtime dependencies. What you review is what runs.
  • Credentials stay out of configurationProfiles name an environment variable or a managed reference. Literal keys are rejected.
  • Explicit over ambientWith a provider registry nothing is discovered, guessed or silently fallen back to.
  • Least privilege by defaultTools ask before acting. File tools stay in the workspace. Sub-agents never exceed their parent.
  • Durable, inspectable statePlain JSON files under one directory you choose. No database to operate.
  • One process, no fleetNo broker, queue or external service. It scales the way your application does.
  • Bounded everythingStartup, requests, output and cleanup all have limits. 147 documented settings tune them.
  • A stable contractThe names you may import are listed, and the test suite enforces the list.
Read the security guide

Fifteen lines to a working agent.

Install it, declare a model, run a turn. The getting-started guide takes about five minutes.