Using agents on your own data¶
The SmartWilds documentation was produced with LLM coding agents working in the project's file system under the authors' direction (how we used them). This page is the practical version: how to set an agent up on a field archive, what to give it, and prompts that worked.
Setup¶
- Run the agent where the data is. A coding agent (we used Claude Code) needs read access to the archive and write access to a documentation directory. On a shared cluster, start it in the project directory on a login or interactive node; it only lists directories, reads text and metadata, and runs small scripts.
- Give it a project file. A
CLAUDE.md(orAGENTS.md) at the root describing the layout, the modalities, the naming conventions, and where notes go saves re-explaining every session. Ours is a page long. - Put the standards in context. Download the
FAIR² Drones template and quick-start checklist
and the Imageomics dataset card template
into a
documentation/guidelines/directory and tell the agent to follow them. See Guidelines to give the agent. - Keep the archive read-only. Agents propose; people decide. Every change to a released table should leave a dated before-copy and a JSON audit record.
Tasks and prompts¶
Walk thewilds_20250804_20250828/ and write
thewilds_20250804_20250828_data_report.md. For each modality and
deployment: file counts and sizes by type, the metadata and log files
present, the naming convention, date range of the files, and anything
that looks wrong (clock reporting an impossible year, missing telemetry,
empty folders, duplicate files). List the people named in the logs.
Use the directory-tree style of the campaign-1 report.
From occurrences.csv and events.csv in <dir>, tabulate: Events by
eventType; Occurrences by deployment, by taxon (class and species rank),
by identificationVerificationStatus, and by campaign; date range per
table; share of records with coordinates, times, and associatedMedia.
Write the result as Markdown tables I can paste into the supplement.
Compute from the tables; do not copy numbers from existing prose.
Cross-check two things that should agree and report every mismatch:
(1) the raw WAV inventory against the AudioRecording Events;
(2) each Occurrence's eventDate against its parent Event's span;
(3) sentinel strings (nan, None, -1, 1970-01-01) in any date, time, or
coordinate column; (4) duplicate occurrenceID values; (5) associatedMedia
paths that do not resolve. For each finding: scope (how many rows, which
deployments), what detected it, and candidate repairs. Do not repair.
Draft the dataset card for the bioacoustics tables following
documentation/guidelines/TEMPLATE.md (FAIR² Drones) and the Imageomics
card template. Fill every section from the tables, sensor_configurations.md,
and the field notes; leave a visible TODO where the information is not in
the repository rather than inventing it. Front matter: license, tags,
size_categories, Darwin Core coverage dates and representative point.
Review checklist¶
Agent output is a draft until a person has checked it. What we check:
- Numbers come from the tables. Ask the agent to show the computation (a code cell or a one-line script), and spot-check against an independent count.
- Nothing was invented. Empty template sections should say what is missing and why (see S8 of the supplement), not be filled in plausibly.
- Repairs are proposed, not applied. The author chooses the repair; the agent implements it with a before-copy and an audit record.
- Grant language is verbatim. Funder acknowledgements, award numbers,
and the disclaimer are copied exactly from
guidelines/ACKNOWLEDGEMENTS.md, never paraphrased. - Tone and spelling. Direct statements, American English, no venue names in dataset documentation while a paper is under review.
- Paths and identifiers. No cluster paths or internal snapshot names in anything public; scripts read locations from environment variables.
What to expect¶
With the standards in context the agent produces cards and inventories in the expected structure on the first pass, and review effort goes into checking numbers and wording rather than restructuring. The agents found most of the rows in the defect inventory by cross-checking artifacts that should agree; the "Detected by" column records what made each defect visible.