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"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.
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.
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 catalogueEverything an agent needs, already working together.
Sessions that last
Open, close and reopen conversations by id. State survives crashes and restarts.
The agent loop
Streaming turns, parallel tool calls, cancellation, limits, and a guard against going in circles.
30 built-in tools
Files, shell, web, sub-agents, background tasks, monitors, git worktrees, MCP and scheduling.
Your tools
Hand over a function and the model can call it, under the same permission rules.
Permissions
Five modes, allow and deny rules, path confinement, and prompts your application answers.
Sub-agents
Agents that start agents, with depth and concurrency limits and results that always arrive.
MCP, contained
stdio, HTTP and SSE servers with bounded startup and guaranteed process cleanup.
Self-managing context
Token accounting, verified compaction, prompt caching, and artifacts for large results.
A scheduler
Durable jobs in any time zone that fire as agent turns or as your own handlers.
Background work
Long commands run under a supervisor while the conversation moves on.
Multi-provider
Streaming, images, reasoning effort, usage and cost, and recovery from broken streams.
Observable
Every turn, tool call and permission decision is an event. Nothing happens off the record.
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.
Fifteen lines to a working agent.
Install it, declare a model, run a turn. The getting-started guide takes about five minutes.