LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsconfig
Module●Since v1.6

config

Copy
import { ... } from "deepagents/config";

Functions

function
createSettings→ Settings
function
findProjectRoot→ string | null

Interfaces

interface
Settings
interface
SettingsOptions
View source on GitHub

Create a Settings instance with detected environment.

Find the project root by looking for .git directory.

Walks up the directory tree from startPath (or cwd) looking for a .git directory, which indicates the project root.

Settings interface for project detection and path management.

Provides access to:

  • Project root detection (via .git directory)
  • User-level deepagents directory (~/.deepagents)
  • Agent-specific directories and files
  • Skills directories (user and project level)

Options for creating a Settings instance.