Skip to main content

semora

Durable agent runtime for Python. This is the core: contracts, control points, tool execution, the orchestrator, the plain async while planner, and AgentRuntime.

By default AgentRuntime drives the planner directly — no orchestrator, no ledger:

from semora import Agent, AgentRuntime, ChatModel

model = ChatModel(model="gpt-4.1")
agent = Agent("reviewer", "Reviews repositories", model, tools, system_prompt)
outcome = await AgentRuntime().run("attempt-42", agent, "inspect this repository")

This path cannot suspend or recover a crashed round. Attach a ledger when those guarantees are required:

from semora import AgentRuntime, MemorySteps

runtime = AgentRuntime(store=MemorySteps())
outcome = await runtime.run("attempt-42", agent, "inspect this repository")

Policy lives on Controls / ControlPlane (on_inputs, before_model, pre_tool_use, post_tool_use, before_finish, on_resume, on_suspend). before_finish can refuse an ending and send the loop around again.

semora_coding.builtins.builtin_tools() supplies read, write, edit, grep, glob, Bash, and web_fetch. web_search is not included. Bash stays disabled until ExecToolOptions.allow_list is set. File and process effects use the WorkspaceProvider injected by AgentRuntime (semora.workspace).

Install extras beside it:

semora the runtime, with in-memory MemorySteps
semora[openai] langchain-openai
semora[anthropic] langchain-anthropic
semora[google] langchain-google-genai
semora[xai] langchain-xai
semora[openrouter] OpenAI adapter for OpenRouter
semora[postgres] Postgres ledger (semora_store_pg)
semora[permissions] permission rule table (semora_permissions)
semora[ui] local console (semora_ui)

See the repository README for examples.

Metadata

Release files for semora 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semora 0.2.0
File Size Uploaded Provenance Actions
semora-0.2.0.tar.gz 84.0 kB Without provenance Details for semora-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for semora 0.2.0
File Interpreter ABI Platform Actions
semora-0.2.0-py3-none-any.whl Python 3 none any Details for semora-0.2.0-py3-none-any.whl

Total release size: 179.7 kB

Release files / semora-0.2.0.tar.gz

Download URL semora-0.2.0.tar.gz
Size 84.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d6018b430e154e81b12dd83b48615cf2c8b07284d8c52410eba37ab570be6ab
BLAKE2b-256 checksum
How to use checksums
20dd909ce15ff6f1dc69775d74b64ce7358dddc10aa636534396a62e38f60ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / semora-0.2.0-py3-none-any.whl

Download URL semora-0.2.0-py3-none-any.whl
Size 95.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dbc3dedc859358b08e76e5f081b1598813a7b908393c6b4c7499c02f836d903
BLAKE2b-256 checksum
How to use checksums
166cedbccb0e6bbfd6928e4e10bf08e5b7b32228931310ed2e22da4eae313c39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for semora 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page