Changelog
All notable changes to this project are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.
Unreleased
Added
-
Five more decision APIs, all opt-in through
JEV_CODE_PROVIDER:azure: OpenAI's Decisions API on your Azure OpenAI resource (AZURE_OPENAI_API_KEY,AZURE_OPENAI_ENDPOINT).foundry: Microsoft-Decision-1.1 on your Microsoft Foundry resource (AZURE_API_KEY,AZURE_ENDPOINT).gemini: Google's Gemini Decisions API (GEMINI_API_KEY).perplexity: Perplexity's Decisions API (PERPLEXITY_API_KEY).cloudflare: Cloudflare's Clef models on Workers AI (CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID).
Every tool works unchanged on each: jev-code translates the request and the answer.
setupoffers them when it asks for a key, and asks for the resource endpoint or account id when the host needs one. Details per host are in docs/hosts.md.
Security
-
A security gate runs on every pull request, push to
main, weekly, and on each release tag:npm auditof runtime dependencies;- CodeQL (
security-extended); - dependency review on pull requests;
- zizmor over the workflows;
- a package-contents check that only allowlisted files ship and that none looks like a secret.
The release workflow creates a release only when the gate passes. Publishing to npm stays manual.
-
Every workflow action is pinned to a full commit SHA. Workflow permissions are per job and least privilege, checkouts do not persist credentials, and the release path no longer uses the npm cache.
-
npm run check, and soprepublishOnly, now runscheck:package. -
Releases begin with a security review of the diff since the last tag, defined in CONTRIBUTING.md and available as
/release-security-reviewin Claude Code. -
A key containing whitespace or a control character (a pasted line break, say) is refused before any request. Node's HTTP stack would otherwise reject the header and quote it, key included, in an error that reached the agent. The client also removes the key from every error it raises.
-
setup --projectno longer writes the key into.mcp.jsonoropencode.json, files meant to be committed. It writes${TYPESAFE_API_KEY}(Claude Code) or{env:TYPESAFE_API_KEY}(OpenCode), which the harness expands from your shell. Export the key before starting the agent. Running it again over a file written by an earlier version replaces the key with the reference and tells you to rotate the key and delete the backup, which still holds it. -
Config files that setup writes itself with a key, and every backup, are readable by their owner only (0600; new directories 0700; macOS and Linux). A backup never overwrites an existing file.
-
Redirects are no longer followed, so a 3xx answer cannot forward the payload to another origin. Answers over 1 MiB are refused, the timeout covers reading the answer, and server text quoted in errors is cut short and kept on one line.
-
TypeSafe, OpenRouter, Vercel AI Gateway, and OpenAI are reached over https only; an
http://URL naming one of them is refused. Plain http stays available for a gateway of your own and for Ollama, anddoctornotes when a key would cross a network that way. -
OLLAMA_HOSTis checked likeTYPESAFE_BASE_URL(no credentials, query, or fragment, and not a known host), and a bare IPv6 address such as::1works. A hostname with a trailing dot (api.openai.com.) counts as the host it names. -
TYPESAFE_API_KEYno longer followsJEV_CODE_PROVIDERto a host that runs another company's model, even one that speaks the System One request shape. -
Every host under
azure.com,azure.us, orazure.cnis reached over https only, like the other known hosts, and an Azure key goes only to a host under one of those domains. -
The key advice
setupprints keeps every secret variable out of the terminal, a_TOKENas well as an_API_KEY.
Fixed
setupreports a harness CLI that cannot be started (a.cmdshim on Windows, say) as a failed step instead of crashing.
Documentation
- A documentation site at https://francoischastel.github.io/jev-code/, built from the repository's own Markdown, so the README stays the self-contained quick start and nothing is copied.
- New pages:
- Configuration, with every variable and the exact rules for choosing a host and key.
- HTTP requests, with endpoints, every header (including the User-Agent of each entry point), the body, timeouts, retries, limits, and errors.
- Hosts and gateways.
- Troubleshooting.
- The manual project-config examples for Claude Code and OpenCode reference the key (
${TYPESAFE_API_KEY},{env:TYPESAFE_API_KEY}) instead of holding it.
0.5.1 - 2026-11-19
Dependency floors without known advisories, and a gateway path that checks before it stores. Nothing to change before upgrading. Setup now sends one check request to a gateway you configure through it, and doctor names such a gateway by its host instead of "TypeSafe".
Security
- The runtime dependencies now require versions without known advisories:
zod^4.6.7 (memory exhaustion while validating oversized constrained collections, GHSA-mrhx-c7xc-m3w5, which is how tool inputs are checked) and@modelcontextprotocol/sdk^1.32.2 (four advisories in its HTTP transports, tasks, and bearer auth; jev-code serves over stdio only, so they did not apply here, but an install no longer reports them).
Changed
- Development dependencies updated: Biome 2.6, Pi 1.5, the OpenCode plugin 1.19, Vitest 5.1. Biome's new Markdown formatter is turned off so the docs keep their hand-wrapped layout.
- The release workflow no longer publishes to npm; maintainers publish by hand from the tag once it passes, as every published version so far was. It still runs the checks, verifies the tag, and creates the GitHub release. The unused provenance setting is gone from
publishConfig.
Fixed
Three rough edges on the "System One gateway of your own" path, reported in #26 for one such gateway and true of every one:
- Setup checks a gateway before storing its key: it sends the one-question request
doctor --liveuses, with the model it is about to store, and asks before storing a key the gateway did not answer. It used to store whatever it was given, so a model id the gateway does not serve only showed up as an error on the first tool call. Its model prompt also offers the model an empty answer really leads to, whichJEV_CODE_PROVIDERcan change. doctor,setup, and the server log name a base URL on no known host as "System One gateway at" instead of the host whose defaults it borrows ("TypeSafe"). jev_ask'smodelinput told agents "Default: jev-latest", which is wrong on every host but TypeSafe and OpenRouter. It now says to omit it for the host's default.
The tools reference, the skill, and the README also say that the default thresholds were chosen against Jev, and to spot-check them on another model.
0.5.0 - 2026-10-07
OpenAI's Decisions API, now in public beta for every developer, and a System One gateway of your own as a first-class setup path. One change to check before upgrading: TYPESAFE_BASE_URL is now validated, so a value carrying credentials, a query string, or a trailing /v1/systemone is refused before any request instead of being sent.
Added
- A System One gateway of your own, documented as what it already was: the proxy case. The key goes in
TYPESAFE_API_KEY, the SDK's generic variable, and the address inTYPESAFE_BASE_URL, withTYPESAFE_DEFAULT_MODELwhen the gateway's model id differs; nothing new to configure in any harness.setupoffers "Other System One gateway" when asking which host a pasted key is for, then asks for the URL and the model and stores the three variables together. - OpenAI's Decisions API in its public beta, open to every developer since October 6, 2026. The mapping now follows OpenAI's published reference instead of recorded preview traffic; the request jev-code sent already matched it, so existing setups keep working unchanged. All five tools and the live test suite were run against
gpt-6-lunabefore this release. - A question the model declines comes back as a refusal on the Decisions API. Tools report it as
status: "refused"with the cautious outcome (review, oruncertaininjev_check) instead ofinvalid_response, since retrying will not change it, andjev_asklists declined ids underrefused. - CI runs the live tests against the Decisions API too when an
OPENAI_API_KEYsecret is set.
Changed
TYPESAFE_BASE_URLis checked before any request: an absolutehttp(s)URL with no credentials, query, or fragment, stopping before/v1/systemone, which the client appends. A bad value is a configuration problem indoctorandsetup, never echoed in case it embeds a secret, instead of a connection error at the first call.- Score probabilities from the Decisions API are keyed by the level index the API returns, falling back to the label.
doctor --liveno longer calls a403from the Decisions API a preview restriction; it quotes OpenAI's message and points at the key's project access togpt-6-luna.
Fixed
npm run test:e2efound no tests to run, because the test config excluded the live suite for every run, so the CI live job could never have exercised a host. The suite is now excluded only whenJEV_CODE_E2Eis unset.
0.4.1 - 2026-10-03
Fixed
- A key's shape no longer decides where it is sent. TypeSafe issues
apikey_...keys as well asts_..., and shapes change, so the variable a key sits in now decides its host; a key that looks like another host's only earns a hint in doctor.TYPESAFE_API_KEYkeeps followingTYPESAFE_BASE_URLandJEV_CODE_PROVIDERthe way the TypeSafe SDK does, so the OpenRouter and Vercel setup guides for the SDK work unchanged; host-specific variables never travel. setupasks which host a pasted key is for, with its best guess as the default, instead of deciding from the key's shape. Both setup prompts now settle when input ends, and a paste holding both answers is read as two.- With
JEV_CODE_PROVIDER=ollama, a staleTYPESAFE_BASE_URLon another known host is refused like everywhere else instead of carrying Ollama's key and the payload there.
0.4.0 - 2026-10-03
Two new hosts, both opt-in. OpenAI's Decisions API, verified end to end against a stand-in that speaks the shape recorded from the preview (CLI and OpenCode over MCP), with a live decision from a preview account the one thing not yet confirmed. And Ollama's local decision models, which need no key at all.
Added
-
Ollama's decision capability (Ollama 0.35+) as a local, keyless host:
JEV_CODE_PROVIDER=ollamaafterollama pull nimble;OLLAMA_HOSTnames another server,OLLAMA_API_KEYis sent only when set. Same System One API, so nothing else changes.doctor --livesays when the server is down or the model is not pulled. -
JevClientworks without a key for local hosts; no Authorization header is sent then. -
OpenAI's Decisions API (limited preview) as an opt-in host:
OPENAI_API_KEYplusJEV_CODE_PROVIDER=openai, modelgpt-6-luna. Every tool works unchanged; the request and response shapes are translated (src/core/wires.ts), following traffic recorded by preview users and OpenAI's own client in the Codex repository. An ambientOPENAI_API_KEYis never adopted by itself; doctor and the missing-key error explain how to opt in, anddoctor --liverecognises the preview's403 Decision API is not enabled for this user. -
Pasting an OpenAI key when
setupasks storesJEV_CODE_PROVIDER=openaialongside it.
0.3.0 - 2026-09-29
Upgrades now reach installed agents. Existing installs should run npx -y @french-castle/jev-code@latest setup once; the README's Upgrading section explains why.
Changed
- Harness configs now launch a pinned command,
npx -y @french-castle/jev-code@<version> mcp. npx keeps the first version it cached for an unpinned name and never checks for a newer one, so earlier installs were frozen on whatever they first fetched; runnpx -y @french-castle/jev-code@latest setuponce to move to a pinned command. Re-running setup replaces an existing registration whose command differs, including throughclaude mcpandcodex mcp, and reports it asupdated. doctorshows the pinned version of each registration and says when to re-run setup.- The README and guides invoke setup and doctor with
@latest, for the same reason. npm versionrunsscripts/sync-version.mjs, which keeps the plugin manifest, the skill metadata, the plugin.mcp.json, and the documented launch commands on the new version.
Fixed
- Config backups taken within the same second no longer overwrite each other.
- The Codex
config.tomleditor keeps the file's line endings and handles an env sub-table declared before its parent.
0.2.1 - 2026-09-27
Verified end to end on Claude Code, Codex, Pi, and OpenCode: setup, a real tool call through each harness, and skill discovery. The first version published to npm.
Changed
- The npm package is
@french-castle/jev-code. The@francoischastelscope was never published to, so nothing installed changes;npx -y @french-castle/jev-code setupis the install command from now on. The GitHub repository stays at FrancoisChastel/jev-code. @modelcontextprotocol/sdk1.30.1. Development tooling moved to TypeScript 7 and the Node 26 type definitions; the supported Node range is unchanged (20+).- The OpenCode guide notes that OpenCode prefixes MCP tools with the server name (
jev_jev_check).
Fixed
setup pi --projectpasses--approvetopi install -l, which pi requires before it edits a project's.pi/settings.json; without it the install failed with "Project is not trusted".- The MCP server sends the versioned user agent, like the CLI.
doctorkeeps a space between a long skill path and the tool column.
0.2.0 - 2026-09-27
Added
- OpenRouter and Vercel AI Gateway as hosts for Jev, next to TypeSafe direct. Export
OPENROUTER_API_KEYorAI_GATEWAY_API_KEYand everything else stays the same: the key's prefix (ts_,sk-or-,vck_) picks the host whichever variable holds it, andJEV_CODE_PROVIDERforces one when several keys are set. jev-code setupasks for an API key (hidden input) when none is set and it runs in a terminal;--no-promptdisables that.doctorshows the provider in use, warns when several keys are set, and names the host in the live check.- OpenRouter requests carry the optional
HTTP-RefererandX-Titleattribution headers.
Changed
- The missing-key error now reads "No API key found" and lists the three accepted variables.
- API error messages surface the host's inner message (TypeSafe nests it under
detail, OpenRouter undererror) instead of a JSON blob. setupcopies only the key in use into harness configs, plusJEV_CODE_PROVIDERwhen set.- The release workflow creates the GitHub release even when npm publishing is skipped because no
NPM_TOKENsecret is configured, and says so.
Security
- A key is only ever sent to the host that issued it: a
TYPESAFE_BASE_URLon a known host other than the key's issuer is refused before any request, and a base URL on an unrecognised host is honoured for TypeSafe keys only unlessJEV_CODE_PROVIDERstates the intent. setupscrubs the key from a harness CLI's output when registration fails, and the MCP server logs the host in use to stderr once.
0.1.0 - 2026-09-19
Added
- Five tools shared by every harness:
jev_classify,jev_check,jev_score,jev_rank,jev_ask. - MCP server over stdio for Claude Code, Codex, and OpenCode (
jev-code mcp). - Native Pi extension and pi package manifest (
pi install npm:@french-castle/jev-code). - Optional OpenCode custom tool (
integrations/opencode/jev.ts). - The
jevskill (Agent Skills spec) with question-design guide, recipes, tool and CLI references, and a building-with-TypeSafe guide adapted from TypeSafe's official skill (MIT). jev-code setupwith harness detection, user and project scopes, dry run, config backups.jev-code doctorwith an optional live API check.- CLI access to every tool (
jev-code classify --input payload.json). - Claude Code plugin manifest and marketplace so the repository installs as a plugin.