Agent Cloud Cloudflare

I Built Your Personal
Software Ecosystem

Kody, the kody.codes koala

Kent C. Dodds

kody.codes

connect 2026

One agent. One home.

kody.codes

The roommate leaves. The tools stay.

kody.codes

Two homes. Nothing crosses.

kody.codes

Kody's Home for Everyone

kody.codes

Write once, call from any agent

morning-briefing / brief.ts
export default (cal) => {  const day = cal.today()  day.sort(byPriority)  return summarize(day)}
morning-briefing draft
Claudev1.3
Cursorv1.3
ChatGPTv1.3

Every package is a Git repo in Artifacts

kody.codes

Code composes

import bondAreaShades from
  "kody:@kentcdodds/home-controls/bond-area-shades"
import runMorningBriefing from
  "kody:@kentcdodds/morning-briefing"

export default async function main() {
  await bondAreaShades({ area: "back", action: "close" })
  return runMorningBriefing({ dryRun: true })
}

kody.codes

How the import works

Agent: one module, two imports import bondAreaShades from "kody:@kentcdodds/home-controls/bond-area-shades" import runMorningBriefing from "kody:@kentcdodds/morning-briefing"
home-controls published bundle v2.1 · 91e4b07
morning-briefing published bundle v1.4 · 7b42d0f
One Dynamic Worker your modulehome-controlsmorning-briefing

kody.codes

Problem

Your agent can't hold every tool

Infinite capabilities don't fit in a list of MCP tools

Search finds the contract

You
Agent
Kody
close the shades in the back
Agent to Kody
search({
  query: "close the shades in the back"
})
Kody to agent
# Search results

1. package @kentcdodds/home-controls default
   (home-controls export ./bond-area-shades)
   Open, close, stop, or position every Bond shade in a named home area.
   Entity: package:home-controls#./bond-area-shades
   Import: kody:@kentcdodds/home-controls/bond-area-shades
   ```ts
   import action from "kody:@kentcdodds/home-controls/bond-area-shades"
   export default async function main(params) {
     return await action(params)
   }
   ```
   Next: Use the inlined export call contract above from execute.

Searchable

  • Capabilities and guides
  • Package exports
  • Integrations and MCP servers
  • Secret names, never values

How it is indexed

  • Publish embeds each package
  • Capabilities and memories too
  • Ranks by meaning and words
  • Relevant memories ride along

Cloudflare

  • Workers AI embedsenv.AI
  • Vectorize finds matchesCAPABILITY_VECTOR_INDEX
  • D1 holds the catalogAPP_DB
  • Workers KV holds bundlesBUNDLE_ARTIFACTS_KV

kody.codes

Jobs, webhooks and email wake your code

Webhook
Worker request
Schedule
Durable Object alarm
Email
Email Routing
my-package 12 runs today no model needed
Agentonly for judgment

package.json, "kody"

"jobs": {
  "daily-digest": {
    "entry": "./daily-digest.ts",
    "schedule": { "type": "cron", "expression": "0 7 * * *" }
  }
},
"webhooks": [{ "name": "github", "export": "./on-github" }],
"subscriptions": {
  "email.message.received": { "handler": "./on-email.ts" }
}

kody.codes

Package apps for UI

court-projector
morning-briefing
travel-map
mailroom
rotosphere
// kody.app.entry: "./app/router.ts"
export default {
  fetch(request) {
    return new Response("<h1>Shades</h1>")
  },
}

A plain fetch handler,
served at you.kody.run

kody.codes

One of everything, on Cloudflare

Your own npm registryD1 + Workers KV Your own GitHubArtifacts Your own cronDurable Object alarms Your own email addressEmail Routing Your own databaseDurable Objects + SQLite Your own app hostWorker Loaders

kody.codes

One user's Kody: runtime

Your agent
Workersthe Kody fleet
Worker Loadersrun your code
Workflowslong-running work
Queuesevents, webhooks
Email Routingyour address

kody.codes

Dynamic Workers run the agent's code

Agentwrites a module
Worker Loaderenv.LOADER.get(...)
Dynamic Workerone sandbox per module
export default async () =>
  bondAreaShades({ area: "back" })

 

kody.codes

Worker Loader

// worker.tsconst modules = {  "executor.js": codeExecutor,  "entry.ts": bundledCode,}const isolate = env.LOADER  .get(workerId, () => ({ modules }))  .getEntrypoint()const { result } = await isolate.evaluate({ kody: capabilities })

kody.codes

Problem

Agents see your credentials

Once a model sees a token, it's gone

Agents only name the credential

import { credential } from 'kody:runtime'

export default async function main() {
  const github = await credential('github')
  const response = await github.fetch(
    'https://api.github.com/user/repos?per_page=5',
  )
  return response.json()
}

kody.codes

Org, team, or just you

Your orgeveryone granted Usecredential('stripe')
Support teamonly that teamcredential('zendesk')
Youonly your own runscredential('github')

Same credential() call at every level. The agent never sees the value.

kody.codes

How the gateway works

Agentnever sees
the value
Dynamic Workercredential('github')holds a handle only
Kody gatewayapi.github.com✓paste.example✕adds the key
api.github.com Bearer ••••9f3c200 OK, 5 reposnot sent0 bytes, no key

Approved host: the key is added at the boundaryUnapproved host: nothing leaves

kody.codes

One user's Kody: data

useru_8f2c
Artifactsyour package repos
Durable ObjectsidFromName("u_8f2c")
D1user_id = 'u_8f2c'
R2your mail
Vectorizeyour own namespace
Workers KVyour bundles
useru_31d7
Artifactstheir package repos
Durable ObjectsidFromName("u_31d7")
D1user_id = 'u_31d7'
R2their mail
Vectorizetheir own namespace
Workers KVtheir bundles

kody.codes

This talk is a Kody package

Git repoin Artifacts
Packagepublished
Appkody.run
Package
@kentcdodds/cloudflare-connect-pse-hyperframes
App
cloudflare-connect-pse-hyperframes--kentcdodds.kody.run
Built with
HyperFrames, one scene per slide
QR code for these slidesThese slides

kody.codes

Kody, the kody.codes koala

kody.codes

You can start today.

You're awesome.

Agent Cloud Cloudflare

Thank you

kody.codes

QR code for these slidesThese slides
Kody, the kody.codes koala

Kent C. Dodds

kody.codes

connect 2026