Skip to main content
Version: devel View Markdown

Artifact locations

The toolkits of the AI Harness write what they produce into your workspace at fixed locations, all under .dlthub/ in the project root. Each kind of artifact has one location, so the next skill, another AI coding agent or a teammate finds it there.

The locations​

LocationWhat it holdsWritten by
.dlthub/schemas/dlt schemas that a pipeline imports when it sets import_schema_path=".dlthub/schemas"dlt, toolkits
.dlthub/schemas/export/exported dlt schemas, the export_schema_path, only when you want them committeddlt
.dlthub/ontology/<name>/the business knowledge and semantic information of one topic: the business context, the annotated source schemas, the taxonomy, the ontology, the data model and the semantic viewstransformations, platform toolkits
.dlthub/explorations/<name>/data exploration plans: the questions, and the query and chart of each answerdata-exploration
.dlthub/<platform>/the files of one platform toolkit, for example deployment records in deploy/<environment>/that platform toolkit

<name> in .dlthub/ontology/<name>/ is the topic, for example order_fulfillment. It is chosen once, and every skill that works on the topic reuses it. A semantic view of any platform sits next to the model it describes.

Each platform toolkit owns one folder: .dlthub/platform/ belongs to dlthub-platform, and .dlthub/snowflake/ belongs to snowflake-platform. No other toolkit writes there.

Read the toolkit catalog for what each toolkit does.

What to commit​

Commit everything under .dlthub/. It holds no secrets, and the files are the source of truth for what the agent built: the model, the semantic views, the deployment records. The workspace .gitignore that dlthub init and dlthub-init create does not ignore .dlthub/.

dlt keeps its own local files in .dlt/. The secrets files, the pipeline state (.dlt/state/), the local data (.dlt/data/) and the active profile (.dlt/profile-name) are gitignored. See Workspace setup.

Your code is yours​

The harness does not decide where your sources, pipelines and transformations live. A path in a skill is an example: the agent uses the layout that your workspace already has, or asks you. Two defaults remain:

  • dlthub pipeline init writes a new pipeline script to the project root. You can move it.
  • The transformations toolkit puts transformation scripts in transformations/ unless your workspace keeps them elsewhere.

The agent writes throwaway scripts, for example to explore a database. These scripts run from the system temp folder, not from your workspace.

Use the schema locations in your pipelines​

To keep a schema you edit by hand, point the pipeline at the import location:

import dlt

pipeline = dlt.pipeline(
"orders",
destination="duckdb",
import_schema_path=".dlthub/schemas",
)

On the first run, dlt writes the schema to .dlthub/schemas/<schema name>.schema.yaml if the file does not exist. Later runs import your changes from it. Add export_schema_path=".dlthub/schemas/export" to also keep the schema that dlt inferred after each run. See Adjust a schema.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.