Overview
Once your agent is deployed, you can interact with it from any client application using the Terminal Use SDKs or CLI. This guide covers:- Creating and managing filesystems
- Creating tasks with mounted filesystems
- Sending messages to tasks
- Receiving responses
- Working with files
Client Setup
Filesystems
Filesystems provide persistent file storage that exists independently of tasks. They allow you to share files between tasks, pre-load data for agents, and download results.Projects
Projects are permission boundaries over filesystems. When you create a filesystem, you associate it with a project. All filesystems in a project share the same access permissions.Creating Filesystems
Adding Files to Filesystems
Files are uploaded astar.zst archives (tar compressed with Zstandard). The CLI handles this automatically, but for SDK usage you’ll need to create the archive first.
Viewing and Downloading Files
Tasks
Tasks are execution contexts for agents. Each task represents a conversation or unit of work.Creating Tasks
Mount a filesystem when creating a task to give the agent access to files.Listing Tasks
Sending Events
Send messages or events to running tasks.Receiving Messages
Stream or retrieve messages from tasks.Complete Example
Here’s a complete workflow: create a filesystem, upload files, create a task, send a message, and download results.CLI Commands
tu tasks create
| Option | Short | Description |
|---|---|---|
--filesystem-id | -f | Filesystem ID to attach |
--project-id | -p | Project ID for auto-creating filesystem |
--message | -m | Text message to send |
--params | JSON string with task params | |
--name | -n | Optional task name |
tu tasks send
| Option | Short | Description |
|---|---|---|
--message | -m | Text message to send |
--event | -e | Raw JSON event to send |
tu tasks ls
| Option | Short | Description |
|---|---|---|
--agent | -a | Filter by agent name |
--status | -s | Filter by status (RUNNING, COMPLETED, FAILED) |
--json | -j | Output as JSON |
tu filesystems create
| Option | Short | Description |
|---|---|---|
--project-id | -p | Project ID (required) |
--name | -n | Optional filesystem name |
--dir | -d | Local directory to push after creation |
tu filesystems push
tu filesystems pull
| Option | Short | Description |
|---|---|---|
--force | -f | Clear existing directory before extracting |
tu projects create
| Option | Short | Description |
|---|---|---|
--namespace | Namespace slug (required) | |
--name | -n | Project name (required) |
--description | -d | Project description |