Connect
Authorize
The first time your agent uses the server, a browser opens. Sign in to bryel and pick the project the agent may use. That project is bound to the connection; it’s the only one this agent can ever see.Leave Allow write off for read-only access (query and inspect). Turn it on only if you want the agent to create datasets and add records.
Tools
Ten tools, scoped to the single project you picked at consent. The agent can never name another project.Traces
| Tool | What it does |
|---|---|
bryel_get_schema | Lists the queryable fields, types, and operators, plus your project’s live intent labels and model names. Call this first. |
bryel_validate_query | Checks a BQL filter for errors (with did-you-mean suggestions) without running it. |
bryel_query_traces | Runs a BQL filter and returns the match count plus a sample (model, status, tokens, cost, steps, tools, truncated input). |
Datasets
| Tool | What it does |
|---|---|
bryel_list_datasets | Lists this project’s fine-tune (SFT) datasets with record counts. |
bryel_inspect_dataset | A full training-data quality report for one dataset (see below). |
bryel_export_dataset | Exports a dataset as fine-tune JSONL to bryel storage; returns a job to poll. |
bryel_export_status | Polls an export job; returns a download URL for the JSONL once it succeeds. |
bryel_create_dataset write | Creates a new empty dataset; returns its slug. |
bryel_add_from_query write | Curates real traces into a dataset — every trace matching a BQL filter becomes a record. |
bryel_add_records write | Appends records in the bryel fine-tune shape ({messages, tools?}). |
BQL in 30 seconds
BQL is a filter expression over your traces. Strings use single quotes; combine clauses withand, or, and not.
bryel_get_schema to see every field, operator, and your project’s actual intent labels and model names. See Concepts for what a trace and intent are.
Inspecting dataset quality
bryel_inspect_dataset returns the same metrics bryel uses to judge whether a dataset will train a good model, so your agent can curate before you export.
Distribution per intent, top share, and an
imbalanced flag (one intent dominating means the fine-tune overfits it).Unique vs duplicate inputs and the largest duplicate clusters (near-identical records waste capacity).
Clean vs
looping / errored trajectories, overall and per intent (errored or looping runs teach the model bad behavior).Token and step distributions, with a count of records at risk of truncating at the fine-tune context limit.
Which source models the records came from.
Building a dataset
With write enabled, an agent builds a fine-tune set without leaving the editor. The usual path curates your real runs — find good traces, then add the ones matching a filter:bryel_create_dataset → bryel_add_from_query (e.g. intent = 'add_pricing' and status = 'ok') → bryel_inspect_dataset. Adding from a query is idempotent per trace, so you can widen the filter and re-run without duplicating. See Datasets for the full curation and export flow.
To add records from outside bryel instead, bryel_add_records takes the chat-with-tools shape directly:
input (the readable prompt) is derived from the first user message when you omit it. Add up to 500 records per bryel_add_records call.
Give your agent the playbook
Paste this into yourAGENTS.md / CLAUDE.md (or .cursorrules) so the agent uses bryel well.
One connection equals one project, chosen at consent, and read-only unless you turned on Allow write. To use a different project — or to change the read/write choice — reconnect and re-consent. Removing the connection (or losing access to the project) cuts off the agent immediately.