/oxy:oxy-agentsfrom oxy
Use when creating, editing, reviewing or debugging an Oxy agent, a `.agentic.yml` file that answers questions from the semantic model by clarifying, specifying, solving (SQL), executing and interpreting. Triggers include "create an analytics agent", "my agent picks the wrong metric", "my solving instructions are ignored", "react ignores config keys", "ignored_keys", "the agent never uses my verified query", "the agent can't see a database", "which tools can a state call", "set thinking, effort, budget_tokens or extended thinking", "per-state model or max_retries", "validation rules", "Cube or Looker semantic_engine", "analytics vs app-builder agent", "`.agent.yml` or `.agentic.yml`", and validating, running (`oxyc agentic run`) or testing (`oxyc evals run`) an agent. Not for writing the semantic model itself (views, topics) or automations.
Ships in oxy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
.agentic.yml)An Oxy agent is one YAML file, <name>.agentic.yml. It configures a fixed
pipeline that turns a natural-language question into a grounded query against
the semantic model, runs it, checks the result and explains it. You configure
the pipeline. You do not define its states or its tools.
.agentic.yml is the agent. The classic .agent.yml format (a single
LLM call with custom tools) has been removed. Do not create one, and do not
copy one from an old workspace.oxy migrate-agents. Run it when a
compile warns classic agent format (.agent.yml) is retired (or, on a
deployment that has turned the refusal on, fails the revision with that message),
or when an automation's agent_ref still names a .agent.yml. Run
oxy migrate-agents --dry-run --json <dir> first: it writes nothing and lists
every classic file, what translates (and which fields it drops, such as
tools: visualize or inline tests:), what cannot be mapped (omni_query,
anonymize, type: routing; such files stay in place unless --force drops
the field), the agent_refs and paths it would repoint, and collisions. Then run
it without --dry-run, and review each new file: classic system_instructions
Jinja ({{ databases.x.dialect }}) is passed to the model literally, and a
classic name: is dropped, so the agent's id becomes its file stem.kind: field. Every .agentic.yml runs the same analytics
pipeline. A file named app_builder.agentic.yml is not special, and no
.agentic.yml writes views or agent files: those are edited in the
workspace's repository (oxyc workspace clone, or the Factory's "Work in
your editor" panel) and pushed, which compiles them..automation.yml (.procedure.yml still works). .workflow.yml
is no longer recognised at all. An agent is not an automation, and on the
default runtime it cannot run one as an answer either (see Runtime).instructions:
and no databases:, context: or states: is answered with one LLM call
and queries nothing. Add any of those three and you get the full pipeline.Use an agent for conversational questions over data that has a semantic
model. Use a verified query (a .sql file with an oxy: header, below)
when one question must always get exactly the same SQL. Use an automation
when the steps are fixed and need no LLM to choose between them.
Agents run on the react runtime by default: one model in a tool loop
(search, read, query, chart, ask_user and a few analysis tools)
that answers from the semantic model, verified queries and raw SQL. The staged pipeline described
under "How a question flows" (runtime: fsm) is being removed. In a chat, the
runtime is chosen by the org's rollout, not by the agent's runtime: key, so
runtime: fsm is not a way to keep the keys below working.
React ignores these keys. They still parse; the run goes on without them,
and the server logs a warning and records them on a chat's run as
ignored_keys:
| Key | Under react |
|---|---|
states.<any>.instructions | ignored: put the guidance in top-level instructions |
states.<any>.max_retries | ignored: the loop has its own turn and cost budgets |
states.<not solving>.model, .thinking | ignored: only states.solving.model / .thinking apply (prefer llm.model / top-level thinking) |
validation | ignored: no result checks run |
semantic_engine | ignored: queries go only to the views in context: |
llm.max_tokens, llm.advisor | applied on Anthropic models; ignored on OpenAI and OpenAI-compatible |
automation files in context: | ignored (context (automations)): an automation cannot be run as an answer |
Everything else (instructions, timezone, databases, the rest of
context, llm, thinking, llm.extended_thinking) is honoured. Write new
agents without the ignored keys. The sections below that describe them are
marked FSM only.
llm:
ref: claude # a `name:` under config.yml `models:`
context:
- ./semantics/**/*.view.yml
- ./semantics/**/*.topic.yml
That is enough when the views declare a datasource. The agent can query
every database its context references. The full annotated file is
templates/agentic-template.yml.
Top-level keys: instructions, timezone, databases, context, llm,
thinking, and the FSM-only states, validation, semantic_engine. All
are optional.
Unknown keys are ignored silently at every level, by the runtime and by
both validators. A typo such as stats: or solve: costs you the setting
with no error.
This section and the next describe the runtime: fsm pipeline, which react
replaces. On react there are no states; the model calls tools until it can
answer.
clarifying → specifying → solving → executing → interpreting → done
↑ ↑ ↑ ↑
└──────── diagnosing (when a check fails) ────────┘
Diagnosing routes a failure back upstream:
The practical consequence: guidance every answer needs goes in the global
instructions:, clarifying or interpreting, never only in solving. On a
well-modelled workspace, solving rarely runs.
The tool set is fixed by the runtime and is not configurable. There is no
tools: key.
| State | Tools |
|---|---|
| clarifying | search_catalog, search_automations, propose_semantic_query, ask_user |
| clarifying, root cause / opportunity | explain_metric, find_opportunities, metric_sensitivity, predict_impact, plus list_anomalies, detect_anomalies and explain_anomaly when anomaly monitoring is set up |
| specifying | search_catalog, sample_columns, ask_user. With a semantic model: check_data_freshness. Without one: get_join_path, list_tables, describe_table |
| solving | execute_preview (runs a candidate query with LIMIT 5) |
| executing | none |
| interpreting | render_chart |
search_automations searches only the automations and verified queries this
agent's context: reaches. With none, it finds nothing. The metric-tree and
anomaly tools are offered in interactive runs. They are not offered in
workspace previews or scheduled runs.
instructions are the agent's system prompt (on the FSM, every LLM
state's). Use them for the persona, business conventions ("fiscal year starts
in February", "customer means the customers view"), which views or topics to
prefer, and any SQL style rules. On react they are the only guidance the model
gets: per-state instructions are ignored.
timezone is an IANA name used for "today", "yesterday" and "last week".
It falls back to config.yml's timezone:, then UTC. An invalid name fails the
run.
databases lists names from config.yml databases:. The agent can query
exactly these plus every database its context files reference: a view's
datasource (or data_source), a verified query's database:, or an
automation task's database: (so removing an automation from context: can
remove a database). There is no fallback to every database in config.yml. With none at all, the run fails with no databases configured.
context takes globs relative to the workspace root, whatever directory the
.agentic.yml sits in: an agent in agents/ still writes ./semantics/**, never
../semantics/**. Each match is bucketed by its file name:
| Matches | Becomes |
|---|---|
*.view.yml, *.topic.yml | the semantic catalog |
*.sql with an oxy: header | a verified query, run verbatim when chosen (react lists it in the prompt; the FSM finds it with search_automations) |
*.sql without the header | example SQL (react: searchable and readable; FSM: the solving prompt) |
*.md | domain notes (react: searchable and readable; FSM: the clarifying and interpreting prompts) |
*.automation.yml, *.procedure.yml | FSM only: automations the agent may pick and run. Ignored by react; don't list them |
| anything else | ignored |
A verified query opts in with a leading comment block:
/*
oxy:
description: Monthly revenue by region
database: warehouse
*/
SELECT ...
Without the header, the same file is only a style hint. Context files under a
dot-directory, build/, dist/, target/ or node_modules/, or with
.test. in the name, are not deployed, so a glob that works on your machine
can come back empty in the cloud.
llm picks the model.
ref names a model in config.yml models:, and the vendor, API key and base
URL come from that entry. In the cloud the key is a workspace secret, so
prefer ref.ref nor model, the first model in config.yml is used.model overrides only the model ID. On its own (no ref) it uses
api_key or the server's ANTHROPIC_API_KEY / OPENAI_API_KEY.vendor (anthropic, open_ai, open_ai_compat) overrides the ref's wire
protocol. Use open_ai_compat for gateways that serve only
/chat/completions.states (FSM only; react ignores all of it except solving.model and
solving.thinking) honours four keys: clarifying, specifying, solving and
interpreting.
executing has no LLM, so it is accepted and does nothing. Every other key
is ignored.instructions, thinking, model and max_retries.model is a provider model ID. It inherits the vendor, key and base URL
from llm:, so it must be the same provider.max_retries is the number of tool-call rounds per visit. When they run
out, the run pauses and asks the user whether to continue. It is not a
failure-retry count. Defaults: specifying 5, solving 3, interpreting 5.
Clarifying has a fixed limit and ignores the setting.validation (FSM only; react ignores it) sets the result checks. Leave it out and 15 default checks
run. If you include it, it replaces the defaults: only the rules you list
run, and a stage you leave empty is not checked. To switch one check off or
retune it, list every rule that should still run. Rule names and parameters
are in references/quick-reference.md.
semantic_engine (FSM only; react ignores it) routes queries through Cube or Looker ahead of Oxy's own
semantic model. ${VAR} placeholders are read from the server's environment,
not from workspace secrets. The engine is pinged when a run starts, and an
unreachable engine fails the run.
React uses the solving rule below: states.solving.thinking, then
llm.thinking, then top-level thinking, then adaptive. Set it at the top
level. On the FSM, thinking is resolved per state, in this order:
thinkingllm.thinkingthinkingA global value replaces every built-in default. So top-level
thinking: adaptive makes clarifying, specifying and interpreting think too,
and llm.thinking: disabled turns thinking off in solving. On the FSM, prefer
per-state settings.
| Form | Meaning |
|---|---|
adaptive | the model decides when and how much to think |
disabled | no thinking (bare or quoted; never false, which is a parse error) |
effort:high or {effort: high} | depth hint: low, medium, high, xhigh, max |
{budget_tokens: 10000} | hard token ceiling (Claude 4.6 and earlier) |
How each provider treats these forms:
adaptive and effort are native from Claude 4.6, and
xhigh from 4.7. Claude 4.7 and later reject budget_tokens, so Oxy
sends it as the nearest effort level and logs a warning. On older models it
goes the other way: adaptive and effort become a token budget, and
xhigh becomes high. Write effort on current models.open_ai, Responses API). effort maps to reasoning effort,
with xhigh and max sent as high. adaptive leaves the model's default
effort. budget_tokens is ignored.open_ai_compat. Any setting other than disabled adds a
chain-of-thought instruction to the prompt, because there is no native
control.A string that isn't one of the forms above (thinking: enabled,
thinking: high) silently means disabled. An unknown effort level
silently means medium.
llm.extended_thinking: {model, thinking} is used while the user has the
extended thinking toggle on (--thinking-mode extended_thinking from the
CLI). It replaces the model and the thinking setting (on the FSM, in every
state). Without
the block, the toggle changes nothing.
Leave llm.max_tokens unset unless you need a hard cap. When it is unset, Oxy
uses 4,096 without thinking and 16,384 (or the budget plus 4,096) with
thinking. A value you set is used as-is, and thinking tokens count against it.
React applies it on Anthropic models only.
oxyc validate --file agents/sales.agentic.yml # offline: shape, databases:, llm.ref
oxyc agentic run agents/sales.agentic.yml -q "Revenue by region last quarter?" --workspace <id>
oxyc evals run agents/sales.agentic.test.yml --workspace <id> # LLM-judged evals, on the deployment
oxyc validate checks the shape and the references. It catches a bad
shape (a malformed thinking, a wrong type, a duplicate key) and a
databases: entry or llm.ref that names nothing in config.yml. It does
not expand globs, read ${VAR} placeholders, check rule names or timezones,
or notice unknown keys (the runtime ignores them too). The Rust
oxy validate is gone; use oxyc validate.oxyc agentic run <path> -q "<question>" --workspace <id> runs the agent on the deployment and streams each state. It
runs what the workspace has compiled (push first), not your checkout, and
each run opens a chat thread in your history. Add --json for JSONL events,
or --thinking-mode extended_thinking. A run that stops to ask something
exits 0 with the question; answer it with oxyc agentic answer <run_id> --answer "..." and follow the rest with oxyc agentic events <run_id>. An
error or cancelled run exits 1. (The Rust oxy agentic run ran a local
file against OXY_DATABASE_URL; it is gone, so use this command.)oxyc evals run runs .test.yml evals against an agent on the
deployment and scores each case with an LLM judge. It runs what the workspace
has compiled (push first), not your checkout, and exits 9 under
--min-accuracy. The format and flags are in
references/quick-reference.md and the
oxy-evals skill.To point an editor at the schema, start the file with:
# yaml-language-server: $schema=https://raw.githubusercontent.com/oxy-hq/oxygen/refs/heads/main/json-schemas/agentic.json
| Symptom | Cause | Fix |
|---|---|---|
no databases configured | nothing in databases: and no context file references a database | add a name from config.yml, or views with datasource |
| agent can't see a table it "should" | the agent only reaches databases it declares or references | add it to databases: |
| wrong model answers, or an auth error on the first question | llm.ref is not a name: in config.yml, so the agent fell back to a built-in Claude model and the server's ANTHROPIC_API_KEY; or the model's key secret is unset | fix the name; set the key |
| "does not have a metric tree configured" | the question was classified as root cause or opportunity, and this workspace or run has no metric tree | define a metric tree, or ask for the numbers directly |
per-state instructions never take effect | react ignores them; on the FSM, the semantic model compiled the question, so solving was skipped | move them to the global instructions: |
max_retries, validation or an automation in context: changes nothing | react ignores them (recorded as ignored_keys on the run) | remove them |
| verified query never chosen | .sql has no oxy: header, or isn't matched by context: | add the header and a description; check the glob |
| state override does nothing | react honours only states.solving.model / .thinking; on the FSM, a misspelled key or executing / clarifying.max_retries | set llm / top-level thinking instead |
| thinking silently off | thinking: enabled or another unknown string | use one of the forms above |
thinking: false rejected | boolean, not a mode | thinking: disabled |
| a default check stopped running | a validation: section replaced the defaults | list every rule you still want |
validation config error: unknown … rule | rule name typo, or a rule under the wrong stage | names and stages are in the quick reference |
invalid timezone '…' | not an IANA name | e.g. America/New_York, UTC |
environment variable '${X}' … is not set | semantic_engine placeholder unset on the server | set it in the server environment |
semantic engine connection error | Cube/Looker unreachable or rejected the credentials | check base_url and credentials |
| agent missing in the cloud, fine locally | .agentic.yaml extension, a dot-directory/build/ path, or .test. in the name | rename or move it |
.test.yml format..test.yml evals, and
oxy-automations for automations.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oxy-hq/skills --plugin oxy9 skills in this plugin
/oxy-airway-pipelinesUse when writing, reviewing, or debugging an Oxy Airway ELT pipeline (`.airway.yml`) — sources, the `kind` values Oxy actually wires, credentials, reset, rewind and retry — or when one misbehaves: "unsupported source kind", a pipeline that parses then fails at run time, credentials that do not resolve, a *pipeline* run landing `completed_with_errors` (an *automation* run with that status is `oxy-automations`), a schema that will not change, missing history after a backfill, or duplicate rows. Carries the traps the published pipeline reference does not./oxy-automationsUse when writing, debugging, or reviewing an Oxy automation (a `.automation.yml` / legacy `.procedure.yml` workflow — tasks, loops, variables, schedules) in a customer workspace, or when an automation *run* misbehaves: an `http_request` task that works locally and fails in cloud, a file that is silently not an automation, a task that validates but fails with "unknown task type", SQL that receives JSON instead of a table, or an automation run landing `completed_with_errors`. Covers the file-naming trap, task-type gotchas, running SQL and automations on a deployment with `oxyc run`, and where the authoritative reference lives./oxy-cliUse when you need data out of an Oxy deployment — querying a customer's warehouse or semantic layer, reading threads/runs/apps/orgs, checking why an endpoint 4xxs, or reproducing a customer-reported bug against real data. Also when you need to know which endpoints exist or what body one takes, and (staff) when standing a new customer account up or checking which of its steps have landed. Triggers on "query the customer's data", "what does this API return", "debug this in production/dev", "which endpoint", "check the thread/run/app", "oxyc", "oxy api", "stand up a new customer", "new account setup", "oxyc bootstrap".