Skip to content

supervis v1.3.0 — safety rails, any OpenAI-compatible provider

Latest

Choose a tag to compare

@arikusi arikusi released this 02 Aug 01:04

Safety rails, provider reach, and the test suite that should have been there already.

Added

base_url is configurable. supervis has always spoken plain OpenAI chat-completions to DeepSeek; the endpoint was just hardcoded. Point it at OpenRouter, Moonshot, Zhipu, Together, a local vLLM or Ollama server. New base_url key, SUPERVIS_BASE_URL env var, and SUPERVIS_API_KEY as a provider-neutral alias for DEEPSEEK_API_KEY (which still works).

[pricing] config section. supervis only ships DeepSeek's rate card, so a model it has never heard of is counted but not priced — the status bar says cost unknown instead of quoting DeepSeek's numbers for somebody else's model. Declare input, output, and optionally cached per 1M tokens to get real figures back.

max_turns (default 50). The agent loop's only natural exit was the model deciding to stop calling tools, so a model that kept re-dispatching the same step ran until the budget or the user stopped it. Set it to 0 to disable.

The stuck cap now stops. After five attempts that fail the same way, supervis used to print "looks stuck" and keep grinding. It stops, hands control back, and queues the next turn on pro — so whatever hint you come back with is answered by the stronger model.

py.typed, plus dependabot, issue and PR templates, a pre-commit config, and a Makefile covering the same checks CI runs.

Fixed

Ctrl+Z during a long reasoning turn did nothing visible. The interrupt flag was set but nothing read it until the stream finished on its own. The stream is closed on interrupt now, and half-streamed tool calls are dropped rather than sent back with truncated JSON arguments.

A single long request never compacted its history. Summarization only ran when a new user message arrived, so one request that ran eighty turns grew unbounded. It runs inside the agent loop too. The tail boundary may now land on an assistant message, not only a user one, which is what makes mid-loop compaction possible at all.

Summarization failures vanished silently. A bare except: pass meant a failing summarizer looked identical to a working one, and the resulting context bloat was unexplainable.

A broken config file was ignored without a word, and the API key file was written before being locked down. Both fixed: config errors name the file and the reason, and the key file is created 0600 rather than chmod'ed after the fact.

Changed

Leaving DeepSeek changes two more things, both handled: naming a model without a pro_model collapses tiering onto that one model rather than escalating to a DeepSeek id your endpoint has never heard of, and the DeepSeek-only thinking extension is no longer sent to providers that would reject it. /model <id> takes an arbitrary model id verbatim when you are off DeepSeek, while still catching typos on DeepSeek itself.

Version lives in one place now. CI gained a coverage floor, pip-audit, and a build job that installs the wheel and runs it. The release workflow verifies the tag matches __version__ and re-runs lint, types, and tests before uploading — a tag push does not trigger CI, so publishing used to depend on nobody having tagged a broken commit.

Housekeeping

Tests 140 to 294, coverage 49% to 87%. orchestrator.py, commands.py, app.py, events.py, and pricing.py had no tests at all before this release.

pipx upgrade supervis