Hosted forges that scale to zero

A person (or their assistant, over the MCP spawn tool with their consent) makes a forge at /forges/new, the address <name>--<this host>. Free within the limits below; no payment path yet.

Code: src/spawn/sleep.ts (limits, waking page), src/spawn/host.ts (wakeGate, sleepIdleChildren), src/spawn/vouch.ts, src/spawn/manage.ts. Test: test/forge-sleep.test.ts.

Doors

Apps sleep on the profit slider

The apps a forge runs sleep too, and the profit slider on the economics page says when. The next request wakes a sleeping app.

Code: src/apps/sleep_window.ts (windows, previewIdleMs), src/apps/runtime.ts (the sweep). Tests: test/sleep-window.test.ts, test/apps-sleep-slider.test.ts, test/preview-idle-slider.test.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs