For the conceptual overview, see Agents. For the
chat-driven path, see Build with chat first.
This tutorial walks through creating an agent by hand in the IDE.
.agent.yml files inside your
workspace. You can either let the Builder copilot scaffold one for you
(easiest) or create one manually in the IDE (this guide).
Open the IDE
From app.oxygen-hq.com, open your workspace and
click Developer Portal in the sidebar.
Create the agent file
In the file tree, right-click your workspace root and choose New
file. Name it
my-agent.agent.yml. Anything ending in
.agent.yml is auto-discovered as an agent.Pick a model
Add the model field — Oxygen recognizes the models you’ve
configured in Manage → Models.
Write system instructions
System instructions tell the LLM how to behave. Keep them short
and focused.
Give the agent SQL execution
Add the
execute_sql tool so the agent can actually run SQL
against your connected warehouse:Provide schema context
Help the agent understand your data by creating a Then reference it from the agent:
schema.txt
file alongside the agent and listing your tables/columns. A useful
pattern is one row per file with columns and a sample row:schema.txt