PromptGate 0.9 — changelog
Archived from CHANGELOG.md, which keeps the unreleased changes and, until the next release, the latest one.
[0.9.2] - 2026-11-26
Section titled “[0.9.2] - 2026-11-26”One more question on the first start, so PromptGate can stay running:
after the guardrails and the web UI, promptgate start asks whether to
run in the background, and a yes leaves a service behind instead of a
terminal window. Nothing changes on the request path.
- The first
promptgate startasks a third question: run PromptGate in the background (default no). Yes installs and starts the service with the variables the config uses, waits for it to answer and shows the same overview — where to point your apps, the web UI and its first sign-in — on a clean screen (first start).
[0.9.1] - 2026-11-25
Section titled “[0.9.1] - 2026-11-25”The first minutes, made shorter. promptgate start on a fresh machine
asks two things — which guardrails, and the web UI or not — and runs,
because passing requests through needs no provider or key setup; the
overview it opens with says where to point your apps. The installers
show what they did and put PromptGate on your PATH, Homebrew installs
it (brew install promptgate-ai/tap/promptgate), promptgate config set changes one setting without opening the file, pause and
resume take PromptGate out of the way and back, and Kimi joins the
providers. Nothing changes on the request path.
- Provider preset
kimi: Moonshot AI’s Kimi models (OpenAI-compatible,MOONSHOT_API_KEY), priced from the same LiteLLM table as the rest; Claude Code and other Anthropic clients reach them through translation. promptgate config get|set|unset <path>(andconfig path): one setting at a time, likegit config—config set limits.providers.openai 50/s, values as YAML. Checked likevalidatebefore it is written, comments kept, the previous file backed up, the change recorded in the audit trail; a running gateway applies it.promptgate pauseandresume: pause sends connected coding agents directly to their providers and stops the service; resume starts it, waits until the gateway answers, then routes those agents through it again.- A start page on the gateway’s port: a browser opening
http://127.0.0.1:7878sees that PromptGate runs, a link to the web UI and the base URLs; API clients still get JSON. - Homebrew:
brew install promptgate-ai/tap/promptgate(macOS; the cask carries the Linux binaries too). The release workflow writes the cask after the binaries are uploaded, through a deploy key that can write to the tap only; on macOS the cask clears the download’s quarantine flag, since the binaries are signed with PromptGate’s own key, not notarized by Apple.
Changed
Section titled “Changed”- The first
promptgate startasks two things instead of six: which guardrails (a ready-made level, or picked one by one in a checklist) and whether to turn on the web UI (off unless you say yes). No provider, API key,pg_key, agent or service questions: passing requests through needs none of them, andpromptgate setupstill asks all six. Then the screen clears and the overview opens with where to point your apps. Menus answer to the arrow keys and Space; without a terminal they take numbers. - Install scripts: the logo with the version and steps that say what
happened (downloaded, checksum verified, installed).
install.shadds the install directory to your shell’s profile when it isn’t on the PATH (zsh, bash, fish, or~/.profile; once;PROMPTGATE_NO_MODIFY_PATHto skip);install.ps1also puts it on the PATH of the running PowerShell. Both install the versionversion.jsonnames, so an install during a release never mixes two. - The logo shows above
promptgate,helpand every--helptoo (in a terminal only), with an Akyros Labs line. - Docs: the guardrails, AI Gateway endpoints, end users, MCP gateway
and API Gateway pages open with everything the feature can do and one
config that uses all of it (each checked with
promptgate validate). New pages: operations (log, metrics, events, webhooks, audit, anomalies at a glance), MCP servers (server settings, protocol versions, local programs) and the pgfuzz quality gate. - Docs: the quality gate page lists all 26 stages (the MCP and API Gateway stages were missing); links to pgfuzz go to its docs page.
[0.9.0] - 2026-11-25
Section titled “[0.9.0] - 2026-11-25”The operations release, and the one to start with: promptgate start
on a fresh machine asks six questions, writes a config with
protection on — secrets masked, personal data redacted and restored,
prompt injection refused, a daily budget per key — points Claude Code
and Codex at the gateway and keeps it running in the background. For
the people who run it, every change and every incident becomes an
event: a hash-chained audit trail that shows when an entry was edited
or removed, and signed webhooks that take events to a chat channel, a
pager or a SIEM, queued durably and retried for two days. Guardrails
read their words, networks and phrases from files and URLs, and the
keyword guard finds 20,000 of them as fast as a handful.
-
Operational events (events), the base of v0.9’s webhooks: one catalogue (
promptgate events) with a stable payload (type,id,timestamp,data).- Runtime events:
budget.warningat 80 % andbudget.exceeded, once per scope, limit and period;limit.exceededandguardrail.blocked, the first per bucket (or key and guard) and minute, later ones counted inrepeated. - Health events:
anomaly.detected/resolved;provider.failing/recovered(5 failures in a row, fallbacks included; 429 and local refusals don’t count);mcp.server_down/up(unreachable, failed start, crash);oauth.needs_reconnect;log.dropped. - Publishing never blocks: bounded queues per listener, drops
counted. Error texts lose URL query strings, and end-user ids never
appear in
limit.exceeded. - Metrics
promptgate_events_total{type}andpromptgate_events_dropped_total{subscriber}.
- Runtime events:
-
Hash-chained audit trail (audit trail): every entry signed with HMAC-SHA256 over its fields and the previous entry’s MAC, keyed from the secret key (
PROMPTGATE_SECRET_KEY/secret.key), in the request log database (schema v16, tableaudit). An edited, deleted, inserted or reordered entry breaks the chain. One writer for the web UI (ui:<user>), the command line (cli), the MCP control plane (mcp:<key>) and the gateway, and every entry is published as an event under its action.- Actions follow the event catalogue (
key.created,config.changed,auth.login_failed, …). - The web UI’s v0.8 entries move over as legacy and are signed by the first write after the upgrade.
audit.retention(minimum1d) deletes old entries daily and leaves a signedaudit.prunedmarker, so the chain still verifies.- The UI’s audit page filters by actor and shows each entry’s number.
- Actions follow the event catalogue (
-
promptgate audit list | verify | export(audit trail):verifywalks the chain, prints the head and exits 1 at the first bad entry.exportwrites every field, the chain’s included, as JSON lines or CSV. CSV cells are guarded against spreadsheet formulas, and an existing file is never overwritten.- Filters:
--sinceand--until(duration, date or RFC 3339),--actor,--action key.*.
-
The web UI’s audit page shows the chain’s state (intact with its head, broken at an entry, or not signed yet) and exports the filtered entries as CSV or JSONL.
-
Exports are recorded as
audit.exported. -
Webhooks (webhooks):
webhooks.<name>sends the events it subscribes to (budget.*,*, …) to a URL, signed per Standard Webhooks (webhook-id,webhook-timestamp,webhook-signature;whsec_secrets or 24+ bytes).- Durable queue in the request log (schema v17), delivered in order
per webhook, retried after 30 s up to 24 h, 10 attempts (about two
days);
410gives up, redirects aren’t followed, the samewebhook-idon every retry. - SSRF-checked like the API Gateway (
private: truefor receivers on a private network); at most 10,000 waiting deliveries per webhook; finished ones kept 30 days with status and the first 2 KB of the answer. promptgate webhooks list(state ok / failing / idle / disabled, waiting, delivered and given up in 24 h),test <webhook>(a signedwebhook.testnow, exit 1 unless 2xx),deliveries(filters,--idwith the event and the answer),redeliver <id>… | --failed <webhook>(audited aswebhook.redelivered); metricspromptgate_webhook_deliveries_total{webhook,result}andpromptgate_webhook_pending{webhook}; a receiver example in Go.
- Durable queue in the request log (schema v17), delivered in order
per webhook, retried after 30 s up to 24 h, 10 attempts (about two
days);
-
First start sets everything up (first start):
promptgate startwithout a config asks six questions — provider, API key, protection, apg_key with a daily budget, coding agents, background service — then runs.setupasks the same;setup --yestakes--protection,--budget,--connect,--service. -
Ready-made protection (guardrails):
recommended(secrets masked, personal data redacted, prompt injection blocked, token saver),strict,log,off. Without any config file,recommendedapplies. -
promptgate connect claude-code|codexsends the agent through PromptGate by setting the base URL in its own config (backed up first);disconnectundoes it, anduninstalloffers to. -
startnames the active guardrails. -
Guardrail lists from files and URLs (lists):
listsfillskeywordswords,ip_allowlistranges,prompt_injectionphrases andpiiallowed values. Files are watched; URLs are fetched in the background (headers with${ENV},refresh, ETag), the last good copy kept and used across restarts,requiredto refuse starting without one. Eventslist.updatedandlist.failed;promptgate lists [--check].
Changed
Section titled “Changed”-
keywordsfinds all words in one pass: 20,000 words cost 3.3 µs per 2 KB request, where word-by-word search took half a millisecond. -
The config
setupwrites has guardrails on (recommended) and, with apg_key, a daily budget of $20 per key. Before, every guardrail was commented out: a fresh install only logged. Configs already written keep what they have. Started without any config file (a container without one), PromptGate now appliesrecommended; before, it applied no guardrails. -
setupno longer asks for the listen address (--listensets it). -
The command line now records its changes in the audit trail:
keys create/revoke/enable/delete,oauth connect/refresh/disconnect/prune,mcp import --writeand the keymcp setupcreates. Before, onlyui usersandui passwdwere recorded. -
Control-plane changes are recorded under the tool’s action (
key.created), with the agent asmcp:<key>. Before, the action carried anmcp_prefix. -
Audit entries become events in the running gateway, which reads new entries every second, so changes made by
promptgatecommands in another process reach webhooks too. Before, only the process that wrote an entry published it.
- A web UI save could reload the config twice. When the file watcher noticed the write before the UI’s reload request arrived, both reloaded. A reload now happens only when the files changed since the last successful one. SIGHUP still always reloads. The watcher test now writes files the way the UI does (temp file and rename). Before, the watcher could read a half-written file under load and reload once more.
- Publishing a release could leave
latest/checksums.txtmissing on install.promptgate.dev, soinstall.shfailed for the latest version: the upload syncedlatest/with--delete, which against R2 removed the file it had just uploaded.latest/is now copied. - The request log could drop rows with
database is locked (SQLITE_BUSY)while another process wrote to the same database (the command line, the web UI, the webhook queue). SQLite’s settings (busy_timeoutamong them) were applied to one pooled connection only, and a transaction that read before it wrote failed at once when another writer came in between. Every connection now gets the settings, and transactions take the write lock when they begin.
Performance
Section titled “Performance”Release run against v0.8.1, same config, every feature on: the proxy path measures the same (0.09 ms at the median at one client, 0.26 ms at 16, about 55,000 req/s), with or without a 10,000-entry keyword list; starting takes 41–59 ms, RSS 52–60 MB — see bench/results.