Create and test your first agent
This guide creates a small, reviewable agent before adding integrations or automation. You need a validated provider and model first.
1. Create the agent
Section titled “1. Create the agent”- Open Agents.
- Select New Agent.
- Enter a stable name and ID.
- Select a configured provider and model.
- Create the agent, then open its Settings.
An agent is a versioned configuration record. It is not a process and does not run until a message, channel, or heartbeat triggers it.
2. Define a narrow identity
Section titled “2. Define a narrow identity”Use the three identity fields for different concerns:
SoulBe accurate and cautious. Prefer reversible actions. State uncertainty.
PersonaBe concise and explain any requested tool use.
TaskHelp inspect and organize files in the assigned workspace. Do not accessexternal services or run shell commands unless the operator asks.- Soul should remain stable across tasks.
- Persona controls presentation rather than authority.
- Task should define the workflows this agent owns.
Do not put API keys or passwords in these fields. They are included in model context and stored in version history.
3. Choose the default model
Section titled “3. Choose the default model”Under General:
- Select the provider.
- Search for or enter the model.
- If the model supports thinking, choose the default state and effort.
- Save.
The conversation composer can override the model or thinking setting for one message later.
4. Set limits and sandbox
Section titled “4. Set limits and sandbox”For a first test, keep:
- Sandbox mode: Strict — workspace only.
- Max turns: low enough to stop an accidental loop.
- Max cost: appropriate for one short test.
- Session idle timeout: long enough to complete the setup conversation.
- Max context tokens: automatic unless the provider metadata is known to be wrong.
Open mode allows broad filesystem paths and is not needed for the first workflow.
5. Grant minimum capabilities
Section titled “5. Grant minimum capabilities”Open Capabilities and start with:
| Capability | Suggested mode | Why |
|---|---|---|
read_file |
Always | Inspect a known workspace file. |
search_files |
Always | List the workspace and find files. |
write_file |
Not permitted initially | Add only after read-only behavior works. |
edit_file |
Not permitted initially | Add with write_file; targeted edits need no full rewrite. |
terminal |
Not permitted initially | Avoid shell execution during the first test. |
datetime_now |
On demand or Always | Useful for timestamped summaries. |
| Memory, web, MCP, and sub-agent tools | Not permitted initially | Add one workflow at a time. |
Capability modes save automatically in the current settings screen. Loading an on-demand schema never widens the grant.
Keep global YOLO Mode disabled so any future approval-requiring call remains visible.
6. Attach a test file
Section titled “6. Attach a test file”Create a small non-sensitive text file named project-status.txt:
Release: v0.1.8State: documentation reviewBlocked: noOpen the agent conversation, select the attachment button, and add the file. The upload will be saved under the workspace attachments/ directory and exposed to the agent as metadata and a relative path when you send the message.
7. Send the first message
Section titled “7. Send the first message”Send the attachment with this prompt:
Find the attached project-status.txt file using its provided workspace path.Read it and summarize it. Do not create or modify files.A successful run should show:
- the user message;
- streamed model or thinking output;
search_filesorread_filetool activity;- a completed assistant response;
- token, cost, and context information;
- a completed run in Traces.
The model may choose a different permitted route. The important check is that every operation remains inside the capability ceiling and is visible.
8. Inspect the trace
Section titled “8. Inspect the trace”Open Traces, select the agent, and open the latest run. Confirm:
- status is completed;
- trigger is a user message;
- loaded capabilities match the intended modes;
- only expected syscalls were allowed;
- no unexpected egress occurred;
- cost and context usage are reasonable.
If the agent tried a not-permitted capability, the denied audit record proves the boundary was applied. Improve the task instructions rather than automatically granting the tool.
9. Add one feature at a time
Section titled “9. Add one feature at a time”After the read-only test works, choose the next real workflow:
- Conversations and attachments for files, URLs, model overrides, and approvals.
- Knowledge Vault for document-grounded answers.
- Skills for reusable procedures.
- MCP servers for external-service tools.
- External channels for Telegram, Discord, or Zalo.
- Scheduler and heartbeats for periodic autonomous runs.
For each addition, grant the smallest capability set, test one representative action, and review the resulting trace.
Agent management actions
Section titled “Agent management actions”The General settings also provide:
- Disable/Enable — control whether the agent may run.
- Duplicate — create a separate agent from the current setup.
- Export YAML — export configuration without memory, credentials, workspace files, or history.
- Import YAML — validate and import a configuration.
Every normal save creates a new configuration version. Memory and workspace changes are independent and are not rolled back with agent configuration.
Troubleshooting
Section titled “Troubleshooting”The agent card says no model
Section titled “The agent card says no model”Assign both a provider and model. A provider record by itself is not sufficient.
Sending returns “No model configured”
Section titled “Sending returns “No model configured””The active agent version has an empty provider or model. Reopen General settings and save both fields.
The file cannot be found
Section titled “The file cannot be found”Confirm its workspace-relative path. Conversation uploads are stored under attachments/, so use the path shown in the attachment reference.
A capability is missing
Section titled “A capability is missing”Open Capabilities and check its mode. On-demand tools must be discovered and loaded during the run.
A call waits for approval
Section titled “A call waits for approval”Review the capability and arguments, then approve or reject it. Do not enable YOLO mode merely to make a first test pass.
The answer ignores the task boundary
Section titled “The answer ignores the task boundary”Narrow the Task field, remove unrelated capabilities, start a fresh session, and test again. Prompts guide behavior; grants enforce the maximum authority.
For the complete configuration model, read Agents.