Provider profiles (for controlling settings used to create a model) and the plugin registration system are Python-only features. The TypeScript SDK supports harness profiles only.
Harness profiles
Deep Agents includes built-in harness profiles with default settings for specific providers and models. UseHarnessProfileOptions to define settings that createDeepAgent applies after constructing the chat model:
string
Set the profile’s base instructions. For the main agent, these follow the caller’s system instructions; no base instructions are added by default. For declarative subagents, this replaces their authored system prompt.
string
Append text after the caller’s instructions and the profile’s base instructions. Applied to the main agent, declarative subagents, and the auto-added general-purpose subagent.
Record<string, string>
Override individual tool descriptions, keyed by tool name.
string[]
Remove specific harness-level tools from the tool set. Matched by tool name, applied as a post-injection filter so it catches both user-provided and middleware-provided tools.
string[]
Strip specific middleware from the assembled stack. Matched against each middleware’s
.name property. Cannot include required scaffolding names (FilesystemMiddleware, SubAgentMiddleware).AgentMiddleware[] | (() => AgentMiddleware[])
Additional middleware appended to the stack after user middleware. Can be a static array or a zero-arg factory that returns fresh instances per agent construction.
GeneralPurposeSubagentConfig
Disable, rename, or re-prompt the general-purpose subagent (
enabled, description, systemPrompt).Caller-supplied
systemPrompt always sits at the front of the assembled prompt, and systemPromptSuffix always sits at the end—regardless of which model is selected. The same overlay rules apply to subagents: each subagent re-runs profile resolution against its own model. See System prompt for custom instructions and subagent prompt behavior.Lookup order for preconfigured model instances
Lookup order for preconfigured model instances
When you pass a model object, the harness looks up its profile using the provider and identifier reported by that object.
- If the identifier has no colon, look up
provider:identifier, falling back to that provider’s defaults. - If the identifier contains a colon, look it up directly, falling back to its prefix’s defaults.
- If neither lookup matches, use the reported provider’s defaults.
Registration keys
Profile registrations use these keys:- Provider-level—a bare provider name like
"openai"applies to every model from that provider. - Model-level—a fully qualified
provider:modelkey like"openai:gpt-6-astra"applies only to that specific model.
my_provider:my-model with a single colon separating the provider and model identifier.
For example, exclude a tool for a hypothetical provider’s models, then customize the prompt suffix for one model:
execute and receives the 100-word suffix. Other models from my_provider exclude execute and receive the 500-word suffix.
Re-registering under an existing key merges the new profile on top of the prior one; it does not replace it. This also lets you customize a built-in profile by registering under its key. See Merge semantics for the per-field rules.
Continuing the example, exclude one more tool for the same model:
execute and grep and retain the 100-word suffix. Other models keep the provider defaults.
There is no wildcard key that matches every provider. To apply the same overrides everywhere—say, dropping
SummarizationMiddleware regardless of which model is selected—register the profile under each provider key you use. Profiles are intended for adjustments that depend on the model being selected. Global adjustments that should apply regardless of model should be made on the createDeepAgent call site.Merge semantics
Provider profiles
Provider profiles (for controlling settings used to create a model, such astemperature) are a Python-only feature and are not available in the TypeScript SDK.
Load profiles from config files
For YAML/JSON-backed workflows, useparseHarnessProfileConfig. It validates and builds a HarnessProfile from a plain object with camelCase keys. Runtime-only state such as extraMiddleware instances cannot be represented in JSON/YAML and must be set programmatically.
serializeProfile:
extraMiddleware cannot be serialized; serializeProfile throws if middleware instances are present.
Ship a profile as a plugin
The plugin registration system (via package entry points) is a Python-only feature. In TypeScript, callregisterHarnessProfile directly at application startup or in your package’s initialization code.
Related
- Harness Overview—harness capabilities overview
- Models—configure model providers and parameters
-
Customization—full
createDeepAgentconfiguration surface
Connect these docs to your agent of choice via MCP for real-time answers.

