tilde deploy bundles the agent’s code and uploads it, and Tilde runs it on serverless compute in its own cloud account. You set up no AWS account, function, role or network path. Hosting is available to every Tilde Cloud organization.
A hosted agent works like a Lambda agent, except that Tilde owns the function. Each run starts when the agent is invoked and stops when the run ends, so nothing runs between runs.
Write the entry module
Export the SDK’s Lambda handler from your agent’s entry module, as for a Lambda agent.tilde deploy refuses a hosted agent whose module does not export handler:
src/index.ts
tilde deploy bundles the code with everything it imports, including prompts imported as text (with { type: "text" }) and shared files from the project root.
Declare it hosted
With Agents as code, set the agent’s deploy target tohosted:
agents/triage/tilde.config.ts
tilde deploy --target hosted.
Deploy
Runtilde deploy from the agent’s folder, or from the project root to deploy every agent:
tilde deploy bundles the code with esbuild, registers a deployment, and uploads the bundle. Tilde publishes it as a new version of the agent’s function, and the deployment takes traffic as soon as it is published. A deploy whose code and declarations did not change registers nothing new.
Each deployment keeps its own version. To roll back, promote an earlier deployment on the agent’s Deployment tab.