Kody weekly: Merge requests for packages, apps act as publishers
Kent C. Dodds · · 10 min read
Here is what shipped in Kody from November 28 to December 4, 2026. This week is about trust and control: package changes get a review before they publish, apps act as the person who published them, and your runs stay on your own machines. Several changes need action: see Breaking changes below.
Review package changes with protected main and merge requests
What shipped
Published packages now have a protected main. Pushes to a protected main are
refused with guidance to push a branch, and changes land through a lightweight
merge request instead. You can open, list, show, merge, or reject a request with
kody package mr or from the website, where each request shows a diff of what
is live against the merge result. Saving or publishing a protected package from
a repo session opens a merge request instead of publishing. A merge publishes as
the person who merged it, and codemods go through the same flow, so they can no
longer publish past a package lock. The waiting queue lists a merge-request card
only for packages with an open request you can merge, and website Merge on a
locked package publishes the merged commit and closes the request, or says why
the publish failed.
Why it matters
A package that runs your automations or serves your app should not change
because someone pushed straight to main. Now every change to a protected
package gets a real review, and the person who approves it is the person it
publishes as.
Example
git push origin my-fix
kody package mr open my-package-id --branch my-fix --title "Fix the export"
kody package mr list my-package-idDocs: Package authoring · PRs: #5737, #5807, #5860, #5866
Every package app acts as its publisher
What shipped
Profiles are on for everyone, with no opt-in. Every package app now runs through a profile derived from the person who last published it, and the Owner's "runs as" pick is gone: nobody chooses who an app acts as. Every publish builds the app's profile, and if the app needs access its publisher does not hold, the publish fails and names what is missing instead of leaving the app broken. When a call from an app is denied, the org owner gets a waiting item listing the calls denied over the last 7 days and what to do: approve the app's access, or publish it again as the person it should act as.
Why it matters
An app carries only what it touches, not a person's full access, and there is one clear answer to "who is this app acting as?". When something is missing, you find out at publish time or from a waiting item, not from a page full of denied calls.
Example
- Publish your app as the person it should act as.
- If the publish names missing access, grant it to that person or remove the need from the app.
- Watch the waiting queue for an "app call denied" item, and follow its steps.
Docs: Profiles · PRs: #5694, #5689, #5688
Your runs stay on your machines by default
What shipped
Automations, webhook deliveries, workflow steps, nested execute calls, and
publish builds with no placement set now follow the acting person's stored
execution-context chain instead of dropping to Kody cloud. Explicit pins and
overrides behave as before, and when every context in the chain is offline or
busy, the run falls back to cloud right away instead of queueing. Workspace
Overview and Activity now show whether each top-level run finished on Kody
cloud, on a specific execution context, or through kody execute --local. Runs
on contexts and --local also got faster: package graphs are revalidated by
revision instead of re-downloaded, kody execute --local gets a disk cache, and
each run shares one write lease instead of paying for each hop.
Why it matters
If you set up an execution context, you expect your work to run there. Now it does without pinning every automation, and you can see where each run happened.
Example
Pin an automation to Kody cloud when you want it there:
{ "context": "cloud" }Docs: Execution contexts: The chain and cloud fallback · PRs: #5742, #5782, #5803
Your agent can open a hosted app in its own browser
What shipped
appOpenLink is the browser sibling of appFetch, in MCP, execute, the Open
API (POST /v1/apps/open-link), and the CLI (kody app open-link). With only a
token or profile, an agent gets a signed, single-use link valid for five
minutes, bound to one app on one exact host. The visit runs through the same
authorization and "Run as me" consent a browser visit does, on kody.run hosts,
path mounts, and verified custom domains. appFetch also reports redirects: the
final url, every hop, and a manual mode that hands back the 3xx and its
Location.
Why it matters
Agents that test or screenshot an app needed a person signed in to Kody in the browser first. Now the agent opens the app itself, with your access and your consent, and can confirm that a form save redirected where it should.
Example
kody app open-link @acme/board /cardsTo check where a form post redirects, call appFetch with redirect set to
manual:
{
"app": "@acme/board",
"path": "/cards",
"method": "POST",
"redirect": "manual"
}Docs: Using apps as an agent · PRs: #5627, #5632, #5792
See what changed before you re-approve a package
What shipped
The capability approval page now starts with "What changed since you last approved" (or "First approval"). It lists added, removed, and changed capabilities, credential grants and needs, allowed hosts, and app access, and marks additions as New. Commits and ids sit in a collapsed Details section. The old version keeps serving while you decide.
Why it matters
Re-approving a newer version of an internet-visible package meant reading the full capability set and guessing what was new. Now you review only the change.
Example
- Publish a new version that adds a credential need or an allowed host.
- Open the approval from your waiting queue.
- Read the New items under "What changed since you last approved", then approve or decline.
Docs: Package apps · PRs: #5850
Choose which notifications reach you, and where
What shipped
A new Notifications page on your Account decides which notifications reach you on each channel: Email, App, Browser, and Agent. Browser notifications use real web push, with a per-device switch. Every send path honors your choices, and account and security notices (codes, reset links) can never be routed to an agent.
Why it matters
You could opt out of tips and the newsletter, and that was it. Now you can turn off what you do not need, get the rest where you want it, and keep agents out of security mail.
Example
- Open Account, then Notifications.
- Turn on Browser for the kinds you want as push notifications, and allow notifications on this device.
- Turn off Agent for anything your agent should not hear about.
PRs: #5780
All-or-nothing and read-only package storage
What shipped
packageStorage().sqlBatch() takes up to 50 statements and runs them in one
transaction: if any one fails, every write rolls back, and you get one result
per statement, in order. A package app that only reads its storage can use
readOnlyPackageStorage() from kody:runtime, which offers get, list, and
sql on the same bucket, and its approval page offers read instead of read and
write. storage.sql also runs read-only WITH ... SELECT queries without write
access.
Why it matters
Multi-step writes no longer leave half-applied state behind, and an app that only reads data no longer asks owners for write access it never uses.
Example
import { packageStorage } from 'kody:runtime'
const results = await packageStorage().sqlBatch([
{ query: 'INSERT INTO orders (id, total) VALUES (?, ?)', params: ['o1', 42] },
{ query: 'UPDATE stock SET count = count - 1 WHERE sku = ?', params: ['s1'] },
])Docs: Package apps · PRs: #5826, #5783, #5740
Verify webhooks from more providers
What shipped
Package webhooks gained two verification options. The url.form-sorted
signedPayload mode verifies providers that sign the full request URL followed
by the form fields sorted by name (Twilio style), with the existing HMAC
algorithms. The oidc-jwt verification type checks an OIDC-signed push (such as
a Pub/Sub push with an OIDC token) against the issuer's keys, then issuer,
audience, expiry, and an optional email, before any package code runs. Webhook
secrets are now credential needs, visible in package credential settings and
Approve, and outbound sign() can reproduce the same messages. Webhook URLs a
package no longer declares show up in package settings under "No longer
declared" with a Remove button, and webhookEndpointDelete removes them from
code.
Why it matters
Providers that sign this way could only be accepted with a URL secret. Now Kody rejects unsigned or forged deliveries for them before your code runs.
Example
{
"name": "pubsub-push",
"export": "./handle-pubsub-push",
"verification": {
"type": "oidc-jwt",
"issuer": "https://accounts.google.com",
"jwksUrl": "https://www.googleapis.com/oauth2/v3/certs",
"audience": "https://hooks.example.com/acme-pubsub-push"
}
}Docs: Triggers · Credentials: Webhook verification · PRs: #5830, #5784, #5847, #5670
More updates
Dashboard: Adds an Apps rail of your most recently updated apps to Workspace Overview, and a storage meter to every Files location, with exact figures on hover. (#5855, #5857)
Dashboard: Adds one keyboard layer: press
?anywhere to see every shortcut,/focuses search, andGthen a key jumps between pages. The video player answers standard media keys. (#5735)MCP: Makes ranked search return in roughly one second instead of 3 to 6 seconds, with faster repeats. (#5745, #5763, #5768, #5759)
Apps: Supports year-long caching for hashed assets under
"immutable"prefixes inkody.app.assets, and custom domains for private apps with the same sign-in and access checks as thekody.runhost. (docs, #5827, #5750)Orgs: Lets you restore your own deleted account by signing back in inside the restore window. (#5652)
Billing: Adds
billingCheckoutLink, a link your agent can hand someone to start Pro checkout with any running sale or promo code applied, andbillingManageLinkfor orgs already on a paid plan. (docs, #5619, #5621)Dashboard: Shows an agent's cursor and fades its edits in when it changes a collaborative file you have open, and lets Files columns resize one at a time like Finder. (#5570, #5734)
Orgs: Adds opt-in session analytics, off by default, that keeps counts only and never what agents sent; turning it off deletes everything. (#5623)
Plus smaller changes, including pages that arrive laid out instead of shifting (#5806), execution context detail pages (#5776),
--params-filein the CLI (#5708), graded package security audits (#5706), and renaming OAuth connections and MCP servers in place (#5647). See the full release list.
Fixes
- Packages: Fixes prebuilt apps a few megabytes in size failing under
kody dev serveand on the cloud publish path. (#5838, #5854, #5876, #5845) - Packages: Fixes publishes that clone too much or exceed the snapshot limit dying without a reason; they now name the largest files. (docs, #5708, #5709, #5679)
- Packages: Fixes a publish held for approval reading as live, and a plain
git pushto the Kody git remote not publishing on the next pass. (#5620, #5798) - Email: Fixes schedules, webhooks, and inbound email in team orgs failing to send email with "Account email is not verified". (#5716)
- Execute: Fixes credential mappings and
packageStorage()behaving differently on execution-context and local runs than on cloud. (#5787, #5794, #5801) - MCP: Fixes "Unknown MCP tool" after a server restart, MCP event callbacks not delivering, and servers that skip the version probe connecting with zero tools. (#5663, #5790, #5733)
- Apps: Fixes app sign-in on verified custom hostnames other than the first one, and realtime hooks failing for team-org apps. (#5852, #5667)
- CLI: Fixes
kody devtruncating crashes to one line,--target mocknot serving the app's client module, andkody app checkreporting a blocked accessibility audit as "None found". (#5870, #5869, #5862)
Breaking changes
- Packages: Pushes to a protected
mainare refused, andpackageSaveandrepoPublishSessionon a protected package open a merge request instead of publishing. Action: push a branch and open a merge request withkody package mr open. (docs, #5737) - Apps: An app whose Owner picked someone other than its publisher now acts
as its publisher, and an app with no recorded publisher fails closed.
packageAppRunsAsSetandpackageAppRunsAsGetare removed. Action: publish the app again as the person it should act as. (docs, #5689, #5694) - Execute: Automations, webhooks, workflow steps, nested
execute, and publish builds with no placement set follow your execution-context chain instead of Kody cloud. Action: pin{ "context": "cloud" }on anything that must run on Kody cloud. (docs, #5742) - Platform: Read-only and admin capabilities reject unknown input fields and name the closest known one. Action: remove the field or use the suggested name. Write capabilities follow on 2026-12-14. (#5661)
- Automations: A workflow step that fails after an external write now fails
once instead of retrying. Action: set
safeToRepeat: trueonworkflows.createfor steps that are safe to rerun. (#5804) - Packages: A held publish returns
status: "held_for_approval"with nopublished_commit, andkody package publishexits 1 for it. Action: read the status in scripts that treated every non-error result as live. (#5620) - CLI:
kody package publish --build localfrom CLI 3.65.0 or older is rejected, and execution contexts on those versions stop receiving context publish builds. Action: update@kodycodes/cli, including on your contexts. (#5844) - Apps: Realtime member sockets close with code 1008 when the visit that opened them loses access. Action: reconnect on close. (#5633)
Try it
- Push a branch to one of your packages and open a merge request with
kody package mr open, as described in Package authoring. - Ask your agent to open one of your apps with
appOpenLink, following Using apps as an agent.
Questions or feedback? Join us on the Kody Discord.