← Public packages
@kentcdodds/closing-the-agentic-loop
Closing the Agentic Loop: Kent C. Dodds's talk and workshop deck. Default short talk; ?event=aie-2026 is the AIE hour cut with a Podium QR; ?format=full adds labs.
Files
// Local preview: serves the package app the way Kody mounts it, with the mount stripped.
import { createServer } from 'node:http'
import router from '../app/router.ts'
const port = Number(process.env.PORT ?? 4320)
const mount = '/packages/closing-the-agentic-loop'
createServer(async (req, res) => {
if (req.url === '/' || req.url === mount) {
res.writeHead(302, { location: mount + '/' })
return res.end()
}
const url = new URL(req.url, `http://localhost:${port}`)
if (url.pathname.startsWith(mount)) url.pathname = url.pathname.slice(mount.length) || '/'
const response = await router.fetch(new Request(url, { method: req.method }))
res.writeHead(response.status, Object.fromEntries(response.headers))
res.end(Buffer.from(await response.arrayBuffer()))
}).listen(port, () => console.log(`Deck at http://localhost:${port}${mount}/`))