Home directory and files
Home holds instance configuration, personal extensions, default outputs, and runtime state. Before changing settings, locating a run, or preparing a backup, identify the Home used by the relevant process.
Identify Home first
The default is ~/.dataagent. Set DATAAGENT_HOME in the launching process environment to choose another location; relative paths resolve against that process's launch directory. Home is fixed before environment files are read, so Home .env and --env-file cannot change it. Select configuration and environment files independently with --config and --env-file; see basic configuration.
Separately running backend, Web, and TUI processes can use different Homes. A TUI connected to a remote backend writes its own logs locally; inspect sessions and traces on the backend machine. Check the backend's home through the health endpoint. Use distinct Homes and listening ports for independent backends running at the same time.
Directory overview
This layout can appear as capabilities are used; initialization does not create every file and directory shown.
<home>/
├── config.yaml
├── .env
├── .mcp.yaml
├── skills/<name>/SKILL.md
├── hooks/
├── plugins/<id>/.plugin.yaml
├── history_sql/ Optional historical SQL corpus
├── outputs/<user>/<thread>/ Default session outputs
│ └── artifacts/
│ ├── conversation_history/
│ └── large_tool_results/
└── runtime/
├── backend.lock
├── sessions.sqlite
├── checkpoints.sqlite
├── logs/
│ ├── backend.log
│ ├── web.log
│ └── tui.log
└── users/<user>/sessions/<thread>/traces/
└── <native-root-run-id>.jsonAt startup, dataagent serve and serve-a2a create missing skills/, hooks/, plugins/, runtime/, and configuration templates, preserving existing files. An explicit --config skips Home config.yaml. The history-sql command does not initialize the full template set. SDK callers do not initialize Home by default and must request it with LaunchOptions(init_home=True). Users supply .mcp.yaml; session files, logs, and plugin data appear as needed.
Configuration and extensions: change when needed
| Location | Purpose and writer | When to inspect or change it |
|---|---|---|
config.yaml |
User-maintained default product settings: models, input directories, listener, and enabled plugins | Initial setup or instance changes. --config replaces this file rather than merging with it |
.env |
User-maintained default environment file for referenced values such as model names, addresses, and keys | Connection or credential changes. --env-file selects another file; nonempty process values take precedence |
.mcp.yaml |
User-declared Home MCP connections | Configure when using MCP tools; see MCP configuration and integration |
skills/<name>/SKILL.md |
User-installed standalone Skills that the model reads on demand | Add or change instructions without enabling a plugin for a standalone Skill |
hooks/ |
Python Hook source supplied by the user | Register it through configuration entrypoint declarations; copying files alone does not register hooks |
plugins/<id>/.plugin.yaml |
User-installed plugins and their resource manifests | Explicitly enable installed plugins. Built-in plugins and plugins.paths candidates need not live in Home |
history_sql/ |
SQL files and .history_sql_manifest.json written by the dataagent history-sql downloader |
Prepare when using de-agent historical SQL recall. The location can be outside Home; see command and path rules |
Basic settings such as model connections generally require a restart. See extension lifecycle for changes that can refresh on the next turn. Configuration lives only in these files; editing database rows does not change it.
Business outputs: inspect by session
| Location | Purpose and writer | When to inspect it |
|---|---|---|
outputs/<user>/<thread>/ |
CSV, SQL, reports, and other files generated by the Agent, tools, or plugins. user defaults to default; thread is the session ID |
Use TUI /outputs or the output endpoints. Configuration or the SDK can select an actual output directory outside Home |
artifacts/ |
Context support files managed by the runtime inside session outputs | Diagnose compression or large-result offloading. This is not a separate complete chat transcript |
artifacts/conversation_history/ |
History files offloaded by context middleware as needed | Read when the model needs earlier content or when diagnosing context compression |
artifacts/large_tool_results/ |
Larger tool results offloaded by filesystem and context middleware | Follow paths in messages to the full content. Ordinary output listings skip this and the offloaded history directory |
Session bindings retain actual input and output paths for recovery. Checkpoints can reference offloaded files, so these are not disposable cache entries. See sessions and outputs for directory selection and previews, and data inputs for input directories.
Runtime state: inspect for diagnosis and recovery
| Location | Purpose and writer | When to inspect it |
|---|---|---|
runtime/backend.lock |
Exclusive Home lock acquired by the backend at startup | Diagnose duplicate starts. The file's presence does not prove that a process is running |
runtime/sessions.sqlite |
The backend maintains the session index and run deduplication; backend and SDK register input/output bindings | Inspect ownership, status, and continuation pointers. It does not store complete per-run inputs and outputs |
runtime/checkpoints.sqlite |
The default backend's LangGraph checkpointer stores messages, graph state, and recovery positions | Recover conversations or human interactions. The SDK uses the caller's checkpointer and need not create this file |
runtime/logs/backend.log |
Runtime diagnostics written by the backend or its launcher | Start here for startup, configuration, model, or tool failures |
runtime/logs/web.log |
Build, process, and proxy diagnostics written or collected by the Web process or its launcher | Inspect Web build or connection failures; it may not exist when Web is unused |
runtime/logs/tui.log |
Client diagnostics written by the TUI process | Inspect terminal connection or display problems in the TUI's own Home |
runtime/users/<user>/sessions/<thread>/traces/*.json |
OTLP JSON saved by the tracer when each root execution ends | Inspect Agent, model, and tool steps. The filename is the native root run ID, not the AG-UI runId |
See session records and SQLite for database contents and message access, reading and locating logs for format and rotation, troubleshooting for failure diagnosis, and trace files and evaluation for trace fields.
Managed Linux deployment also keeps deployment.json and datagallery.pid in the repository's storage/run/. They manage deployment processes and are outside the Home tree. Inspect them through ./deploy.sh status; see managed Linux deployment.
Backup and cleanup boundaries
The runtime maintains databases, logs, and traces. Prefer session detail for messages. Do not directly edit database rows or treat a checkpoint as a complete chat transcript export.
SQLite WAL mode can produce *.sqlite-wal and *.sqlite-shm beside a database: the former can contain committed data not yet merged into the main file, while the latter supports concurrent access. SQLite manages these files. Copying only a live main database file does not guarantee a complete backup.
The two SQLite files do not share one transaction. For recoverable session backups, stop the backend and confirm that SDK callers and other writers have stopped, then coordinate the two databases, bound outputs, and required inputs. Online backups need a method supporting SQLite snapshots, with cross-database business consistency coordinated separately. Preserve path references and configuration; see session storage for details.
Before cleaning old outputs, decide whether their sessions still need recovery. Archive logs and traces before cleanup; keeping databases alone cannot restore deleted business files. See the developer Home documentation for path resolution and initialization details.