Changelog
Public releases of the CoSens Python SDK and the service features they work with.
Python releases of cosens-sdk on PyPI, newest first. Dates are PyPI upload dates (UTC). The full notes, including TypeScript, are in the SDK changelog. The TypeScript SDK is built from SDK main and has no registry release yet.
pip install --upgrade cosens-sdk
Service features
What the hosted Memory and RSI services offer today, as documented in the Docs:
- Cloud RSI. CoSens learns Recipes with its own models, authenticated by your API key.
RSIClient()uses it by default from Python 0.9.0. See Connect to CoSens. - Upload your own Recipe. Publish a Recipe file you wrote as version 1, with
recipe_insert(path)in cloud mode (Python 0.9.2) or the RSI MCP toolrsi_recipe_create. See the Recipe file format. - One MCP endpoint. Connect
https://rsi.cosens.ai/mcpfor the Memory and RSI tools, with your API key in anAuthorizationheader, or with OAuth sign-in for the Memory tools (ChatGPT and Claude connectors). The separate Memory endpoint is gone. See Connect the MCP server.
0.9.2 · 2026-11-21
- Cloud
recipe_insert(path)uploads your own Recipe. The SDK checks the Skill Markdown file locally (YAML frontmatter with a nonemptynameanddescription), and the service publishes it as version 1. Local mode is unchanged.
0.9.1 · 2026-11-20
- Supported Memory calls accept an HTTPS service URL and an explicit API key per call.
- Local clarification continuations can start automatically.
- Local
recovertakes a Recipe ID andretry_keyto resume a timed-out execution from its checkpoints. - Local Recipe tests can run Python in an isolated Docker workspace when a trusted local image is configured.
0.9.0 · 2026-11-19
RSIClient()with no arguments is cloud mode: the CoSens service learns with CoSens models, authenticated byCOSENS_API_KEY(orapi_key=andbase_url=). Only the files named inevidenceare uploaded. Methods and results match local mode.RSIClient(data_dir=..., config=...), ormode="local", keeps the local Worker unchanged.
0.8.3 · 2026-11-19
- Structured results whose fields arrive as the text
"None"or"null", or as JSON strings, are decoded leniently, so models that stringify nested results no longer fail analysis.
0.8.2 · 2026-11-19
configaccepts optionalmax_tokensandtimeout. Whenmax_tokensis unset, the completion budget is left to the model endpoint, so reasoning models are not cut off.- Model requests name the SDK in the User-Agent (
cosens-sdk-python/<version>). - Retry messages name the fields to fix when a structured result does not validate.
0.8.1 · 2026-11-19
Breaking. execution_create no longer takes base_recipe_id: to revise a Recipe, add an evidence file with role: "recipe". execution_list and recipe_list take an optional ID filter instead of paging, and recipe_get returns the Recipe's ID, name, timestamps, version IDs and selected version. The local SQLite store upgrades to schema v5 on start; stop Workers of older versions on the same data directory first.
0.8.0 · 2026-11-19
Breaking. The package becomes the RSI SDK, cosens.rsi. RSIClient(data_dir=..., config=...) runs learning on your machine with your own tool-calling model: a Worker extracts feedback, analyzes the evidence, writes Rubrics and a Recipe, replays the task, scores the result and publishes the version that passes. The earlier OpenAI wrapper, CoSensClient and cosens.local.LocalRSI are removed; applications that need them stay on 0.7.0.
0.7.0 · 2026-11-13
- Local Recipes upload to the service's Recipe store, with
upload_recipe,get_recipe,list_recipesandsearch_recipes. - Recipes can hold more steps, lessons and text, and keep the conventions that carry across tasks.
0.6.1 · 2026-11-10
- Importing
cosens.localwithout thelocalextra names the install command to run.
0.6.0 · 2026-11-09
cosens.local.LocalRSIruns the Recipe workflow in your own process with your own model. Installcosens-sdk[local].
0.5.0 · 2026-11-08
- First release on PyPI, licensed under Apache-2.0.