Putting AI agents to work
Pick another answerRun AI agents under clear rules
Teams use AI agents with Trestle in three separate roles: writing processes, operating live runs, and deciding inside a run. Keeping them apart limits each agent’s reach while the process enforces the rules.
The ruleNo claim is paid before a person approves it.
Let coding agents write the process
Describe the work and let your coding agent write ordinary code. A project from
npm create @trestlerunincludes agent instructions, lint rules, and tests so it checks against the diagram, leaving code you can read and change.Operate live runs over MCP
Over MCP, an agent reads runs, answers tasks, and retries stuck work under the same rules as a person. It stays read-only until you allow changes, and each change is logged as an agent’s under whoever asked.
Keep agent decisions inside your rules
When a run puts a decision to an agent, it picks from declared options and states why. A rule can bar an option with why and refuse it; the deciding agent cannot change rules it does not own.
Put agent loops on the diagram
In a bug-fix process, each pass asks a coding agent to run tests, edit code, or finish, with each option stating when to pick it and a ten-round limit. Saved progress survives crashes, and the process can measure spend like tokens and cost while a human approval sits before the merge.
What Trestle leaves to you
- Trestle calls no model and holds no model credentials. It is not an agent framework or model client, so you bring your own agent.
- Rules guard only steps and decisions a process declares.
- Run data stays data, not instructions, so hidden text only reaches what an agent’s credentials already allow.
- Asking a person before an agent changes something belongs to the tool running the agent.
Your visit is running on Trestle.
This is the real Trestle engine running a live process in your browser tab, not a simulation. Each of the eight topic pages you open answers its question once, showing the path you have taken and the pages you have not opened yet—until you copy npm create @trestlerun to finish it.
Your path so far
npm create @trestlerunYou have opened all eight pages. Copy npm create @trestlerun whenever you are ready to finish the process.
You copied npm create @trestlerun, so this process has finished and recorded your full visit.
Show the code and detailsHide the code and details
export const visit = process({
name: 'visit',
body: async () => {
for (const _lap of Object.keys(CASES)) {
const next = await choice({
name: 'What do you care about?',
party: visitor,
cases: CASES,
});
if (next === START) {
return 'started a project';
}
}
return 'never started a project';
},
});export const visit = process({
name: 'visit',
body: async () => {
for (const _lap of Object.keys(
CASES,
)) {
const next = await choice({
name: 'What do you care about?',
party: visitor,
cases: CASES,
});
if (next === START) {
return 'started a project';
}
}
return 'never started a project';
},
});Your answers and the run are stored only in this browser.
npm create @trestlerun