@trytilde/iac, you write an agent’s Tilde configuration in TypeScript, next to its code. tilde deploy reads it, checks everything it references, and makes Tilde match it in one transaction. It works in every edition.
A spec covers the agent, its inference connections, tools, sandbox blueprint, routines, and the deployment you release. It can also declare people: see People.
Declare an agent
Write the agent’s configuration as a plainAgent object, so the same configuration can be applied on its own or with a project:
src/spec.ts
defineAgent, adding where its code runs, and hosts the agent:
src/index.ts
keyis the agent’s identity in code. Lowercase letters, digits, and dashes.deployregisters code you already deployed:lambda(arn),gateway(), orsidecar(). Tilde does not host it. Prefer a version-qualified Lambda ARN, so the deployment stays fixed.serve({ run })hosts the agent wherever the module runs: inside AWS Lambda it is the handler, with a deployment token it dials in to the gateway, and on a plain import, such as whiletilde deployreads the module, it does nothing.tilde deployreads the spec from the entry module, beside the prompts and skills it already reads.
Plan and apply
- Preflight. Tilde checks every reference first: each connection exists, is ready, and offers the tools you name, and each secret exists. It lists every action you must take, each with a link. If there are any, the command exits with code
2, and nothing is applied. - One transaction. Every change applies together, or none does. Repeating an apply with nothing to change reports everything as unchanged.
--json for output that scripts and agents can read.
How updates work
Tilde finds each resource by its key, and updates it to match the spec, whoever created it, in the UI or in code. The plan shows each update first.
A routine without
enabled is created disabled, and later applies leave it to people. Changing a key creates a new resource, and leaves the old one.
Remove something
Nothing is removed because it disappeared from your code. Keep the entry, and mark it withdelete: true:
delete: true the same way. Removing something already gone does nothing, so keep the entry until every environment has applied it. To delete an agent itself, use the Agent Registry.
Several agents: defineProject
defineProject applies several agents, the team they belong to, and the project’s ontologies, in one tilde deploy. A Tilde project exports it from tilde.config.ts, with the same Agent objects each agent’s spec.ts exports.
tilde.config.ts
index.ts adds deploy. See Release the agent.
Next steps
Connections, secrets, and tools
Reference what Tilde holds, and pick tools with typed names.
Deploy from CI
Check on pull requests, and deploy on merge.