Skip to main content
With @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 plain Agent object, so the same configuration can be applied on its own or with a project:
src/spec.ts
The agent’s entry module exports it with defineAgent, adding where its code runs, and hosts the agent:
src/index.ts
  • key is the agent’s identity in code. Lowercase letters, digits, and dashes.
  • deploy registers code you already deployed: lambda(arn), gateway(), or sidecar(). 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 while tilde deploy reads the module, it does nothing.
  • tilde deploy reads the spec from the entry module, beside the prompts and skills it already reads.

Plan and apply

  1. 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.
  2. One transaction. Every change applies together, or none does. Repeating an apply with nothing to change reports everything as unchanged.
Add --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 with delete: true:
Routines, inference aliases, blueprint variables, egress grants, users, and groups take 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
One entry module registers one agent’s code, so each agent’s release is registered from its own folder, where its 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.