Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/oss/deepagents/code/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Persistent memory carries context across conversations, customizable skills shap
```bash title="~/.deepagents/.env"
LANGSMITH_TRACING=true
LANGSMITH_API_KEY=lsv2_...
LANGSMITH_PROJECT=optional-project-name # Specify a project name or default to "deepagents-code"
DEEPAGENTS_CODE_LANGSMITH_PROJECT=deepagents-code # Project for Deep Agents Code's own traces; defaults to "deepagents-code"
```

For more details and usage, see [Trace with LangSmith](#trace-with-langsmith).
Expand Down Expand Up @@ -418,10 +418,12 @@ Add your tracing keys to `~/.deepagents/.env` so tracing is enabled in every ses
```bash title="~/.deepagents/.env"
LANGSMITH_TRACING=true
LANGSMITH_API_KEY=lsv2_...
LANGSMITH_PROJECT=optional-project-name # Specify a project name or default to "deepagents-code"
DEEPAGENTS_CODE_LANGSMITH_PROJECT=deepagents-code # Project for Deep Agents Code's own traces; defaults to "deepagents-code"
```

To override for a specific project, add the same keys to a `.env` in the project directory. See [environment variables](/oss/deepagents/code/configuration#environment-variables) for the full loading order.
Use `DEEPAGENTS_CODE_LANGSMITH_PROJECT` to name the project that receives Deep Agents Code's own traces. It is scoped to Deep Agents Code, so it won't be affected by a `LANGSMITH_PROJECT` set in a project's `.env` (which routes that project's application traces — see **Separate agent traces from app traces** below).

To override the project for a specific working directory, add `DEEPAGENTS_CODE_LANGSMITH_PROJECT` to a `.env` in that directory. See [environment variables](/oss/deepagents/code/configuration#environment-variables) for the full loading order.

You can also set these as shell environment variables if you prefer. Shell exports always take precedence over `.env` values, so this is a good option for temporary overrides or testing:

Expand Down
Loading