Petrov describes physical data as complex binary files whose contents can expand into millions of frames, objects, and metadata records. He argues that agents need a harness that helps them inspect, process, verify, and remember this data. Existing data-agent approaches, he says, focus on structured business data and do not address these constraints.
When Agents Meet Physical Data: The Other Physics of Agent Harnesses
Speaker
Dmitry Petrov of DataChain explains how to build data harnesses that help coding agents work with physical data such as video, sensor readings, and robot telemetry; he demonstrates the open-source DataChain project.
Petrov contrasts storing metadata in millions of JSON files, which can cause latency and inconsistency, with putting it in a centralized database, which adds another system and language. DataChain uses Pydantic schemas so data, schemas, and Python code can share one model. In his dashcam example, analyzing 91 clips took 24 minutes and produced about 100,000 records; a database query found people in 82 clips.
Processing terabytes of physical data requires an execution engine that can distribute work and recover from failures. Petrov describes connecting Python functions, Pydantic input and output models, files in object storage, and a metadata warehouse. The engine can run a function across multiple machines, while incremental updates and checkpoints let it reuse completed work after a failure or when new files arrive.
Petrov says raw-data scripts are a slow way to answer questions and recommends building metadata layers that support fast SQL-like queries. Agents can create general-purpose datasets and slices for related questions, instead of recomputing expensive results each time. He also describes a Markdown knowledge base containing dataset descriptions, session context, previews, statistics, dependencies, and source code, so teams can share results and lineage.
Petrov brings the stack together: object storage holds the raw data, compute extracts metadata, DataChain organizes it into datasets and slices, and a knowledge base shares what has been learned. His conclusion is that making coding agents effective with physical data depends on a harness suited to its processing and reuse needs, rather than relying on stronger models alone.
Takeaways
- Model the contents of physical files as structured records so teams can query them without repeatedly parsing raw files.
- Use one schema across data and Python code to keep analytical workflows understandable to researchers and developers.
- Design expensive processing for parallel execution, checkpoints, and incremental updates so failures do not force a full rerun.
- Build reusable metadata layers for recurring questions instead of repeatedly running costly analysis on raw data.
- Record dataset context, previews, statistics, dependencies, and source code so teammates can understand and reuse prior work.
Mentioned in this talk
Search inside this talk
What was claimed 8
- feature
OpenAI: Published six layers of context to make a data agent work“a whole set of layers of context—six layers”
YouTube Unverified1 source· Talk
- metric
Anthropic: 21% accuracy for agents on data projects before adding specific data harnesses and context
“accuracy for data projects on their agents is only 21%”
YouTube Unverified1 source· Talk
- uses
“the easiest way for researchers and developers to deal with the schema is Pydantic”
YouTube Unverified1 source· Talk
- feature
DataChain: Provides a data harness for coding agents working with unstructured physical data“our open-source project, DataChain, with a data harness for coding agents”
YouTube Unverified1 source· Talk
- uses
DataChain uses Claude Code
“We'll be using Claude Code”
YouTube Unverified1 source· Talk
- feature
DataChain: The demonstrated analysis processed 90 videos and generated about 100,000 records“90 videos generated 100,000 records”
YouTube Unverified1 source· Talk
- feature
DataChain: Supports incremental updates and checkpoints to resume failed processing and process only new files“run it again, and catch up on all the results you already have”
YouTube Unverified1 source· Talk
- feature
DataChain: Stores reusable dataset knowledge, including context, descriptions, previews, statistics, and source code“The knowledge base is organized in a very traditional way: just a set of Markdown files”
YouTube Unverified1 source· Talk












