Atrix

Local agent

Old annotation files in. One dataset out.

Most labs keep years of event files next to the recordings they describe, each in the shape one study needed. The agent pairs every file with its recording and writes one dataset, on your own computer.

npx atrix-agent convert ./study-data

Needs Node 20+. atrix-agent on npm. Using a coding agent? Point it at /agent.md.

01

Scan

Point it at a folder. It reads the headers and nothing else.

  • Recordings: EDF, BDF, BrainVision, NWB.
  • Annotations: events.tsv, CSV, EDF+ annotations, Atrix JSON.
  • Source files are never modified.

02

Pair

Each annotation file is matched to the recording it belongs to.

  • By BIDS entities, file name, folder and recording start time.
  • Odd column names and messy file names are worked out by an AI planner on your own API key.
  • When it is genuinely unsure, it asks one question in the terminal.

03

Check

See the plan before anything is written.

  • --dry-run prints every pairing, and the file names exactly as the model would see them.
  • --no-ai runs offline with standard columns only. Once a conversion is right, rerun it this way and get the same result every time.

04

Write

One dataset in the format your pipeline already reads.

BIDS .zipOpenNeuro, MNE-BIDS, most iEEG pipelines
NWB .nwbDANDI, pynwb, MATLAB (matnwb)
EDF+ annotations .edfClinical EEG viewers, EEGLAB, MNE
CSV .csvExcel, pandas, R
JSON .jsonScripts and other tools

Every label records which file it came from.

What leaves your computer

Signal data
Never. Recordings are opened for their headers only.
File names
Aliased before the model sees them, because lab file names carry patient names and record numbers. DOE_JANE_MRN4471902_2026-03-12_rest.csv is sent as n2_n3_n4_2026-03-12_n5.csv.
Tables
Column names and at most ten sample rows per file. Free-text notes in those rows would go too; check them with --dry-run or use --no-ai.
Your key
Requests go from your computer to Anthropic or OpenAI under your own account. There is no Atrix server in between.

Install

npm install -g atrix-agent        # Node 20+; or run with npx, no install
export ANTHROPIC_API_KEY=...        # or OPENAI_API_KEY; your own account
atrix convert ./study-data          # NWB, default
atrix convert ./study-data --to bids
atrix convert ./study-data --dry-run
atrix convert ./study-data --no-ai

--to nwb|bids|edf|csv|json, --out <dir>, --model <id>, --tz <zone>. Model defaults and the recording-timezone rule are in the README.