# Helix 1.13.0: Agents

> Define agents with tools, instructions, and memory in code, run them from any function with ctx.agent(), and govern them from the dashboard with approval controls and an audit trail.

- Released: 16 Oct 2026 (2026-10-16)
- Packages: @trayai/helix-cli@1.13.0, @trayai/helix-sdk@1.13.0

## Headline changes

### Added: `defineAgent` and `defineTool`

Declare an agent in one file under functions/_agents/ with its model, instructions, and tools, and define each tool with a Zod input schema and a handler that gets the caller's ctx. The runtime drives the model loop, runs tools, and stops when the model has an answer or hits the limits you set. Agents load automatically on deploy and under helix dev.

Docs: https://helix.tray.ai/documentation/guides/defining-agents/

### Added: `ctx.agent(name).generate()` and sessions

Call any agent from any function or schedule. Omit sessionId and the call creates a session; pass one back and the agent continues from the last turn. Sessions come in two scopes: project sessions are shared by every execution, and user sessions belong to the signed-in person who started them. You control the message window and TTL per agent.

Docs: https://helix.tray.ai/documentation/guides/agent-sessions/

### Added: Tool approval pauses an agent for a human

Set needsApproval on a tool and the agent stops before running it. The call returns with the pending tool calls, you show them to a person, and a second call carries their approve or deny decision. A predicate form lets you gate only on certain inputs, so a refund over a threshold pauses but a small one does not.

Docs: https://helix.tray.ai/documentation/guides/tool-approval/

## Other changes

### Added

- Agent delegation with a depth limit of three (docs: https://helix.tray.ai/documentation/guides/agent-patterns/)
- `helix agent list` and `helix agent chat` CLI commands (docs: https://helix.tray.ai/documentation/reference/cli/agent/)
- Platform, bring-your-own-table, and custom session storage (docs: https://helix.tray.ai/documentation/guides/agent-session-storage/)
- Agents tab in the dashboard (docs: https://helix.tray.ai/documentation/governance/dashboard/)
- Agent changes in the audit activity trail (docs: https://helix.tray.ai/documentation/governance/audit-and-compliance/)
- Chat UI guidance with streaming and approval (docs: https://helix.tray.ai/documentation/guides/agent-chat-ui/)

---

Canonical: https://helix.tray.ai/documentation/releases/1130/
This file: https://helix.tray.ai/documentation/releases/1130.md
The full changelog: https://helix.tray.ai/documentation/releases.md
